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.

Failing to load program to external memory

Hi,

 

I have custom board, XDS510LC USB emulator, CCS 3.3. I can't load program to external SRAM, nor I can read this memory right after reset. However, my program in Flash, that makes use of this memory, works fine. Moreover, when I stop my program I can read the memory. This situation happened before and ended without intervention. But now again...

 

Help would be appreciated.

 

 

  • Hello,

    Do you get a data verification error when trying to load to the target? You should double check the debugger memory map and make sure the external SRAM addresses are writable. Perhaps the memory needs to be initialized and it is done by your application in flash (hence you can access it after you run the app in flash)?

    ki

  • I get a popup: Load failed

    , and in the output window:
    Trouble Writing Memory Block at 0x1dfad4 on Page 0 of Length 0x9ab: Error 0x00000002/-1143 Error during: Memory, The memory at 0x001DFAD6 continually indicated it was 'not ready' All memory operations currently in progress were aborted in order to regain control of the processor. This is considered a catastrophic event, but the debugger should still be able to access memory and CPU registers. System state has been altered. It is strongly advised that the processor should be reset before resuming execution,

     

    I checked that the memory map in CCS is set up. I know the memory needs to be initialized, but I think GEL script does that.

  • My prototype board has processors's XREADY pin connected to other stuff on board. Therefore my production code disables sampling of this pin,  whilst CCS gel files enable this. But... why it worked well so long?