Part Number: MSP432P401R
Tool/software: Code Composer Studio
Hi,
i have a problem with MSP432 and BSL Invoke.
If i the Hardware BSL Invoke funktion call is right at begin of the program code everything works like this:
int main(void) { volatile uint32_t ii; /* Halting the Watchdog */ MAP_WDT_A_holdTimer(); //Old Board with PUMP PWM on P6.6 and P6.7 MSP432_Clock_init(); // GPIO_setAsOutputPin(GPIO_PORT_P3, GPIO_PIN0); // GPIO_setOutputLowOnPin(GPIO_PORT_P3, GPIO_PIN0); if(CheckFlashMailbox(COMMAND_BSL_CONFIG) !=BOOT_OVERRIDE_AND_MAILBOX_OPERATIONS_SUCCESS) { // GPIO_setOutputHighOnPin(GPIO_PORT_P3, GPIO_PIN0); if((P1->IN & BIT0)==1) { // SysCtl_rebootDevice(); BSL_INVOKE(BSL_CONFIG_HW_INVOKE_PORT1 | BSL_CONFIG_HW_INVOKE_PIN0 | BSL_CONFIG_HW_INVOKE | BSL_CONFIG_HW_INVOKE_PIN_HIGH | BSL_CONFIG_INTERFACE_UART); } }
If i call this function right after some initialisation it doesnt responde to BSL Scripter at all.
Why is it like this?
If i software BSL invoke like sending a UART command and i call then this function:
BSL_INVOKE(BSL_CONFIG_HW_INVOKE_PORT1 | BSL_CONFIG_HW_INVOKE_PIN0 | BSL_CONFIG_HW_INVOKE | BSL_CONFIG_HW_INVOKE_PIN_HIGH | BSL_CONFIG_INTERFACE_UART);
It also doenst work.
Can anyone help me?
OBs: I am flashing the MSP432 througth BSL Scripter.