I know what’s going on. I enabled the OSTM timer in the bootloader. Before jumping to the app, __DI() cannot turn off the OSTM timer. When entering the app, it will directly trigger the xTaskIncrementTick() interface to cause an exception. I wrote this way to solve this problem:
R_Config_OSTM0_Stop();
__DI();
((void(*)(void))(APP_A_START_ADDRESS))();