Skip to main content
frackers
Senior
October 24, 2017
Question

CubeMX on Linux fails to generate FSMC MSP code

  • October 24, 2017
  • 25 replies
  • 3249 views
Posted on October 24, 2017 at 04:11

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.
    This topic has been closed for replies.

    25 replies

    frackers
    frackersAuthor
    Senior
    January 7, 2018
    Posted on January 08, 2018 at 00:59

    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?

    Pavel A.
    January 8, 2018
    Posted on January 08, 2018 at 01:28

    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

    frackers
    frackersAuthor
    Senior
    January 8, 2018
    Posted on January 08, 2018 at 01:51

    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.

    Vasile Guta_Ciucur
    Senior
    January 8, 2018
    Posted on January 08, 2018 at 11:26

    Can you try also the CubeMX plug-in for Eclipse?

    frackers
    frackersAuthor
    Senior
    January 8, 2018
    Posted on January 08, 2018 at 22:50

    Last time I tried the plugin it made a total mess of my project. I'll give it a go but I don't hold out much hope...

    frackers
    frackersAuthor
    Senior
    January 23, 2018
    Vasile Guta_Ciucur
    Senior
    January 24, 2018
    Posted on January 24, 2018 at 02:07

    Yeah, and overwrites old versions of the driver. By example, I had 1.8.0 version of the driver for STM32L1 installed, and checked 1.8.1, the next version for installation. It first downloaded an 1.8.0 version from their server and unarchived it over my version, and only after that it downloaded the new one and installed it. But no problem, I have a backup...

    frackers
    frackersAuthor
    Senior
    February 21, 2018
    Posted on February 21, 2018 at 23:37

    Upgraded to 4.24.0 and HAL 1.19.0 and Linux version of CubeMX is STILL not fit for purpose.

    I propose that ST pay for a Windows license for me so that I can continue my project or admit that they don't really support Linux.

    frackers
    frackersAuthor
    Senior
    March 16, 2018
    Posted on March 16, 2018 at 01:55

    Upgraded to 4.25.0 and HAL 1.21.0 and Linux version of CubeMX is STILL not fit for purpose.

    I'm still waiting for that Windows license.

    So much for the portability of Java apps.

    Vasile Guta_Ciucur
    Senior
    March 16, 2018
    Posted on March 16, 2018 at 16:09

    I'm toying with the idea of making my own CubeMX for the Nucleo I have...

    I'm oscillating between Processing (a fast mode in getting a nice graphical interface which I need for the clock setup), Lazarus+FreePascal (easy file manipulation, easy string manipulation and RAD) and Qt with C++...

    It will generate for Makefile projects with LL drivers. Another option (and a strong temptation) is to make it generate for SPL.

    frackers
    frackersAuthor
    Senior
    April 4, 2018
    Posted on April 04, 2018 at 03:27

    Over 5 months in and still not even an acknowledgement of the problem.

    Does anyone know of a way of escalating the issue with ST to at least get some confirmation that I'm not the only one with this issue?

    This continues to impact my development and will now start to influence my choices of WIFI, BlueTooth, Accelerometer and NFC devices (currently 

    SPWF01, SPBTLE-RF, LSM6DSL, 

    CR95HF)  if I can't get reliable product support.

    ST Technical Moderator
    April 4, 2018
    Posted on April 04, 2018 at 12:30

    Hello,

    I will raise you request to the appropriate team for investigation.

    Sorry for the inconvenience it may bring.

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Mohamed Mansouri
    Visitor II
    April 25, 2018
    Posted on April 25, 2018 at 13:51

    Hi Frackers,

    Thanks for your feedback and s

    orry for late response.

    I confirm the bug. The issue will be fixed in the next CubeMX release.

    Please feel free to contact me for further details.

    Best regards,

    Mohamed

    frackers
    frackersAuthor
    Senior
    May 14, 2018
    Posted on May 14, 2018 at 06:21

    Just updated to 4.25.1 and it STILL doesn't work.

    Mohamed Mansouri
    Visitor II
    May 14, 2018
    Posted on May 14, 2018 at 11:31

    Hi

    Gilks.Robin

    ,

    This issue will be fixed for the next release CubeMX 4.26 .Sorry for such inconvenience.

    Best regards,

    Mohamed.