erroneous call of free() in usbd_conf.c
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-08-12 8:07 AM
Posted on August 12, 2015 at 17:07
The STM32CubeMX software generates a USB stack with a call to free() in usbd_conf.c. If you disconnect USB by calling usbd_stop() the software crashes here as there is no free from stdlib or there is no correctly defined memory section to use. As the function is documentated as 'dummy' the call of free is useless anyway. Costs us hours to find this. Please fix it in next release!
#stmcube-stmcubemx-cube-stm32cube
Labels:
- Labels:
-
STM32CubeMX
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-08-12 8:47 AM
Posted on August 12, 2015 at 17:47
Hi radiatore,
Could you please provide more explanation on your case, so that it will be easier to understand the issue?With CubeMX, there is no stdlib used, so what do you mean by ''there is no free from stdlib ''?-Syrine-