cancel
Showing results for 
Search instead for 
Did you mean: 

erroneous call of free() in usbd_conf.c

joerg2
Associate
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
1 REPLY 1
Nesrine M_O
Lead II
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-