AnsweredAssumed Answered

assert() in SDK

Question asked by Massimiliano Cialdi on Feb 4, 2019
Latest reply on Feb 11, 2019 by Jorge Antonio Alcala Vazquez

For the i.MX RT105x processor I downloaded the SDKs both in version 2.4.2 and 2.5.0.
In the driver sources (the fsl_* files) the assert() function is used in many points of the code.
I would like to use my own version of the assert() and not the one provided by the standard c library (either newlib nano, or redlib).
What is the correct way to do this?

I don't know if we should edit the fsl_* files. However, I have seen that the file fsl_common.h includes the standard header assert.h.

How "bad practice" is to edit this file to replace the inclusion of assert.h with my own file where I then redefine the assert function in the most convenient way?

 

best regards

Max

Outcomes