cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube F4 FW 1.5.0 -- USBD_StatusTypeDef not used where appropriate

mduffy
Associate II
Posted on May 19, 2015 at 22:07

Functions in usbd_cdc.c which return values of USBD_StatusTypeDef as defined in usbd_def.h (e.g USBD_OK) are defined as uint_8.

This causes IAR to issue ''enumerated type mixed with another type'' errors when properly typing variables to hold the return value of these functions.  Yes, it is possible to cast the result to eliminate the warning, but the source should be corrected (IMNSHO).
3 REPLIES 3
Katzenberger.Michael
Associate III
Posted on December 18, 2016 at 11:39

still not fixed so far (STM32CubeF1 1.7.0, 29.04.2016)

Khouloud GARSI
Lead II
Posted on January 13, 2017 at 18:24

Hi

Katzenberger.Michael

,

Could you please create a new thread detailing your issue.

This will help usin our investigation.

Khouloud.

Posted on January 14, 2017 at 13:09

done:

https://community.st.com/0D50X00009XkeTSSAZ