Skip to main content
Jason Petras
Associate
January 24, 2017
Solved

STM32CubeMX STM32F4 Library Install Problem

Posted on January 24, 2017 at 19:55

Hello all, 

I am running into a problem with updating the STM32F4 library in STM32CubeMX ver 4.19. I want to install the STM32F4 library package ver 4.14. However, I get an error stating 'These Files have problem during Download : stm32cube_fw_f4_v1140.zip (Target directory already exists)' 

I am able to install the previous STM32F4 package, rev 1.13 without problems. 

I have tried uninstalling, reinstalling, deleting the repository package directory, etc, etc. No dice. Perhaps I am missing a directory to clean up while reinstalling. Also, I can see where the .zip is downloaded to when running the updater. There is nothing there. It shouldn't have any problems. I also tried installing the package via the 'Load from file', but no dice there. I get an error that way too. 

I also thought that the package may have already come with CubeMX, but I am prompted to download the package when I try to generate code.Of course, this fails for the same reason

So, long story short, I am stuck. I would appreciate the help! Looks like there are others who have had issues in the past, but there are no answers.I listed on below. 

https://community.st.com/0D50X00009Xkh43SAB

 

null
    This topic has been closed for replies.
    Jason Petras
    Jason PetrasBest answer
    Associate
    January 24, 2017
    Posted on January 24, 2017 at 22:21

    okay, I got it! Answer is pretty simple: Go to ST's STM32Cube Embedded Software site, find the correct package and download it. Then use the 'From Local..' button in the New Libraries Manager dialog to load the downloaded zip. 

    Apparently, all it takes is sleep and a good cup of coffee.

    16 replies

    Jason Petras
    Jason PetrasAuthorBest answer
    Associate
    January 24, 2017
    Posted on January 24, 2017 at 22:21

    okay, I got it! Answer is pretty simple: Go to ST's STM32Cube Embedded Software site, find the correct package and download it. Then use the 'From Local..' button in the New Libraries Manager dialog to load the downloaded zip. 

    Apparently, all it takes is sleep and a good cup of coffee.

    John Griswold
    Senior
    December 13, 2017
    Posted on December 13, 2017 at 21:10

    Yeah, that doesn't seem to work so well with the stm32cube_fw_l4_v1100 version of the zip file. Unzipped into a folder to verify the zip, and then tried to install local. No dice.

    Does anybody have an idea?

    Tesla DeLorean
    Guru
    December 13, 2017
    Posted on December 13, 2017 at 21:35

    What exactly does it say is the problem?

    If you pull from the server does it have an error in the download or unpack phases?

    Is the repository under the \User\XXX directory, or have you specified a different path when you installed CubeMX?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    John Griswold
    Senior
    December 26, 2017
    Posted on December 26, 2017 at 15:58

    It would appear (based on simple empirical data) that being Admin when running CubeMX is helpful. I was unable to download the firmware packages at all when signed in as just me. I was unable to install packages I manually downloaded when signed in as just me. When I started the CubeMX as Admin, I was able to both install packages that were manually pulled, plus I am able to download and install as Admin.

    I'd start there.
    PeterL
    Associate III
    April 8, 2019

    I was running STM32CubeMX as Admin, but am still failing.0690X000008A3KPQA0.png

    YTana
    Visitor II
    July 30, 2019

    I also experienced the same error "Error downloading ..." with Admin mode .

    The workaround is to extract from ZIP file under c:\user\yourname\STM32Cube\​Repository

    HKim.12
    Visitor II
    September 26, 2019

    go to website STM32Cube MCU & MPU Packages(https://www.st.com/en/embedded-software/stm32cube-mcu-mpu-packages.html)

    and find your device -> product selection -> get software

    and there are zip file like as en.stm32~.zip

    and C:\Users\"yourname"\STM32Cube\Repository ( you can find this directory at window -> preference -> firmware update -> repository setup )

    and then move en.stm32~.zip to C:\Users\"yourname"\STM32Cube\Repository (don't unzip) and rename en.stm32 like that stm32cube_fw_l4_v1140.zip.

    then go stm32cubeIDE -> project -> generate code then system automatically do something. next it, you can do your programming.

    John Winters
    Associate II
    May 21, 2020

    I had the same problem So, I uninstalled and deleted ALL ST stuff. It then would not install. It told me I had to uninstall first. ???

    John Winters
    Associate II
    May 21, 2020

    Can we just have an installer that works, and installs stuff that works?

    PeterL
    Associate III
    June 18, 2020

    This problem persists and applies to any repo unzip for any stm32cube product. Problem is interference with McAfee antivirus. Blocking antivirus fixes problem as a workaround, but I generally think it is a bad idea to do that while downloading files from internet...

    ST need to se over the installer to be more friendly to antivirus...

    Regards

    /Peter

    GPomp.1
    Associate III
    February 20, 2021

    Hello all, 

    I've the same problem. I'm working with:

    I've installed the last MCU Package for the STM32WB:

    But when I try to import an example, I've the following error:

    I've followed all previous suggest without resolve problem. How can I resolve this issue?

    GPomp.1
    Associate III
    February 20, 2021

    Hello all, 

    I've the same problem. I'm working with:

    0693W000007Yzb9QAC.png I've installed the last MCU Package for the STM32WB:

    0693W000007YzbEQAS.png 

    But when I try to import an example, I've the following error:

    0693W000007YzYXQA0.png 

    I've followed all previous suggest without resolve problem. How can I resolve this issue?

    Suryeah
    Visitor II
    July 21, 2021

    I think this is a very simple issue.

    Briefing:

    • ST CUBE IDE /MX has different zip files for Firmware Package Name and Version,

    0693W00000D0GSwQAN.png

    • While downloading selected software packages and unzipping it, Cube IDE & MX tries to unzip its contents into the same folder name. [In my case it is stm32cube_fw_f1_v180 & stm32cube_fw_f1_v184 ]

    0693W00000D0GPsQAN.png

    • As the IDE is not able to over write the zipped contents into the same Folder, it throws the error and Project Creation gets aborted at this stage.

    0693W00000D0GQCQA3.png

    • Now check the repository folder location and you should find the ZIP files downloaded by STM32 CUBE IDE /MX.

    0693W00000D0GQgQAN.png

    1. All you have to do is "unzip the files one after the other in ascending order of firmware version", select the option "Extract here" .
    2. Do the same for all the downloaded Firmware Packages and select "Yes to All " when prompter to conform to replace the existing file.
    3. Once its all extracted, delete the old project and start creating an new project and it would not give any trouble.

    0693W00000D0GS8QAN.png