Hi,
I am using the TMS570LS1224 and CCS 6.
I have a (bare) bootloader written, which will eventually be able to update the main program over a serial connection with a DSP. I also have a main program written. So right now I am just trying to get it set up so that I have both the bootloader and main program flashed, and that when I boot, the bootloader runs, and then runs the main program, and if the software causes a reset that the bootloader runs again.
However, it looks like I can only have one of the programs flashed at a time. In the debug configurations for each program I have tried under Flash Settings to Erase only necessary sectors, but this doesn't work. I also tried selected sectors only, and for the bootloader selected Bank 0 sectors 0-6, and for the main selected everything else. The bootloader gets flashed OK, but when I try to flash the main I get the error below
How can I do this?
Thanks,
David
My linker files are below:
Bootloader
--retain="*(.intvecs)"
/* USER CODE BEGIN (1) */
/* USER CODE END */
/*----------------------------------------------------------------------------*/
/* Memory Map */
MEMORY
{
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH0 (RX) : origin=0x00000020 length=0x0001FFE0
STACKS (RW) : origin=0x08000000 length=0x00003500
RAM (RW) : origin=0x08003500 length=0x0002cb00
/* USER CODE BEGIN (2) */
/* USER CODE END */
}
/* USER CODE BEGIN (3) */
/* USER CODE END */
/*----------------------------------------------------------------------------*/
/* Section Configuration */
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0
.const : {} > FLASH0
.cinit : {} > FLASH0
.pinit : {} > FLASH0
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
/* USER CODE BEGIN (4) */
/* USER CODE END */
}
Main
--retain="*(.intvecs)"
/* USER CODE BEGIN (1) */
/* USER CODE END */
/*----------------------------------------------------------------------------*/
/* Memory Map */
MEMORY
{
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH0 (RX) : origin=0x00020000 length=0x0013E000
STACKS (RW) : origin=0x08000000 length=0x00003500
RAM (RW) : origin=0x08003500 length=0x0002cb00
/* USER CODE BEGIN (2) */
/* USER CODE END */
}
/* USER CODE BEGIN (3) */
/* USER CODE END */
/*----------------------------------------------------------------------------*/
/* Section Configuration */
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0
.const : {} > FLASH0
.cinit : {} > FLASH0
.pinit : {} > FLASH0
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
/* USER CODE BEGIN (4) */
/* USER CODE END */
}
