Tool/software:
Hi,
I want to use SRAM to share
-uinterruptVectors
--stack_size=256
/* Note: SRAM is partitioned into two separate sections SRAM_BANK0 and SRAM_BANK1
* to account for SRAM_BANK1 being wiped out upon the device entering any low-power
* mode stronger than SLEEP. Thus, it is up to the end-user to enable SRAM_BANK1 for
* applications where the memory is considered lost outside of RUN and SLEEP Modes.
*/
MEMORY
{
FLASH (RX) : origin = 0x0000F900, length = 0x00080000
SRAM_BANK0 (RWX) : origin = 0x20200000, length = 0x00010000
SRAM_BANK1 (RWX) : origin = 0x20210000, length = 0x00008000
PARA_SHARED (RWX) : origin = 0x20218000, length = 0x000000FF
BCR_CONFIG (R) : origin = 0x41C00000, length = 0x000000FF
BSL_CONFIG (R) : origin = 0x41C00100, length = 0x00000080
DATA (R) : origin = 0x41D00000, length = 0x00004000
}
SECTIONS
{
.intvecs: > 0x0000F900
.text : palign(8) {} > FLASH
.const : palign(8) {} > FLASH
.cinit : palign(8) {} > FLASH
.pinit : palign(8) {} > FLASH
.rodata : palign(8) {} > FLASH
.ARM.exidx : palign(8) {} > FLASH
.init_array : palign(8) {} > FLASH
.binit : palign(8) {} > FLASH
.TI.ramfunc : load = FLASH, palign(8), run=SRAM_BANK0, table(BINIT)
.vtable : > SRAM_BANK0
.args : > SRAM_BANK0
.data : > SRAM_BANK0
.bss : > SRAM_BANK0
.sysmem : > SRAM_BANK0
.TrimTable : > SRAM_BANK0
.stack : > SRAM_BANK0 (HIGH)
.param : > PARA_SHARED
.BCRConfig : {} > BCR_CONFIG
.BSLConfig : {} > BSL_CONFIG
.DataBank : {} > DATA
}
some data between application code and bootloader code. i have modified linker file . assigned some area for parameter to share. from bootloader code i can write into that area but code getting stuck after or during jump to application code. this is linker script. do any one know correct way to do this.