Aug 31, 2021
07:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 31, 2021
07:32 PM
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.
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.
Solved! Go to Solution.
- Tags:
- IFX
1 Solution
Sep 08, 2021
06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2021
06:46 AM
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
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
1 Reply
Sep 08, 2021
06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2021
06:46 AM
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
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