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.

Memory Programming of microcontroller with CCS and debug probe

Other Parts Discussed in Thread: PGA900

Hello,

This question is related on another one I posted on the Sensors forum (see the link at the end of my post). I want to program my microcontroller (a PGA900) on its EVM board with an XDS probe, like it is explained on the controller's docs. However, I want to upload my code on a specific memory space of the chip, named DEVRAM, and leave the other space, named OTP, blank while I'm testing my code. I made the mistake to program on the wrong memory space a couple of times (see my post on the sensors forum for the details of what I did), so now I want to only use CCS and a debug probe. So, because I don't want to accidentally program again on the OTP memory, I want to be sure of a few things on CCS.

Firstly : What do I have to do on CCS to write my code only on the DEVRAM memory ? I edited the .cmd file of my project for the linker so that all the sections originally allocated to OTP are now allocated on DEVRAM (see the screenshot below of the modified file and the memory address schema). Is that the right thing to do, and is there something else I have to do ?

Secondly : After successfully linking to the PGA900 with CCS and the probe (I know it works because I could read the memory content and the registers), I tried to load my compiled program. However, I got a memory check error : "Cortex_M0_0: File Loader: Verification failed: Values at address 0x21000003 do not match Please verify target memory and memory map.". I suspect it might happen because the OTP memory was already written at that time : am I right ? If I try to load again my program on this failed PGA, I get the same error.

Link to the original question on the sensor forum : https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1201845/pga900-devram-programming-with-xds-probe

Best regards,

Benjamin GAY.

  • Hello,

    Regarding

    , I tried to load my compiled program. However, I got a memory check error : "Cortex_M0_0: File Loader: Verification failed: Values at address 0x21000003 do not match Please verify target memory and memory map.". I suspect it might happen because the OTP memory was already written at that time : am I right ? If I try to load again my program on this failed PGA, I get the same error.

    The reasons for the data verification error can vary. The below article describes most of the common scenarios where it can occur:

    https://dev.ti.com/tirex/explore/node?node=A__APy2XbLelxyqBB2Yz0WR.w__ccs_devtools__FUz-xrs__LATEST

    Firstly : What do I have to do on CCS to write my code only on the DEVRAM memory ? I edited the .cmd file of my project for the linker so that all the sections originally allocated to OTP are now allocated on DEVRAM (see the screenshot below of the modified file and the memory address schema). Is that the right thing to do, and is there something else I have to do ?

    I will bring this question to the attention of our compiler expert.

    Thanks

    ki

  • What do I have to do on CCS to write my code only on the DEVRAM memory ? I edited the .cmd file of my project for the linker so that all the sections originally allocated to OTP are now allocated on DEVRAM (see the screenshot below of the modified file and the memory address schema). Is that the right thing to do

    Yes

    is there something else I have to do ?

    Not that I can see.

    All that said, I am not an expert on this device.  To better understand linker command files generally, please see the article Linker Command File Primer.

    Thanks and regards,

    -George

  • Hello Mr Mock,

    Thank you for your answer. I think I have everything set up to program on the right memory space. I will try again to program a PGA900 soon.

    I thank you also Mr Ki, I'll look into the memory check errors when I get a new PGA.

    Have a nice day,

    Benjamin Gay.