Tool/software:
Hi experts,
My customer want to enable JTAGLOCK using their code, that means they want use FLASH API to program the DCSM register in OTP.
I make a demo but it unsuccessful.flashapi_128bit_programming.zip
I check the oReturnCheck of flash api and it's statues is success, but the value in OTP is not change.
1. Could you help to check if we can use flash api to enable the JTAGLOCK? This is urgent since if we can't do it, they will change the chip to others.
2. What's more, in CCS, we can use below method to unlock JTAGLOCK, do we have any other method? In customer production line, they don't use CCS, and they use their own master computer. So they want to know how can they integrate unlock JTAGLOCK to their own master computer?
BRs
Shuqing
Hi Shuqing
Can you please call below function before program/erase command? This will resolve your issue.
Fapi_setupBankSectorEnable(FLASH_WRAPPER_PROGRAM_BASE+FLASH_O_CMDWEPROT_UO, 0x00000000);
Refer flash API user guide for more details http://www.ti.com/lit/pdf/sprujc5
Regards,
Rajeshwary
Hi Rajeshwary,
Thanks for your reply. I can program the OTP using flash api
1. So we can use the flash api to enable the JTAGLOCK in our application?
2.I check the flash api user guide, it have some cautions that when we use FLASH API to program the OTP:
Is anything other? For example, what the order when we enable the JTAGLOCK? Can we program the Z1OTP_JLM_ENABLE firstly and program the Z1OTP_JTAGPSWDH0 later or any other recommended order?
In addtional to the order, any other need to pay attention to? ECC, data length or any other?
BRs
Shuqing
Hi,
Here is order of programming
1. Program JTAGPSWDH0 & JTAGPSWDH1 using Fapi_AutoEccGeneration( 4 words)
2. Program JTAGPSWDL0 and JTAGPSWDL1 using Fapi_AutoEccGeneration( 4 words)
3. Enable Z1OTP_JLM_ENABLE using DataOnly mode( 2 words)
Regards,
Rajeshwary