Report Assert dialog box
In this section:
The Report Assert dialog box appears if you have a call to the assert function in your application source code, and the assert condition is false. In this dialog box you can choose how to proceed.

To output the assert message as text:
Add this function to your application source code:
void __aeabi_assert(char const * msg, char const *file, int line) { printf( "%s:%d %s ‑‑ assertion failed\n", file, line, msg ); abort(); }An assert message is displayed.