Hi,
I am using XDS100v2, under CCSv4, and when I want to program my boot variables in order to boot from SPI I have the following message:
C28xx: Flash Programmer: Error encountered when writing to flash memory
C28xx: Trouble Writing Memory Block at 0x3d7bfc on Page 0 of Length 0x2
Cannot write to target
My configurations are the following:
I have defined two constants at 0x3D7BFB and 3D7BFE, such as:
#pragma DATA_SECTION(BootModeValue, "BootMode");
const long BootModeValue = 0x0004;
#pragma DATA_SECTION(KeyBootValue, "KeyBoot");
const long KeyBootValue = 0x005A;
OTP : origin = 0x3D7800, length = 0x0003FB /* on-chip OTP */
KEY_BOOT : origin = 0x3D7BFB, length = 0x000003 /* Key Boot value in OTP */
BOOT_MODE : origin = 0x3D7BFE, length = 0x000003 /* Boot mode selection */
BootMode : > BOOT_MODE, PAGE = 0
KeyBoot : > KEY_BOOT, PAGE = 0
When I look at my memory, I can see that BOOT_MODE value has well be set, but not my KEY_BOOT(0xFFFF)... Which leads to error message.
My device was never used before I programmed it one time, and had this error code.
So, can you explain me why I can't program my OTP, or the way to do it?
Thank you,
Éric