Not applicable
Mar 10, 2017
01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2017
01:50 AM
DAVE newbie question: I find that asserts are not triggering. Tried XMC_ASSERT, and plain assert. Couldn't find anything in Forum or DAVE help that tells me how I enable assert support, should I need to. DAVE-generated modules and stock DAVE APPs, include XMC_ASSERT and plain assert statements. I've tried flipping the sense of one each of those, and breakpointing just after, to check the relevant code is executing, but neither of those asserts trigger, either. Obviously I'm doing something basic wrong here. Any ideas?
- Tags:
- IFX
2 Replies
Mar 13, 2017
02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 13, 2017
02:04 AM
you must enable them first via a define flag:
project properies -> c/c++ build -> settings -> tool settings/compiler/preprocessor/ -> defined sybols -D add the following: "XMC_ASSERT_ENABLE"
project properies -> c/c++ build -> settings -> tool settings/compiler/preprocessor/ -> defined sybols -D add the following: "XMC_ASSERT_ENABLE"
Not applicable
Mar 13, 2017
10:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 13, 2017
10:07 AM
Brilliant, thanks Andy, I've just tried, and indeed my software now 'while(1) cycles' within 'XMC_AssertHandler' in xmc_common.c, if I include eg 'XMC_ASSERT("hi", 1==1);' in my code. I thought I'd see "hi' in the console, oh well. I checked also 'XMC_ASSERT("hi", 1==0);', and that doesn't cause 'while(1) cycle'.