Other Parts Discussed in Thread: UNIFLASH
I get this error when the build is trying to load to flash.
C28xx_CPU1: Error during Flash Programming. Address 0x00078208, Data 0x0000E000, FMSTAT 0x00000030
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: C:\work\reset_57_blip_pin_15_Long_Short _2X_SCIB_WRITE\CPU1_FLASH\reset_57_blip_pin_15_Long_Short _2X_SCIB_WRITE.out: Load failed.
Tools is grayed out until OK is clicked then it goes out of debug mode. Selecting debug from the top right-hand corner brings back debug view but on chip flash is no longer available. I thought if I erased flash the problem would go away so I deleted the offending code and accessed on chip flash to erase but it did not help.
I have these lines in my link cmd file:
MEMORY { PAGE 0: DCSM_ZSEL_Z2_P0: origin = 0x078208, length = 0x000002 DCSM_ZSEL_Z2_P1: origin = 0x07820C, length = 0x000002 //DCSM_ZSEL_Z1_P0: origin = 0x07800C, length = 0x000002 //DCSM_ZSEL_Z1_P1: origin = 0x07801C, length = 0x000002 } SECTIONS { dcsm_zsel_z2_1 : > DCSM_ZSEL_Z2_P0, PAGE = 0 dcsm_zsel_z2_2 : > DCSM_ZSEL_Z2_P1, PAGE = 0 } MEMORY {
And these at the beginning of main.c:
// Per SPRACN1 #pragma RETAIN(otp_z2_data) #pragma DATA_SECTION(otp_z2_data,"dcsm_zsel_z2_1"); const long otp_z2_data = 0x5AFFFF0F; #pragma RETAIN(otp_z2_data_2) #pragma DATA_SECTION(otp_z2_data_2,"dcsm_zsel_z2_2"); const long otp_z2_data_2 = 0xFFFF0103; // End SPRACN1
This seems right per the TRM table.
Thanks,
John