I'm working on MSP430F5151.
I've known that after invoking BSL by sequences entry on RST/TEST pins, PC register is set to starting address of BSL Application at 0x1000 address.
In some discussions on forum, It seem It is possible to verify BSL application by directly jump to address 0x1000.
I my code
I used
//Stop watchdog timer
WDT_A_hold(WDT_A_BASE);
//Set P1.x to output direction
GPIO_setAsOutputPin(
GPIO_PORT_P1,
GPIO_PIN0
);
//Set all P1 pins HI
GPIO_setOutputHighOnPin(
GPIO_PORT_P1,
GPIO_PIN0
);
__delay_cycles(1000000);
//Set all P1 pins HI
GPIO_setOutputLowOnPin(
GPIO_PORT_P1,
GPIO_PIN0
);
__delay_cycles(500000);
__bic_SR_register(GIE);
((void (*)())0x1000)();
I thinks that BSL Application must have at least a loop to wait commands from host.
But I can't it in my case. It seem BSL reset shortly after.
Pls, show me how to verify it.