STM32Cube file generation problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-25 8:17 AM
The STM32Cube
project file
attached
does not generate
the file
gpio.cCan someone help me
?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-26 1:12 PM
I used stm32cube in my project and no file gpio.c is created. Why do you expect that filename?
Ron- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-28 3:55 AM
This STM32Cube project is setting to generate code for MDK-ARM toolchain and to generate peripheral initialization as a pair of .C/.H files per IP.
When I open the code in MDK-ARM in the project window (on the left) this file is required bat not present (not generated by STM32Cube).Is there any
solution ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-28 4:55 AM
tried your *.ioc file and MX did not generate gpio.c file for me either (using uVision 5.10.0.2). I'm currently working with STM32F407 and MX generates gpio.c file my project (the very same PE2 as you)m however i have only a few peripherals in use. One suggestion to move forward from this inconvenience until it's fixed by ST - if haven't done it already - is to do a clean project generation with option ''Generate peripheral initialization as a pair of '.c/.h' per IP'' unchecked and copy initialization from main.c to your own module (named other than gpio.c otherwise your effort is lost by next generation).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-28 7:33 AM
Thanks
this solves the
problem.
However,
I will wait
the solution
of
this inconvenience by ST.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-02 6:44 AM
Using the brand new CubeMx version (4.2, released two days ago), I took the .ioc file, generated code for Keil 4.73: no issue in Keil, link with no errors, and the gpio.c file clearly present in the project.
Maybe it is worth trying with Mx 4.2 (I do not have any more 4.1, then can not reproduce initial problem). Rgds.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-11 10:38 AM
I too am seeing issues with the generation of gpio.c using v4.2. I also have setup for seperate .c and .h. When I generated the files initially the gpio.c file was generated but afterwards when I make changes to the project in CubeMX and regenerate the files the gpio.c file is removed from the project....this is a real nuisance that I haven't been able to resolve.
The workaround mentioned above may work but is a real inconvenience.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-11 12:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-05-12 1:14 PM
I have this problem too, with a missing gpio.c file. However, I have found that the file is actually created, in the beginning of the generation process, but after some seconds it will be deleted again. Using my software editor, in file-open-mode, I manage to catch the gpio.c file when it gets created, and then I can save it again after the original file has been deleted by STM32Cube. Annoying but still a workaround. If I don't make any changes that affects the gpio.c file, I can just save a copy of the first file with a different name, and then copy that into the gpio.c after a new code generation run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-06-03 10:22 AM
Hi,
just to add to the list -- I've encountered the same issue. Create a new project, select ''Generate peripheral initialization as a pair of .c/.h files per IP'' in the settings, enable some random GPIO, then click on ''Generate Code''. In the first run gpio.c will be generated just fine. Now close STM32CubeMX, and restart it by double-clicking the respective *.ioc file. Click on ''Generate Code'' again. The gpio.c files is now gone. I currently use STM32CubeMX 4.2.0.