2022-11-10 11:11 PM
hi there,
I am using OTA in freertos, when I used it on bare controller it work properly but As I shifted to freertos, Application code stuck. i search on google, this is beacuse of interrupt.
so I disable all interrupt, Then reset handler executed and jump application code.
but it stuck at particular point . Why this ?
My Reset handler
static void goto_application(void)
{
printf("Gonna Jump to Application\r\n");
void (*app_reset_handler)(void) = (void*)(*((volatile uint32_t*) (0x08100000 + 4U)));
//__set_MSP(*(volatile uint32_t*) ETX_APP_FLASH_ADDR);
// Turn OFF the Green Led to tell the user that Bootloader is not running
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET ); //Green LED OFF
app_reset_handler(); //call the app reset handler
}
Thanking you