AnsweredAssumed Answered

Asserts in MQX/CW10

Question asked by Michael Predko on Jun 30, 2010
Latest reply on Aug 9, 2015 by Amit Hergass
I want to implement Asserts in my code and and I'm following the guidelines in the "CodeWarrior Development Tools EWL C Reference" to implement them, namely:
 
#define NDEBUG
#include <assert.h>
 
int i = 7;
 
    assert(7 != i);
 
and execution does stop, but I don't get an assert message sent through the serial port (UART0).   I'm running on an M52223EVB. 
 
Any ideas?  I would just like to get a message because otherwise the software just stops (which is correct but not very helpful). 
 
Thanx,
 
myke

Outcomes