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/CC2540: Where is the starting point/address of program code (code section) in the compiled hex and read-back hex file?

Part Number: CC2540


Tool/software: TI C/C++ Compiler

This is a validation issue. I need to verify the compiled hex file against the read-back hex file by comparing the code sections to prove that the device CC2540 is really running the same and true code. I read the memory-map section on the CC254x user's guild to see where is the starting point of the code section. Base on the hex files and document, It seems code section starts at 0000:8000 (is it true?), but I can't figure out where it ends. Is there any idea to find out that?

  • Hello,

    You can find the CODE memory regions listed in the map file. Note that the SNV memory region will change if you allow the device to power up after programming the image.

    Best wishes
  • Actually, I see a little discrepancy between two read-back hex files, which I read from two different devices. I think it is because of 2KB information page that contains the specific information per device such as ID, MAC etc. But I can't find where it starts in the hex files. Could help us on this issue?

    I need to verify two different devices in order to prove that two devices are really running the same program code as the compiled hex. So I'm looking to find a way to parse hex file and find the whole program code on both read-back and compiled hex file.