Why does the "Data verification failed at address 0x30001F" error occur with Embedded Target for TI C2000 Delfino 28335 XDS100 (R2012b)?

9 views (last 30 days)
I am new to Simulink so the first thing I did after integrating CCS with Simulink was to write and run a blink LED program. It worked perfectly. When I tried to implement an ADC, however, I got the following error.
After the build of the Simulink model completed and while the .COFF file is being loaded I receive the following error dialog: Data verification failed at address 0x30001F Please verify target memory and memory map
What is the solution to this? Thanks.

Answers (1)

Antonin
Antonin on 22 Jan 2015
Dear Stephen, 0x30001F is the beginning of the flash memory section. You are probably using CCSv3.3 which is not able to directly load code in the flash memory.
3 options for you:
- In the configuration parameters of your model, look for the Flash_loader option and enable "Erase, Program, Verify". Make sure to enter the correct path to the Flash APIs that you can download and install from the TI's website. Also make sure that the Flash APIs are correctly set using the checkEnvSetup command. This should allow you to automatically flash your code on the processor as part of code generation.
- You can also change your build action to "build" only in the configuration parameters of your Simulink model, then use a flashing tool like the F28xx On Chip Flash Programmer CCSv3.3 plugin, or SD Flash.
- Starting from R2013b, you can set your model with ert.tlc instead of idelink_ert.tlc as your system target file. This technique combined with CCSv4/5/6 will offer automatic download of the generated code in RAM and Flash without extra settings.
I hope it helps,
Good luck,
Antonin.
  2 Comments
manuel
manuel on 27 Jan 2015
Edited: manuel on 27 Jan 2015
Hi Antonin,
I am using ccsv5.2 and matlab 2014a(embedded coder 6.6). I have problems when I try to use Flash_loader optoion enabled whatever election of program, erase or verify is (Nevertheless this does not occur with ccsv3). I have checked the API folder and it is ok. The displayed mistake is: "Error while loading and running the program. Cannot start CCS aplication (COM error ID: 0x80040154). Verify that your CCS software is installed and configured properly". Curiously I can build and execute directly into F28335 microcontroller both RAM memory and FLASH memory if Flash_Loader is disabled (I locate some sections in FLASH memory to program in FLASH memory iven with FLash_Loader disabled)
This is very extrange, could you give me some tips please.
There is attached an extended document where is explained the CCSv5 configuration, the xmakefile configuration and the mistake.
Best regards

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!