Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
How to do software assert?
I want to do a plain old 'C/C++' assert( true or false ) in my code. But I get a compiler error "Error: Undefined symbol aeabi_assert (referred from main.NUCLEO_F091RC.o)" when I compile the Sensors_Reader project for X_NUCLEO_IKS01A1.
1 Answer
8 years, 3 months ago.
Hi Doug,
You can use MBED_ASSERT, see here: https://docs.mbed.com/docs/mbed-os-api/en/mbed-os-5.1.0/api/mbed__assert_8h_source.html .