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.

MSPM0G3507: How to use FLASH region without ECC Check (Uncorrected)

Part Number: MSPM0G3507

Hello,

I am working on integrating a FlashBootloader into our project and I am facing some resets during transfer of the data. For flashing/debugging I am using CCS 12.4.0 with XDS110 Debug Probe.

The cause of the reset usually is SYSCPULOCK, and I see that I have a NMI exception caused by double error detect of ECC, see Registers below:

My question is, how can I use the Flash area which doesn't perform any ECC check (0x0040.0000)?

With the help of linker files I tried to move all the code starting with address 0x0040.0000, the .hex file looks good, but when I try to flash the code via debugger, I get a warning inside CCS, and the SW is written starting with address 0x0, even if the .hex file which I am flashing starts from 0x0040.0000.

Can you give me some hints on how to use the Flash area without ECC check?

For SRAM I managed to do that and it is working, but with Flash memory it looks like it doesn't work at all.

Thank you in advance for your support!

  • Hi Marcel,

    Please share your cmd file and I can give more specific suggestions.

    Actually the both region will have the same data.

    The difference is that when you read the Flash from no ECC region, it will not check the ECC data. From my side, I suggest you can try below operations, it is simpler for use:

    1.Keep the Flash data in ECC region.

    2.It is better use Flash API function in SDK driverlib for Flash opeation with ECC.

    3.Anytime you want read the Flash data, read from no ECC region if you do not write the Flash data with ECC.

    B.R.

    Sal

  • Hi Sal,

    Thank you for your response! Unfortunately I am using a linker with .ld extension, not .cmd, and I am not sure I can share it since it was created by the company which implemented the FlashBootloader for us. I don't want to cause any license violation topics.

  • Hi Marcel,

    It is OK for the confidential information not shared.

    I suggest you still use ECC Flash to run the code. In the application code, when you want to read the Flash data, then use the no ECC Flash region to avoid the FlashDED.

    If you insist on using the no ECC FLash for application code, which I haven't tried it before, maybe you should also re-configure the __cint_00():

    B.R.

    Sal