Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22222

MSP430FR5994: MSPFlasher unable to access password locked JTAG

$
0
0

Part Number:MSP430FR5994

I was experimenting with locking the JTAG and BSL using the below code with my MSP430FR5994 launchpad board.  Based on my reading of the MSP430FR59xx family users guide [0] (p. 65) I think I should be able to access the device with the jtag password 0x1234 but after flashing my device using MSPFlasher I can't access JTAG and more even with the JTAG password I thought I was setting (0x1234).  I also tried MSPFlasher -e ERASE_TOTAL which some documentation indicates should reset FR5xxx devices even if they are JTAG locked.  That didn't work either I always get the message, "# ERROR: The Debug Interface to the device has been secured" from MSPflasher.  Where did I go wrong, and is my device bricked for good?

#include <msp430.h>

__attribute__((section(".bslsignature"))) unsigned int bsl_signature[2] = { 0x5555, 0x5555 };
__attribute__((section(".jtagsignature"))) unsigned int jtag_signature[2] = { 0x5555, 0x0001 };
__attribute__((section(".jtagpassword"))) unsigned int jtag_password[1] = { 0x1234 };

int main(void) {
    WDTCTL = WDTPW | WDTHOLD;
    PM5CTL0 &= ~LOCKLPM5;

    P1DIR |= (BIT1);

    while (1) {

        P1OUT ^= (BIT1);
        __delay_cycles(1000000);
    }

    return 0;
}

[0] http://www.ti.com/lit/ug/slau367o/slau367o.pdf

[1] http://www.ti.com/lit/ug/slau654/slau654.pdf


Viewing all articles
Browse latest Browse all 22222

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>