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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
Hi team,
I am using MSP‐EXP432P401R LaunchPad to develop SPI BSL application. The code to enter the BSL is as follows:
if (((input )& (BIT4)) == 0) { chkbsl = false; MAP_Interrupt_disableMaster(); NVIC->ICER[0] = 0xFFFF; NVIC->ICPR[0] = 0xFFFF; NVIC->ICER[1] = 0xFFFF; NVIC->ICPR[1] = 0xFFFF; P1->OUT |= BIT0; BSL_INVOKE(BSL_SPI_INTERFACE); // Call the BSL with given BSL parameters } //BSL_UART_INTERFACE//BSL_SPI_INTERFACE
BSL Version Command : 0x80 0x01 0x00 0x19 0xE8 0x62
SPI communication:
P1.4 STE Active Low
P1.5 CLK CKPH = 0 CKPL = 1
P1.6 MOSI MSB
P1.7 MISO Driven by Dummy 0xFF
Channel 1 : STE
Channel 2 : CLK
Channle 3 : MOSI
Channel 4 : MISO
BSL Version Command
Hello Susan,
According to the MSP432P4 BSL User's Guide, the interrupt priority bits should also be set to 0 before invoking the bootloader. Can you confirm that these bits are zero?
Susan Yang said:BSL_INVOKE(BSL_SPI_INTERFACE);
// Call the BSL with given BSL parameters
Also, can you send us the value of BSL_SPI_INTERFACE?
Thanks,
Sai
hi Sai,
I add the yellow line in my code, but no response still.
the macro about BSL
#define BSL_AUTO_INTERFACE ((uint32_t)0x0000E0000) /*!< Auto detect interface */
#define BSL_UART_INTERFACE ((uint32_t)0x0000C0000) /*!< UART interface */
#define BSL_SPI_INTERFACE ((uint32_t)0x0000A0000) /*!< SPI interface */
#define BSL_I2C_INTERFACE ((uint32_t)0x000080000) /*!< I2C interface */
Hello,
Did you refer to the following forum post: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/837057
The user claims that the suggestions in this post are working for him. If you haven't already tried it, can you try that and let me know the result?
Thanks,
Sai
**Attention** This is a public forum