Other Parts Discussed in Thread: MSP430FR6972,
Hi there,
In one of my customised board containing MSP430FR6972, I am using JTAG Lock With password protection feature and I provide that password via MSP430 Flasher to update the firmware later.
For MSP430FR6972, I am using the following code outside main,
/* * Lock the JTAG with password. * * Setting 0xAAAA for JTAG signature 1 on FR5xx/6xx devices locks the device * with a password. JTAG signature 2 is the password length in words. * The only way back into device is to provide the password via the toolchain. */ #pragma location = 0xFF80 __root const unsigned int JTAG_signatures[] = {0xAAAA, 0x0002}; /* * Set the password. * * To access the device again after JTAG password is enabled, provide the * password in the Project Options under Debugger > FET Debugger, on the * Download tab. * In the box for JTAG Password: (Hex format) write the password in words, with * the least significant word first. In this example, provide the password * "0x34127856" if "__root const uint8_t JTAG_password[] = {0x12, 0x34, 0x56, 0x78};" * * To disable JTAG password again, load any project that does not have a JTAG * password defined - remember to provide the correct password to be able to * load this new project the first time. */ #pragma location = 0xFF88 __root const unsigned char JTAG_password[] = {0x01, 0x02, 0x03, 0x04}; // Password = 0x02010403
In my other customised board with MSP430FR2155, I am not being able to lock the JTAG with password. So that I can update the firmware using that password protection later.
It will be wonderful if anyone can provide a sample code for that.
Regards,
Harish KS