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.

TMS320F28379D: can't get launchXL to boot from flash

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

I have a CCS10 project working fine with ram JTAG build on launchxl-f28479d. I have not been able to get it to boot from flash.

I created the flash configuration. It modifies the project: full optimization, add _FLASH define, remove DEBUG define, linker includes entry point=code_start and initiialiation model =line using ROM

When I enter debug mode, the flash is erased and seems to load correctly. I power the board off, set jumpers 1,2,3=on,on,off, remove jtag connection. Power on and no led flash=not running.

If I connect with jtag, and run in FLASH mode, it works fine.

My linker file is below. Am I missing another step? 

thanks

SECTIONS
{
codestart : > BEGIN, ALIGN(4)
.text : >> FLASHA | FLASHB | FLASHC | FLASHD, ALIGN(4)
.cinit : > FLASHG, ALIGN(4)
.switch : > FLASHG, ALIGN(4)
.reset : > RESET, TYPE = DSECT /* not used, */
.stack : > RAMM1

.init_array : > FLASHG, ALIGN(8)
.const : > FLASHG, ALIGN(8)
.bss : > RAMGS4, ALIGN(4)
.bss:output : > RAMGS5
.bss:cio : > RAMGS5
.data : > RAMGS7
.sysmem : > RAMGS7

MSGRAM_CPU1_TO_CPU2 : > CPU1TOCPU2RAM, type=NOINIT
MSGRAM_CPU2_TO_CPU1 : > CPU2TOCPU1RAM, type=NOINIT

/* shared ram to transfer between cpu's */
CPU1TOCPU2_GS : > RAMGS8, ALIGN(4)
CPU2TOCPU1_GS : > RAMGS9, ALIGN(4)


.TI.ramfunc : {} LOAD = FLASHB,
RUN = RAMGS0 | RAMGS1 | RAMGS2 | RAMGS3,
LOAD_START(RamfuncsLoadStart),
LOAD_SIZE(RamfuncsLoadSize),
LOAD_END(RamfuncsLoadEnd),
RUN_START(RamfuncsRunStart),
RUN_SIZE(RamfuncsRunSize),
RUN_END(RamfuncsRunEnd),
ALIGN(8)
}

  • Hi,

    Can you try one of the example from C2000Ware, and select CPU1_FLASH build configuration?

    C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2837xd/examples/cpu1/led

  • I can't get the driverlib example to load. I get "import failed because its meta-data cannot be interpreted"

    But I could load the standard blinky_cpu01. It works from flash. Which I suppose proves my hardware is fine and I'm using the jtag and setting the jumpers correctly.

    I don't see anything different about the linker or project settings. Other than my project being quite a bit bigger.

    Any ideas what else could be wrong or how to trace where it goes? 

    thanks

  • Ah, I got it.

    The linker file for flash must also change the def'n for BEGIN to 0x080000 from 0x0000 for ram.

    Thanks, you led me in the right direction