CubeMX on Linux fails to generate FSMC MSP code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-23 7:11 PM
Running latest 4.1 STM32CubeMx on both *buntu and Windows 7 and the generated stm32f4xx_hal_msp.c is totally different. The HAL libraries in both cases areSTM32Cube_FW_F4_V1.0.
With the Linux version, the following functions are missing:
- HAL_FSMC_MspInit
- HAL_SRAM_MspInit
- HAL_FSMC_MspDeInit
- HAL_SRAM_MspDeInit
which results (not surprisingly) a totally useless build.
This needs to be fixed urgently as I only have part-time access to a single windows machine to create the code if I change any pinouts etc.
Note: this post was migrated and contained many threaded conversations, some content may be missing.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-07 3:59 PM
Updated to 4.23.0 STM32CubeMX and this is still broken.
The HAL libraries have been updated to STM32Cube_FW_F4_V1.18.0.
I've also updated java to
version '1.8.0_151' in case it was the version 7 java run time causing the problem.
This really is a problem and over the Christmas period I've been unable to work efficiently as I've not had access to a Windows PC (manually patching the stm32f4xx_hal_msp.c file is not productive).
Can someone advise on when this will be fixed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-07 5:28 PM
While waiting for more useful replies/solutions, can you install Cube in a clean virtual machine (Windows or Linux)?
The repository is huge (several GB) and you can try to copy it over from other machine where it is installed, but better to get a fresh install.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-07 5:51 PM
I have implicitly done this already
- Cube updated from 4.22.1 to 4.23.0
- HAL library updated from 1.16.0 to 1.18.0
- JAVA updated from version 7 to version 8
- base Kubuntu OS upgraded from 14.04 LTS to 16.04 LTS
No change. Windows version of 4.23 still OK, Linux 4.23 broken.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-07 6:07 PM
Sorry but update is just opposite to clean install.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-07 8:02 PM
Tried a re-install from scratch - still no FSMC init code.
I also noticed that the code generation leaves a lot of .tmp files lying about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 12:28 AM
While I cannot see any connection, have you tried the same as root ?
Several problems arise under *NIX when app developers (especiall Windows developers) ignore user rights.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 12:49 AM
I also don't see the relation. And I believe him that he has a correct setup for both operating systems. I reported a while ago a compilation error on Linux that was solved with a fast CubeMX subversion... that demonstrate that the Linux version has a lower priority regarding testing before releasing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 2:26 AM
Can you try also the CubeMX plug-in for Eclipse?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-08 2:50 AM
I also don't see the relation.
I suspect a possible bug in the Cube software, which is a black box for me.
Trying as root would be quick and without much effort, and, if successful, put the blame on Cube - either setup/installation or application.
