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.

CC2540: Setting a fixed value to given address in hex file

Part Number: CC2540

Hi!

I have developed a OAD image that I am using SmartRF Flash programmer to program the Flash initially. The image contain 3 parts; the bim image, image A and image B. In the BIM image, I have defined a variable that is used to select which image to boot from. Image A contains the image which mainly contains the OAD functionality, while Image B contains the main code. Thus writing to a characteristic I can switch from ImageB to ImageA when I want to perform an OAD. The problem occurs after programming the device with the SmartRF Flash programmer. Some devices start with ImageA and others with ImageB. In the BIM image the variable is defined to be located at address 0x09 and also defined to be __no_init. If this was to be initialised by the BIM image I guess that the switching would fail. So I guess the only solution is to set this location(0x09) to a fixed value in the hex file. How can I do that?

Any suggestions?

Best regards,

Jan