![]() ![]() I define XMC_ASSERT_ENABLE in xmc_common.h, but this doesn't work. What is there before: the egg or the chicken?Īnd how can i enable XMC_AssertHandler() for my user-output? If i define a XMC_AssertHandler() over Uart, the problem will be: during init from the Uart, XMC_AssertHandler is called, but uart is not working at this time. How can i solve this, or isn't it possible to set up a Configuration for this?Īnd how to implement and activate the XMC_AssertHandler? I set Configuration TEST active, but the compiler doesn't know the Variable "TEST_ACTIVE". In the source code i place a : #ifdef TEST_ACTIVE (Code between) #endif ( -> Properties for My Project, -> C/C++ Build -> Build Variables Configuration: TEST ) To implement this solution, i add a new Build Variables "TEST_ACTIVE" Type:String Val:"0" to the TEST configuration. Only in this configuration, i want to compile the Uart modules to serve the XMC_ASSERT() to a uart output. I set up a new Build Configuration : TEST. Is there a way to compile a project conditional? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |