This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm not able to get BSL-scripter tool work with MSP-FET to program my MSP430FR5969 board.
MSPFlasher and CCS are working fine on the board via MSP-FET's JTAG. Spy-bi-wire using Launchpad is also working fine on the board.
My script is:
LOG
MODE FRxx UART COM4
DELAY 1000
VERBOSE
MASS_ERASE
(COM4 is the MSP Application UART1 port)
Connections:
MSP_FET's UART_TXD --> P2.0 UCA0TXD
MSP_FET's UART_RXD --> P2.1 UCA0RXD
MSP_FET's GND --> Gnd
MSP_FET's RST --> RST/NMI (on the board RST/NMI is coupled to GND via a 1nF Cap and connected to VCC via a 47K resistor).
MSP_FET's TEST --> TEST/SBWTCK.
Board is independently powered.
Since I need to lock the JTAG, getting BSL interface working is important to erase and reprogram later - will appreciate any help to get this working.
Thanks!
Jay
Hi Jay,
If the board is independently powered then this supply voltage should connect to the MSP_FET's VCC_TARGET (pin 4). Otherwise, your physical connections appear to be correct.
How do you know that the BSL scripter is not working with the script provided? The program will return an ACK_ERROR_MESSAGE with the MASS_ERASE command or an incorrect password from RX_PASSWORD. You also need to provide a correct password before the BSL will allow you to make changes to the main memory. Attached is an example that works on my setup.
FR5969_BSL_Scripter_Example.zip
Regards, Ryan
Ryan,
The problem with mass erase in my case is that it is not working consistently - it works only after several attempts (I know this since a program was loaded into the FRAM via JTAG). Your point regarding the error message on MASS_ERASE is noted.
After a successful mass erase when I try to write a program via BSL I'm still getting the same ACK_ERROR_MESSAGE on all the commands. After mass erase I am using the default password - I've copied the password command/default password file from the zip you provided.
I am attaching the screen shots of the password command and the RX_DATA_BLOCK command's error message. Although the actual code size is more than 10KB only 314 bytes were written.
Script:
MODE FRxx UART 9600 COM4
VERBOSE
RX_PASSWORD password_wrong.txt
DELAY 2000
RX_PASSWORD password_default.txt
RX_DATA_BLOCK program.txt
Thanks,
Jay
Password command output:
RX_DATA_BLOCK command output:
Jayaraj Poroor said:Part Number: MSP430FR5969
I'm not able to get BSL-scripter tool work with MSP-FET to program my MSP430FR5969 board.
MSPFlasher and CCS are working fine on the board via MSP-FET's JTAG. Spy-bi-wire using Launchpad is also working fine on the board.
BTW, why you need BSL at all? FR5969 can be locked and unlocked (mailbox mass erase) by SBW / JTAG.
Jayaraj Poroor said:Thanks for your response.
For code protection I was thinking of locking out JTAG (lock without password) and then using BSL to mass erase in case I need to reprogram (which also resets the JTAG lock).
Of course I can set the JTAG password instead of locking it out - but JTAG does not seem to have the BSL security feature of automatically erasing the memory in case of invalid password attempt. This seems to be a good deterrent against brute force attack.
On new FRAM devices JTAG / SBW can be locked without password (05555h, 05555h), and than unlocked by JTAG / SBW with erase by mailbox / boot code. There is no reason to mess with BSL.
Check TOTAL ERASE option for FR58x FR59x FR68x FR69x (01B1Bh) and USER CODE ERASE for FR2xx FR4xx (01A1Ah) on MSP-Flasher or flashing tool that you are using.
If this works then this is the best option. I locked the JTAG without password (MSPFlasher -f option). Then when I tried the ERASE_TOTAL option I'm getting the error "The debug interface to the device has been secured." (screenshot attached).
As mentioned in the original post, I'm using MSP430FR5969.
Jayaraj Poroor said:If this works then this is the best option. I locked the JTAG without password (MSPFlasher -f option). Then when I tried the ERASE_TOTAL option I'm getting the error "The debug interface to the device has been secured." (screenshot attached).
As mentioned in the original post, I'm using MSP430FR5969.
**Attention** This is a public forum