Part Number: TMS320F28386D
Other Parts Discussed in Thread: UNIFLASH
Hello all,
I'm trying to program the Z1OTP_JLM_ENABLE Register (address 0x78006) with the value 0xFFFF0000 to enable the JTAGLOCK feature on the device. Code Composer Studio v12 and Uniflash v8.2 both return the same error below. The rest of the flash process completes successfully.
C28xx_CPU1: Error during Flash Programming. Address 0x00078004, FMSTAT (STATCMD on some devices) 0x00000030
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
I'm sure the location hasn't been programmed already, also I'm only programming 0x78006 and NOT 0x78004, so where does this address come from?
Using the On-Chip Flash tool to manually program the JTAGLOCK always works on my devices, but we need it embedded in the .out file.
The relevant lines in the linkerscript:
MEMORY{PAGE 0:PAGE 1: Z1_OTP_JLM_ENABLE : origin = 0x78006, length = 0x000002}SECTIONS{ z1_otp_jtaglock_enable : > Z1_OTP_JLM_ENABLE}
The .asm part:
.sect "z1_otp_jtaglock_enable"
.retain
.long 0xFFFF0000
Thanks for the help in advance!