I'm using CCS to develop a bootloader for MSP430. I can flash that from within CCS.
When using UniFlash commandline, like this:
/opt/ti/ccsv6/ccs_base/scripting/examples/uniflash/cmdLine/uniflash.sh \ -ccxml targetConfigs/MSP430F5310.ccxml \ -setOptions MSP430UnlockBSLMode=true \ -program Debug/BSL.hex
I get the following results:
1. I can uniflash a non-bootloader always without problems
2. I can uniflash a bootloader successfully if the exact same hex file was flashed in CCS just before
3. If I try to uniflash any bootloader hex file that was not just flashed in CCS before, for example this very simple test file
:0410100000080800CC :101042000A141F431F52801C1E42801C5C4E030068 :00000001FF
It always fails, with this error:
SEVERE: MSP430: File Loader: Data verification failed at address 0x00001048 Please verify target memory and memory map. SEVERE: MSP430: GEL: File: test.hex: a data verification error occurred, file load failed SEVERE: File: test.hex: a data verification error occurred, file load failed. SEVERE: Error loading "test.hex": File: test.hex: a data verification error occurred, file load failed.
What is going on, and how do I fix it?
Environment: CCS 6.1, Ubuntu 14.04LTS, MSP430F5310