Errors in XMCLib

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

cross mob
User12439
Level 1
Level 1
5 replies posted Welcome! First question asked
Hi,

i am using DAVE 4.4.2 for the XMC4400.
I got a compiler error in the header file xmc_ccu8.h, when i compile my application with the Debug configuration. Here is the source:

__STATIC_INLINE void XMC_CCU8_SLICE_ParityCheckerDisableSliceOutput(XMC_CCU8_MODULE_t *const module, const uint8_t slice_number, XMC_CCU8_SLICE_OUTPUT_t output)
{
XMC_ASSERT("XMC_CCU8_SLICE_ParityCheckerDisableSliceOutput:Invalid Slice Pointer", XMC_CCU8_IsValidSlice(slice));
XMC_ASSERT("XMC_CCU8_SLICE_ParityCheckerDisableSliceOutput:Invalid Slice Number", (slice_number < 4U));

module->GPCHK &= (uint32_t)~(((output & (1 << slice_number)) << CCU8_GPCHK_PCSEL0_Pos) |
((output & (2 << slice_number)) << CCU8_GPCHK_PCSEL1_Pos) |
((output & (4 << slice_number)) << CCU8_GPCHK_PCSEL2_Pos) |
((output & (8 << slice_number)) << CCU8_GPCHK_PCSEL3_Pos));
}

The parameter slice of XMC_CCU8_IsValidSlice(slice) is undefined.

Also i think there is an error in module xmc_vadc.c, function XMC_VADC_GROUP_SetSyncSlaveReadySignal. The source line

XMC_ASSERT("XMC_VADC_GROUP_SetSyncSlaveReadySignal:Wrong Group numbers", (eval_waiting_group == eval_origin_group ))

should be

XMC_ASSERT("XMC_VADC_GROUP_SetSyncSlaveReadySignal:Wrong Group numbers", (eval_waiting_group != eval_origin_group ))


Is my assumption OK?

Best regards
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Thanks for reporting the issue. It will be fixed in the next release.

Regards,
Jesus
0 Likes