STM32CubeIDE generate wrong code in USB_HOST with FreeRTOS
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-04-10 2:47 AM
File \USB_HOST\Target\usbh_conf.h has the definitions:
#define USBH_malloc malloc
#define USBH_free free
This does not work with FreeRTOS. It will be better, but maybe not perfect:
/** Alias for memory allocation. */
#if (USBH_USE_OS == 1)
#define USBH_malloc pvPortMalloc
#else
#define USBH_malloc malloc
#endif
/** Alias for memory release. */
#if (USBH_USE_OS == 1)
#define USBH_free vPortFree
#else
#define USBH_free free
#endif
Labels:
- Labels:
-
Bug-report
-
FreeRTOS
-
STM32CubeIDE
-
STM32CubeMX
-
USB
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
