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.

USB Keyboard for MSP430F5529 - Data verification failed at address 0x00000000

Other Parts Discussed in Thread: MSP430F5529, MSP430F5510, MSP430F5438A

Hi Everyone,

I downloaded the USB Keyboard code for MSP430 from here: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/USBKBD_430/latest/index_FDS.html

The original project setting was for MSP430F5510. But I want to test the code on the MSP430F5529 USB Experimenter’s Board. So, I imported the project into CCS v5.1.0 and changed both the "Device Variant" and "Linker command file" settings to MSP430F5529 on the Project -> Properties -> General setting page. I was able to compile the code successfully but when I tried to launch/debug it, I got the following error:

 MSP430: File Loader: Data verification failed at address 0x00000000 Please verify target memory and memory map.
MSP430: GEL: File: C:\ti\msp430\SLAA514_SW\CCS\Debug\USB_kbd.out: a data verification error occurred, file load failed.

What other changes do I have to make to the project settings/code to make it work?

Thanks
Binh
  • Binh,

    I also had to change the target configuration file to MSP4305529.ccxml, and make an edit to the lnk_msp430f5529.cmd file to insert the scancode data.  In the .cmd file, change the length of the FLASH segment as shown, add these lines between FLASH and FLASH2:

    FLASH : origin = 0x4400, length = 0xB600

    USBKBD_SCANCODES_SEGMENT : origin = 0xFA00, length = 0x0200

    USBKBD_CONFIGCONST_SEGMENT : origin = 0xFC00, length = 0x0200

    FLASH2 : origin = 0x10000,length = 0x14400

    and also add these between .pinit and .infoA:

    .pinit : {} > FLASH /* C++ CONSTRUCTOR TABLES */

    .USBKBD_SCANCODES_SEGMENT : {} > USBKBD_SCANCODES_SEGMENT

    .USBKBD_CONFIGCONST_SEGMENT : {} > USBKBD_CONFIGCONST_SEGMENT

    .infoA : {} > INFOA

    After adding these lines, I was able to compile cleanly and successfully connect to the board and step through the code.

    Thanks,

    John

  • Great. It worked.

    Thanks a lot, John.

    Binh

  • Just wanted to post a note for anyone else getting a "Data verification failed at address 0x00000000" error.  Mine had nothing to do with the USB kit or whatever.  Just a custom Msp430f5438a

    After much much frustration, tried updating the linker file with the latest provided by CCS.  Apparently they made some changes between 5.3 and 5.4 that broke the old linker files.  Using a 5.3 default linker file can cause the above error.  No idea why...but switching to the latest .cmd file for the 438a fixed my issue.

**Attention** This is a public forum