2014-10-13 12:10 AM
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.0IAR Embedded Workbench for ARM
Version 6.60.1.5104Steps to reproduce the problem:
Created ''New Project'' for STM32L151QDHx
Checked the checkbox: ''Pinout'' tab -> Configuration -> Peripherals -> USB -> Device (FS)
Selected ''Communication Device Class for'': ''Pinout'' tab -> Configuration -> MiddleWares -> USB_DEVICE -> Class For FS IP
Configured clock crystal pins:
Selected RCC_OSC32_IN for PC14
Selected RCC_OSC32_OUT for PC15
Selected RCC_OSC_IN for PH0
Selected RCC_OSC_OUT for PH1
On ''Clock Configuration'' tab:
Selected HSE in PLL Source Mux
Picked x12 for PLLMul
Picked /3 for PLLDiv
Selected PLLCLK in System Clock Mux
Generated EWARM code
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++ CompilerCould 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 #ewarm #gpio_af10_usb #cubemx2014-10-13 09:33 AM
Hello Mark,
Thanks for reporting this issue. We will contact you soon to provide the fix.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2014-10-14 02:15 AM
2014-10-14 08:08 AM
Thank you Mayla - much appreciated!
Mark2014-10-14 08:13 AM
@:
> I don't reproduce your issue.That's odd - I can replicate the problem time after time...> Did you retrieve the MX version from ST.com website?Yes, quite recently in fact - I looked it up - I downloaded & installed it on 16th of September.Do you have any advice for me? Do you need more info?When I check the ''About'' of CubeMX I get: Version 4.4.0-A10Was there a release in the mean time that I didn't catch?Best regards,Mark2014-10-14 08:48 AM
2014-10-15 01:04 AM
> You're not using an official version.
So the CubeMX I downloaded from st.comhttp://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF259242
is not official?> Please wait for the official release that should be out soon on st.com.Okay - I'll wait for the next release - I hope it'll arrive soon :)Greetings,Mark2014-10-16 03:29 AM
I tried the
http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF259242
again yesterday and despite the version claimed as 4.4.0 the downloaded zip file contained version 4.3. Then indeed I could not replicate the steps because for the selected processor the ''Clock Configuration'' tab was blank.I downloaded the software again today and this time the zip contained indeed version 4.4.0 (this time labeled without the suffix A10 I saw originally).After further investigation I tracked down the origin of the A10 version - it turned out indeed that I got it at a training organized by ST, not from the st.com.Long story short - I tried my steps with this new 4.4.0 CubeMX and the generated code works!Thanks everybody for your time - I should have been more cautious about what software I'm using.Best regards,Mark2014-11-03 01:46 AM
Thank you for keeping us posted and seeing your configuration is now working.
Best Regards