An assert message saying Assert failed in file port.c, line 410 can occur when exiting a running FreeRTOS OpenAMP application.
This message can safely be ignored and is simply an indication that the code was compiled with debug asserts enabled.
When a call is made to stop the FreeRTOS scheduler, this warning tells the developer that the call to vTaskStartScheduler() is to return and will be caught.
This is done in our demo application with an infinite while(1) loop; it is therefore safe to ignore this warning.
Alternatively, you can disable this assert and all other potential FreeRTOS asserts by doing the following: