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.

Cannot load program on target board using CCSv4

Hello,

I  have just started working with Code Composer Studio and the OMAP 3530 processor.  I am using a Spectrum Digital XDS510 USB JTAG emulator.  I created a target configuration without any GEL files.  I halt the Cortex-A8 in UBoot through a serial connection and then I connect from Code Composer Studio. The basic connection seems fine. However, after I write a simple program to print a few variables to console,  I get errors during the debug session.  It seems like the program does not get loaded due to the following error:  

Cortex_A8_0: Warning: Error 0x40000002/-1065 Warning during: Memory,  Invalid memory access at 0x00000000 
Cannot write to target

 

Since I am not using any GEL scripts, I would expect the memory map to be configured correctly. It would be very helpful if someone can share their experience with Beagleboard and CCSv4 or give an explanation of why this could be happening. I wonder if I would have to modify existing GEL scripts and use them instead of initializing through the kernel's boot loader.

FYI: There were no GEL scripts from the board manufacturer.

Thank you in advance!

 

 

  • In your simple program how are you setting up your linker command file? The linker command file defines where in memory your code gets linked to, and thus where CCS attempts to load it.

    RH said:
    Cortex_A8_0: Warning: Error 0x40000002/-1065 Warning during: Memory,  Invalid memory access at 0x00000000 
    Cannot write to target

    This error indicates you are trying to load something to 0x00000000, which in the OMAP3 is GPMC space and may not be writable directly if it has flash memory attached. If you adjust your linker command file to have your program linked into a known good RAM space, such as somewhere past 0x80000000 for DDR, you should be able to load it.

    Note that DDR will only be accessible if you have a GEL file to set it up or if U-Boot runs before you connect with CCS.

  • Hello Bernie,

     

    Thank you for getting back to me.  I did not specify a linker command file when creating the project. I have just one linker command file available, but it is for the TMS570.  I am still looking and will update you soon.