I cannot successfully load firmware onto a MSP430FR5994 LaunchPad using BSL-Scripter.
I am invoking the BSL programmaticallly by calling this function:
int startBSL(char *pMagic) { if (strcmp(pMagic, magicString) != 0 ) return -1; __disable_interrupt(); // to eliminate echo of chars // jump to Z-area of BSL ((void (*)())0x1000)(); // jump to BSL }
I consistently get a response from the BSL as follows:
--------------------------------------------------------- BSL Scripter 3.2.0 PC software for BSL programming 2018-Dec-31 19:15:33 --------------------------------------------------------- Input file script is : C:/qfl/script_BSL.txt MODE FRxx UART 9600 COM9 PARITY DELAY 200 Delay 200 ms VERBOSE Verbose mode is now on! TX_BSL_VERSION [80] [01] [00] [19] [e8] [62] <80> <02> <00> <3b> <04> <e4> <84> [ERROR_MESSAGE]BSL is locked! DELAY 200 Delay 200 ms RX_PASSWORD pass32_wrong.txt Read Txt File : C:\qfl\pass32_wrong.txt [80] [21] [00] [11] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [00] [00] [91] [fb] <80> [ACK_ERROR_MESSAGE]Unknown ACK value! DELAY 2000 Delay 2000 ms RX_PASSWORD pass32_default.txt Read Txt File : C:\qfl\pass32_default.txt [80] [21] [00] [11] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [ff] [9e] [e6] <80> [ACK_ERROR_MESSAGE]Unknown ACK value! //CHANGE_BAUD_RATE 115200 RX_DATA_BLOCK _loadfile.txt Read Txt File : C:\qfl\_loadfile.txt [80] [24] [00] [10] [00] [40] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [00] [a2] [68] <80> [ACK_ERROR_MESSAGE]Unknown ACK value! Time elapsed of writing 87 bytes : 0.03123 seconds Speed of writing data :2.72(kB/s)
I am entering the BSL since I am getting back the expected response string from TX_BSL_VERSION.
I expect that the BSL does a mass erase of FRAM after
RX_PASSWORD pass32_wrong.txt
However, it's not clear to me why I am getting back the "Unknown ACK value!" in response to the
"RX_PASSWORD pass32_default.txt"
Can anyone suggest what might be wrong here?