Hello,
I am trying to get the i2c BSL on the MSP430FR2355 to work. My plan is to update it's firmware via i2c from a raspberry pi.
i installed the msp430 i2cbsl tool on the pi and connected it's i2c bus to pin P1.2 and P1.3 on the MSP. In the MSP Firmware I am invoking the
BSL via software as stated in the datasheet.
This is my code for the BSL invocation. I also made sure that the MSP runs at 8MHz.
WDTCTL = WDTPW | WDTHOLD; TB3CCR0 = 0x00; // clear Timer B TB3CCTL1 = 0x00; TB3CTL = 0x00; // Disable all interrupts __disable_interrupt(); FRCTL0 = FRCTLPW | NWAITS_1; __bis_SR_register(SCG0); // disable FLL CSCTL1 = DCORSEL_3; // DCO Range = 8MHz CSCTL2 = FLLD_0 + 243; // DCOCLKDIV = 8MHz __delay_cycles(3); __bic_SR_register(SCG0); // enable FLL // Delay after setting clock to invoke BSL __delay_cycles(3); // Invoke BSL ((void (*)() )0x1000)();
After the invocation the BSL is visible on the i2c bus.
But when trying to flash a new firmware it always results in following error:
Any help would be appreciated.
Best regards
Max