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.

Compiler/CC2640R2F: Linker script

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640

Tool/software: TI C/C++ Compiler

Hi

We started from the simple peripheral application to develope our software

As we have to write specific information in the start of the application (Flash address 0x00000000 to 0x00000050), we adjusted the linkerscript to reserve this space

FLASH_IMG_HDR (RX) : origin = 0x00000000, length = 0x00000050

and we put a specified variable into this section

.image_header   :   >  FLASH_IMG_HDR

In the simple peripheral example during compilation an additional linker script is generated. In the last section of this script (

SECTIONS
{
.bootVecs: type = DSECT
.resetVecs: load > 0x0
.vecs: load > 0x20000000, type = NOLOAD

xdc.meta: type = COPY
xdc.noload: type = COPY
}

)

i had to modify  the .resetVecs : load > 0x50 so that this table is written in the flash memory behind the FLASH_IMG_HDR.  The compiled code has now the  FLASH_IMG_HDR at the right position but it is not working. 

Is there something missing?

My second question is how this additional linker script is generated (linker.cmd)

Cheers

Dr. Martin Fürst