FreeRTOS SMP on RP2040 Caused Flash Erase and Write Fails

When using RTOS in pico_sdk, there is a flash_safe_execute(…) function in flash.c for using flash. I solved the current problem using this function. Thanks a lot for your help.