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

XMC™ Forum Discussions

User17217
Level 1
Level 1
I seem to have encountered an bug in the library
XMClib v2.2.0
@file xmc_can.c
@date 2020-03-17.
function
XMC_CAN_STATUS_t XMC_CAN_MO_ReceiveData (XMC_CAN_MO_t * can_mo)

Line 746 looks like this:
while ((rx_pnd! = 0U) || (new_data! = 0U));

this form hangs in an infinite loop, since new_data == 1.

in working library XMClib v2.1.24 xmc_can.c from 2019-06-26 this line looks different:
while ((rx_pnd! = 0U) && (new_data! = 0U));

And it works, the actual function of the new version is different only in this place.
0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Thanks for reporting the issue. We will take steps to correct this bug at our end. Meanwhile hope you can modify and work with the file.

Best Regards,
Vasanth

View solution in original post

0 Likes
1 Reply
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Thanks for reporting the issue. We will take steps to correct this bug at our end. Meanwhile hope you can modify and work with the file.

Best Regards,
Vasanth
0 Likes