2020-03-26 12:28 AM
Hi,
I have problem with automatick generated code from STM32CubeIDE
STM32CubeMX: 5.6.0
MCU: STM32F407
FreeRTOS API CMSIS v2
I have two problems (at least)
I have to change macro in usbh_conf.h, after this alloc works.
#define USBH_malloc malloc
#define USBH_free free
// Have change to
#define USBH_malloc pvPortMalloc
#define USBH_free vPortFree
But USB still not working, ending in HardFault when calling xQueueSendToBackFromISR.
When I change to CMSIS v1 and update USBH_malloc and USBH_free to FreeRtos macros it works.
Is problem in my code/definition or template for project is wrong ?