AnsweredAssumed Answered

Error: identifier "GPIO_AF10_USB" is undefined (in CubeMX generated EWARM project)

Question asked by Mark on Oct 13, 2014
Latest reply on Nov 3, 2014 by STM32Cube-T

Hi,

I'm facing a problem with the CubeMX generated code for STM32L151QDHx.
The generated code seems to lack the definition of GPIO_AF10_USB which is referenced in the generated code.

 

Versions of the software used:

       
  • STM32CubeMX
        Version 4.4.0-A10
        STM32Cube V1.0
  •    
  • IAR Embedded Workbench for ARM
        Version 6.60.1.5104

Steps to reproduce the problem:

 

       
  1. Created "New Project" for STM32L151QDHx
  2.    
  3. Checked the checkbox: "Pinout" tab -> Configuration -> Peripherals -> USB -> Device (FS)
  4.    
  5. Selected "Communication Device Class for": "Pinout" tab -> Configuration -> MiddleWares -> USB_DEVICE -> Class For FS IP
  6.    
  7. Configured clock crystal pins:    
             
    1. Selected RCC_OSC32_IN for PC14
    2.        
    3. Selected RCC_OSC32_OUT for PC15
    4.        
    5. Selected RCC_OSC_IN for PH0
    6.        
    7. Selected RCC_OSC_OUT for PH1
    8.    
       
  8.    
  9. On "Clock Configuration" tab:    
             
    1. Selected HSE in PLL Source Mux
    2.        
    3. Picked x12 for PLLMul
    4.        
    5. Picked /3 for PLLDiv
    6.        
    7. Selected PLLCLK in System Clock Mux
    8.    
       
  10.    
  11. Generated EWARM code
  12.    
  13. While building that code I get following error:

   usbd_conf.c 
   Error[Pe020]: identifier "GPIO_AF10_USB" is undefined C:\[...]\Error\Src\usbd_conf.c 82
   Error while running C/C++ Compiler

Could you please help? Is there a way to submit it as CodeMX bug so that others can benefit from patching it?
For your convenience I attach the project file and generated code.

Looking forward to hearing from you.

Kind regards,
Mark

Attachments

Outcomes