This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377S: Move section "BEGIN (codestart)" from 0x80000 to 0x80010 problem

Part Number: TMS320F28377S

Hello

I'm using a F28377s.

Until now, the code was placed like all exemple with the following linker file:

BEGIN : origin = 0x80000, length = 0x000002
FLASH : origin = 0x80002, length = 0x03FFFE /* on-chip FLASH */

....

codestart : > BEGIN, PAGE = 0
.text : > FLASH, PAGE = 0,  ALIGN(4)

.....

Now, for a specific need to a custom bootloader, I need to place some information before the software (Version and code length)

Then, I modify the linker file like this:

BEGIN : origin = 0x80010, length = 0x000002
FLASH : origin = 0x80012, length = 0x03FFFE /* on-chip FLASH */

....

codestart : > BEGIN, PAGE = 0
.text : > FLASH, PAGE = 0,  ALIGN(4)

.....

With this, all work correctly with the JTAGdebugger, but not in standalone, the soft seems not start.

What is my mistake?

Thank

  • You need to have the codestart at 0x80000 only. This is where BOOTROM code branch incase of BOOT to Flash. It works fine with debugger because in that case CCS takes care of forcing the PC values correctly to entry point (address of codestart).

    Vivek Singh