Skip to main content
Associate
August 25, 2024
Solved

STM32CubeIDE offline installation: Firmware Package problem

  • August 25, 2024
  • 7 replies
  • 7279 views

I downloaded and installed the latest STM32Cube IDE. However, I can't compile even the simplest program, because during the creating of a project I get warning stating that I must download and install the Firmware Package.

The system is a Windows 11 virtual machine without Internet access, so I suppose I should download Firmware Package on other computer and then copy to the VM. However, I cannot locate that Firmware Package.

The problem is very similar to this one:

https://community.st.com/t5/stm32cubeide-mcus/how-to-install-stm32cubeide-without-internet/td-p/116152

However that solution didn't work for me.

Best answer by stameni

It's been a slight mess with the firmware and patch versions. I shall explain how I got the system running ;)

My target MCU is STM32F103C8T6. I downloaded the en.stm32cubef1.zip navigating from this link .

After that, I extracted this file to the following path: c:\Users\YOUR-USERNAME\STM32Cube\Repository . (If there wasn't that folder, you should make it manually.)

Now I ran the STM32CubeIDE; then: File / New / STM32 Project. I chose STM32F103C8T6 in the next dialog box, and typed in some project name.

Now part that is important: do NOT click Finish, instead click Next.

Under Firmware Package Name and Version I chose V1.8.0, then clicked Finish.

Now you can use Press / Generate Code. Code will be generated.

When you click Build, you get the code compiled without errors and warnings :)

 

This solution probably isn't a universal solution, that should work in every case. However, it seems to be working :)

 

Thank you all for the help. I do have some other troubles, but I think the current thread is completed :)

7 replies

Pavel A.
Super User
August 25, 2024

Which STM32? How have you tried to locate the firmware package? Can you login from another machine and download the package?

Technical Moderator
August 26, 2024

Hello @stameni ,

 

First let me thank you for posting and welcome to the ST Community.

You can work with STM32CubeIDE without being connected to the Internet by following these instructions:
• Manually download the needed STM32Cube firmware packages from the STMicroelectronics website
• Inside STM32CubeIDE, use the following menus:
1. [Help]>[Manage embedded software packages]
2. [STM32Cube MCU Packages]>[From local...]
• Point to the manually downloaded zip file, then accept the license and install it

 

Thanks.

Mahmoud

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.
stameniAuthor
Associate
August 26, 2024

Hi @Mahmoud Ben Romdhane,

I found and downloaded firmware package en.stm32cubef0.zip, and installed it using the steps you provided me.

The package is succcessfully (I hope!) installed to the following path:

c:\Users\*****\STM32Cube\Repository\STM32Cube_FW_F0_V1.11.0\

However, it still doesn't work properly.

I have tried some of the STM32F0 microcontrollers, and the problem is still the same as it was before installing firmware package.

@Pavel A.: I also tried some other STM32 MCUs, without success.

stameniAuthor
Associate
August 26, 2024

This is what I always get:

 

BarryWhit
Lead
August 26, 2024

There's a version mismatch for the MCU package. Either go into the CubeMX properties pane and set the version to 1.11.0 (the default is to use the latest released version), or download the 1.11.5 patch zip from the website.

 

You can't install patch releases offline using the built in package manager, since they only contain changes relative to the base version. To install patches versions offline, you simply unpack their content to overwrite files in the previously base version directory, 1.11.0 in this case.

stameniAuthor
Associate
August 26, 2024

"Either go into the CubeMX properties pane and set the version to 1.11.0 (the default is to use the latest released version)..."

 

Can you please specify where the CubeMX properties pane is? I am new to this IDE, and I cannot locate it. And I think that might solve my problems.

BarryWhit
Lead
August 26, 2024

Actually, it's called the "Project Manager":

ProjectManager.jpg

stameniAuthor
Associate
August 26, 2024

Since I am a newbie, I downloaded all mainstream MCU firmwares, and installed them using Help / Manage Embedded Software Packages. Now some MCUs function, some don't.

 

The trouble with the Project Manager is that it appears on the screen after selecting the appropriate MCU (which sometimes doesn't work).

 

I didn't patch anything, and I'm almost about to quit STM32 :( It is well-designed, but these simple beginner's problems are so annoying...

BarryWhit
Lead
August 26, 2024

You now know how (pardon my iambic) to manually install firmware packages, how to manually install the latest patch, and how to manually choose the firmware version.

 

If all of that's not enough, I don't know what to tell you. Maybe you should stick to arduinos.

stameniAuthor
Associate
August 26, 2024

@BarryWhit wrote:

You now know how to manually install firmware packages, how to manually install the latest patch, and how to manually choose the firmware version.

I really know all of that, and much much more. I've been programming MCUs for decades. Therefore, I must miss some small thing, and there is none who can tell me what it is.

I expected to find help at the STM32 official forum, but I was wrong.

II am not the only one who has the same problem I have. Here is a link from my first message (which you obviously overloooked):

https://community.st.com/t5/stm32cubeide-mcus/how-to-install-stm32cubeide-without-internet/td-p/116152

This developer had the same problem as me, and there are more simmilar questions.

If you are one of the STM32cube developer, you might consider some easier access to the "Hello World" application.

Last words: embedded IS for me.

Thank you for your time.

stameniAuthor
Associate
August 27, 2024

I solved the problem. Later I shall post the solution that worked for me.

stameniAuthor
Associate
August 28, 2024

My target MCU is STM32F103C8T6.

I downloaded the following firmwares and patches:

  • en.patch_cubef1.zip
  • en.patch_cubef1_v1-8-4.zip
  • en.stm32cubef1.zip
  • en.stm32cubef1-v1-8-5.zip
  • en.stm32cubef1-v1-8-6.zip

None works. The best I can get is with en.stm32cubef1-v1-8-5.zip , which generates the startup code, but fails to compile it. The IDE reports that core_cm3.h is missing. I guess the other errors are related with that first one.

@Pavel A.I have not other computer capable enough to run the STM32CubeIDE. However, this is a good idea.

stameniAuthorBest answer
Associate
August 29, 2024

It's been a slight mess with the firmware and patch versions. I shall explain how I got the system running ;)

My target MCU is STM32F103C8T6. I downloaded the en.stm32cubef1.zip navigating from this link .

After that, I extracted this file to the following path: c:\Users\YOUR-USERNAME\STM32Cube\Repository . (If there wasn't that folder, you should make it manually.)

Now I ran the STM32CubeIDE; then: File / New / STM32 Project. I chose STM32F103C8T6 in the next dialog box, and typed in some project name.

Now part that is important: do NOT click Finish, instead click Next.

Under Firmware Package Name and Version I chose V1.8.0, then clicked Finish.

Now you can use Press / Generate Code. Code will be generated.

When you click Build, you get the code compiled without errors and warnings :)

 

This solution probably isn't a universal solution, that should work in every case. However, it seems to be working :)

 

Thank you all for the help. I do have some other troubles, but I think the current thread is completed :)