Other Parts Discussed in Thread: UNIFLASH, MSP-GANG, MSP-FET
I'm using CCS v9.3 as the IDE and the MSP430F5172 target.
Simply, I wish to generate the .hex output file for upload using Uniflash in a production environment. This .hex output file needs to be generated with C source code that will lock the JTAG/SBW interface as described in sla685 Section 2.2.1 I've already read sla685 and am still confused on how to do this operation. Are there any code examples that show how this can be done?
Specifically, I do not understand what this means:
"To program these addresses, the protected area of BSL flash must
first be unlocked by clearing the SYSBSLPE bit in the SYSBSLC register. After programming the
signatures, the BSL protection should be re-enabled."
How do I do the above in C code?
Then, if I need to unlock in order to re-flash the device, slau685 says:
"To clear JTAG/SBW lock protection, the BSL can be used to clear the JTAG signatures to 00000000h.
The BSL is password protected by the last 32 bytes of the interrupt vector table FFE0h–FFFFh (see
Section 4). Because the JTAG signature is located in the protected BSL area, the BSL must first clear the
SYSBSLPE bit in the SYSBSLC register (write 0003h to the address 0182h), before writing 00000000h to
the JTAG signatures."
What does this mean? How do I "use" the BSL to clear SYSBSLPE? How do I actually do any of this?
I use the CCS IDE. I don't know how to, nor do I care to know what the BSL is and how to use it.
Can somebody explain what I am missing here?