hello everybody,
I am using the TMS570LS3137 HDK with CCS Version: 6.0.1.00040 and HALCoGen 04.01.00.
I am in trouble to load code inside my HDK
* Symptoms :
- When I try to run debug for any code (even the working old ones and new HelloWorld from scratch) I get the following error :
CortexR4: File Loader: Data verification failed at address 0x00000000 Please verify target memory and memory map.
CortexR4: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
- The nERROR red LED is on.
- Demo mode cannot access the card.
* Probable cause :
- In my main() there is _mpuInit_() followed by _mpuEnable_(). I ran the code with the _mpuInit_() commented. From this point, my HDK is unusable now.
- GEL file is unedited and only SDRAM section was added into sys_link.cmd => memory maps slightly different (but it worked like for me this from the beginning)
* Access still available to the HDK:
- I can access the target in debug mode by loading the target configuration (TMS570LS3137.ccxml).
- after I connect to the target, with a system reset, I can view the disassembly and the registers.
- I can load symbols manually to visualize the source code and run step-by-step until crash (crashing instruction is isb inside _mpuInit_(); )
- running the code trough sys_startup() clears the nERROR LED.
- I can also reset the nERROR LED by writing 0xA then 0x0 into the ErrKEY register.
- RAM is writable, Registers are writable.
- JTAG test connection works
* Unsuccessful Tries :
- debuging code with the all-in-one button. > I get the error
- loading a valid .out after connection to the target in manual debug mode (by loading the target configuration TMS570LS3137.ccxml). > same error
- loading a valid .out after clearing the nERROR > same error but different address -> 0x00008BC0
- Erasing flash with the "On-Chip Flash" menu (error : Target is not connected or does not support current Flash operation)
- Loading a demo code (such as light show) > demo loader does not access the target
- I followed this thread, this one and the WIKI with no solutions for me.
I hope there is something I'm missing and you can help me
Best regards,
Benjamin