Skip to main content
JSvat.1
Visitor II
March 26, 2020
Question

STM32CubeIDE FreeRtos USB

  • March 26, 2020
  • 0 replies
  • 655 views

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 ?

This topic has been closed for replies.