Part Number: MSP432P401R
Other Parts Discussed in Thread: MSP-FET, MSPBSL
Hi Champion
I used the BSL scripter, MSP-FET, MSP-EXP432P401R to test I2C BSL function.
I connected MSP-FET SDA, SCL and GND to launchpad P3.6, P3.7.
Then build the blinking project with below setting, and load to device:
#define BSL_PARAM 0xFC488FFF // I2C slave address = 0x48, Interface selection = I2C 0xFC489FFF
#define BSL_API_TABLE_ADDR 0x00202000 // Address of BSL API table
#define BSL_ENTRY_FUNCTION (*((uint32_t *)BSL_API_TABLE_ADDR))
((void (*)())BSL_ENTRY_FUNCTION)((uint32_t)BSL_PARAM); // call this function before while loop
Next is open BSL scripter in command line,
BSL-Scripter.exe script_P4xx_i2c.txt
But it looks MSP432 BSL doesn't work, and I can see the data and clock in the MSP-FET using scope. Please check the log.
--------------------------------------------------------- BSL Scripter 3.2.1 PC software for BSL programming 2017-Apr-27 16:10:01 --------------------------------------------------------- Input file script is : C:/Users/a0220213/Desktop/msp430/msp432 BSL/MSPBSL_Scripter_win/bsl-scripter-windows/script_P4xx_i2c.txt MODE P4xx I2C 400000 COM80 //gives wrong password to do //mass erase in the memory RX_PASSWORD_32 .\pass256_wrong.txt Read Txt File : C:\Users\a0220213\Desktop\msp430\msp432 BSL\MSPBSL_Scripter_win\bsl-scripter-windows\pass256_wrong.txt [ACK_ERROR_MESSAGE]Unknown ACK value! RX_PASSWORD_32 .\pass256_default.txt Read Txt File : C:\Users\a0220213\Desktop\msp430\msp432 BSL\MSPBSL_Scripter_win\bsl-scripter-windows\pass256_default.txt [ACK_ERROR_MESSAGE]Unknown ACK value! MASS_ERASE [ACK_ERROR_MESSAGE]Unknown ACK value! RX_DATA_BLOCK_32 .\Blink_LED.txt Read Txt File : C:\Users\a0220213\Desktop\msp430\msp432 BSL\MSPBSL_Scripter_win\bsl-scripter-windows\Blink_LED.txt [ACK_ERROR_MESSAGE]Unknown ACK value! Time elapsed of writing 256 bytes : 1.026 seconds Speed of writing data :0.2436(kB/s) //RX_DATA_BLOCK_32 .\Blink_LED.hex TX_BSL_VERSION_32 [ACK_ERROR_MESSAGE]Unknown ACK value! TX_DATA_BLOCK_32 0x0000 0x4000 .\ReadBlock_MSP432P401R.txt Write Txt File : C:/Users/a0220213/Desktop/msp430/msp432 BSL/MSPBSL_Scripter_win/bsl-scripter-windows/./ReadBlock_MSP432P401R.txt [ACK_ERROR_MESSAGE]Unknown ACK value! Time elapsed of reading 0 bytes : 1.048 seconds Speed of reading data : 0(kB/s) //TX_DATA_BLOCK_32 0x0000 0x4000 .\ReadBlock_MSP432P401R.hex REBOOT_RESET