My target is a Cortex-M4 processor. In my project, I have already separated out the testable core-logic into a static-library, and now, I would like to conveniently unit-test it.
How can this be achieved using the MCUXpresso IDE?
I am using Google Test Framework as unit test for the libraries (C++). I have defined GCC/x64 target (in addition to M4-Debug/Release) in MCUXpresso. The test application is an executable file which you can run from a "DOS" console window to test your library code. You can also install "C/C++ Unit Testing Support" in MCUXpresso and set test runner to be "Google Test Runner". The results are then presented as simple graphics inside MCUXpresso.
there are different framework availble depending on your needs. If things are in a static library is not really relevant, as long as you have the logic in place. What I'm using with MCUXpresso is uCUnit, see Tutorial: μCUnit, a Unit Test Framework for Microcontrollers | MCU on Eclipse
I hope this helps,