USBD_CDC_Init BUG ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-03-16 7:41 AM
Posted on March 16, 2018 at 15:41
Hi,
i generated a little project with STMCUBE (Version 4.25.0 and packages 1.21.0) for STM32F415 with FreeRTOS and only CDC inteface, but not work.
During the INIT on comand 'Set configuration = 1' i receive a error from this function >
USBD_CDC_Init<
and exactly onUSBD_malloc(sizeof (USBD_CDC_HandleTypeDef));
i got ever NULL !Some fix ? Where is the problem ?
static uint8_t USBD_CDC_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
{
.
.
.
pdev->pClassData = USBD_malloc(sizeof (USBD_CDC_HandleTypeDef));
if(pdev->pClassData == NULL) { ret = 1; } else......}
Sorry for my english
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
