Recognizing the XMC family member

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Can I still use code like

#if UC_ID == 4206 
# define CODRV_CANCLOCK_80MHZ
#else
# error "CPU type not set"
#endif
#define CODRV_DEBUG


my first set up leads to
error: #error "CPU type not set"


or
#if UC_SERIES == XMC42 || UC_SERIES == XMC41


It looks like uc_id.h is not anymore available.
0 Likes
1 Reply
Not applicable
Hi Heinz-Jürgen,

Yes, the uc_id.h is not available in DAVE4.
Instead, the device IDs are defined in xmc_device.h under …\Libraries\XMCLib\inc

Best re
0 Likes