Hello,
I'm attempting to flash a revised CAN bootloading project directly to the OTP memory on a F28035 but am having issues with the following error:
C28xx: File Loader: Verification failed: Values at address 0x00000000003D7800 do not match Please verify target memory and memory map.
C28xx: GEL: File: C:\...\CCS\F28035_Flash_CAN_OTP\Debug\F28035_Flash_CAN_OTP.out: a data verification error occurred, file load failed.
I'm using the following TI example code as a baseline: http://www-s.ti.com/sc/techlit/spraaq3.zip
The following is my linker file:
MEMORY { PAGE 0 : CANBOOTINIT : origin = 0x3D7800, length = 0x000020 CANBOOT : origin = 0x3D7820, length = 0x000200 PAGE 1 : EBSS : origin = 0x0000400, length = 0x00020 STACK : origin = 0x0000420, length = 0x000300 /* on-chip RAM block M0 */ } SECTIONS { .InitBoot : load = CANBOOTINIT, PAGE = 0 .text : load = CANBOOT, PAGE = 0 .stack : load = STACK, PAGE = 1 .ebss : load = EBSS, PAGE = 1 }
I have attached the entire project with the generated .map file after compilation. F28035_Flash_CAN_OTP.zip
After compiling, the .map file shows that the program is correctly being placed at address 0x3d7800 (the start of OTP) but I am unable to program. If I connect to the target through JTAG without programming, I can view the OTP memory and can see that it's still all 0xFFFFs (never been written to). I've also confirmed that the OTP is defined in the Memory Map and .gel file as this wikipage suggests checking for: http://processors.wiki.ti.com/index.php/Troubleshooting_CCS_-_Data_Verification_Errors
I've also tried defining the bootloading specific .obj files to be allocated to CANBOOT and moving .text to an empty section of RAM but the linker file will simply program all objects to the .text region (RAM) instead of OTP as I wished.
My main goal is to have a single project that is used to configure the OTP custom bootloader and then later flash other program code into other non-OTP regions of memory. If anyone has an idea of what I'm configuring incorrectly or an alternative solution, I'd be happy to hear.
Thank you,
SH