Other Parts Discussed in Thread: TMS320F28054, CONTROLSUITE
Hi,
I'm using TMS320F28054 and CCS6.
The built-in bootloader jumps to location 0x3F,7FFE. This location is normally programmed with a jump to “codestart” which is located in the .text section, but in my case 0x3F,7FFE will be replaced with a jump to a custom bootloader. I would like the bootloader when done to be able to jump to codestart. But the application linker doesn't put codestart at a fixed location in FLASH. In my case sectors C thru H are used for the application, and the linker puts codestart in the .text section in sector F.
Can codestart be placed at a fixed location at the beginning of the sector C_H application block, or fixed anywhere in the application sectors?
If the location of codestart can’t be fixed, can the linker put a jump to codestart at a fixed location in the application? Similar to the jump to codestart that is normally put at 0x3F,7FFE, but in my case is overwritten with the jump to bootloader.
I’ve tried different linker methods discussed in the forum and documentation, but nothing seems to work and I am struggling with the syntax in F28054M.cmd.
Thanks
SECTIONS
{/* Allocate program areas: */
.cinit : > FLASHC_H PAGE = 0
.pinit : > FLASHC_H, PAGE = 0
.text : > FLASHC_H PAGE = 0
codestart : > BEGIN PAGE = 0