Hi, I'm working firmware for a support board that is attached to a Raspberry Pi. I have some existing I2C code that communicates with the MSP430FR2422 and the Pi. Now I'm trying to get the I2C BSL sorted out. I've modified my code to the follow to test the BSL:
int main(void){ WDTCTL = WDTPW | WDTHOLD; //Stop watchdog timer to prevent time out reset PM5CTL0 &= ~LOCKLPM5; //Disable the GPIO power-on default high-impedance mode to activate // previously configured port settings __bic_SR_register(GIE); //Clear GIE ((void (*)())0x1000)(); //Jump to BSL }
Running:
pi@raspberrypi:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
I've complied the TI example tool from msp430_i2c_bsl_linux_tools_v1_00_00_00.zip and I get the following:
pi@raspberrypi:~/i2c_test/bsl $ ./msp430-i2cbsl-tool -f firmware.txt -i /dev/i2c-1 -s 0x48 --------------------------------------------------------------- TI MSP430 I2C Linux BootLoader 01.00.00.00 --------------------------------------------------------------- INFO: Firmware file firmware.txt specified INFO: I2C BUS /dev/i2c-1 specified INFO: Slave address 0x48 specified INFO: Opening TI-TXT firmware file firmware.txt... done! INFO: Password file not found, defaulting to 0xFFs. INFO: Invoking BSL (Attempt 1)... Invoke sent! INFO: Delaying for 2 seconds to wait for invoke... done! INFO: Attempting to unlocking device with password... Fail! INFO: Device could not be unlocked. Resetting password and trying again. INFO: Invoking BSL (Attempt 2)... Invoke sent! INFO: Delaying for 2 seconds to wait for invoke... done! INFO: Attempting to unlocking device with password... Fail! INFO: Device could not be unlocked. Resetting password and trying again. INFO: Invoking BSL (Attempt 3)... Invoke sent! INFO: Delaying for 2 seconds to wait for invoke... done! INFO: Attempting to unlocking device with password... Fail! INFO: Device could not be unlocked. Resetting password and trying again. INFO: Invoking BSL (Attempt 4)... Invoke sent! INFO: Delaying for 2 seconds to wait for invoke... done! INFO: Attempting to unlocking device with password... Fail! INFO: Device could not be unlocked. Resetting password and trying again. ERROR: When trying to invoke or unlock device (Response code 0x104).
I've been poking at the for a couple of hours now. I'm really not sure where the issue is. Any suggestions?!?