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.

TMDX570LS31USB with "a memory region that is not writable"

I am using CCS 5.4.0.00091 with TMDX570LS31USB USB stick. The following message was shown when compiling the demo program provided by TI, what does it mean?

CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.

I uploaded the system link file for your reference. I am using the demo program directly from C:\ti\Hercules\Hercules Safety MCU Demos\TMS570LS3x_target_sources\

It's the first time I am using CSS with TI evaluation board and thanks for your help!

  • Hi Eric,

    There is no problem with the memory mapping in the cmd file used in the demo project. I just compiled the demo project and loaded it to the flash without any problem.

    Can you please disconnect the JTAG, and unplug/re-plug the usb stick? If the problem comes again, please send me the map file which should under debug folder.

    Thanks and regards,

    QJ

  • Hi QJ,

    This problem occurred since the first time I am programming for this USB stick and unplug the usb stick cannot solve this problem.

    I found two .map files under the "C:\ti\Hercules\Hercules Safety MCU Demos\TMS570LS3x_target_sources\build\Debug" and I already uploaded them. Thanks for your help!

    Debug.zip
  • Hi Eric,

    1. Can you please try to run from RAM? After target is connected, using the scripts to swap the flash and the ram.

    2. For using flash, the On-Chip Flash under Tools shows several erase options:

    • Entire Flash
    • Necessary Sectors Only (for Program Load)
    • Selected Sectors only <- when you select this one it enables some more options for selecting which banks to erase

    Is there any problem to erase the flash?

    Regards,

    QJ