solution: error in stm32cubeMX or (cubeMX inside stm32CubeIDE) for add new Firmware or new patch(offline or online)
error: cube firmware cannot be installed into repository.
a file or directory with name same already exist.
The cause of this error = old time add firmware and not remove with stm32cubeIDE or stm32cubeMX.(manually removed or uninstalled stm32cubeIDE / Stm32CubeMX before remove firmware with stm32cubeIDE or stm32cubeMX).
solution:
Note:
1) not need any program mode: administrator.
2) not need any program close and open or pc restart.
------------------
1) if use stm32CubeMX:
- Download any firmware for MCU. (exp: for stm32f4xx need download STM32CubeF4_FW_Vxxx)(for find address go to "ST" site and search "STM32CubeF4" for stm32f4xx & etc.) after download you have a zip file.
- open stm32CubeMX
- click Help -> updater Setting -> copy "Repository Folder" address and in pc go to this address.
- copy zip file into this address and extract here(result: is created a folder with name "STM32Cube_FW_Fx_Vx.x.x")
- delete copy zip file.
- now change mian zip file address on pc to new desired address on pc.(i only change folder name)(folder = folder contains main zip file)
- back to stm32CubeMX
- click Help -> Manage Embedded Software packages
- click "Refresh" button.
- find this firmware installed in MCU subcategory(version == download firmware version)
- click in frame green
- now active "Remove Now" button, click this button.
- after complete remove, again click "Refresh" button.
- click "From Local ..." button, and add main zip file.
- if again error then: Repeat the above steps several times, (specially step: change main zip file address name or move to other drive or folder.
2) if use stm32CubeIDE:
- Download any firmware for MCU. (exp: for stm32f4xx need download STM32CubeF4_FW_Vxxx)(for find address go to "ST" site and search "STM32CubeF4" for stm32f4xx & etc.) after download you have a zip file.
- click window -> preference -> STM32Cube -> firmware update -> copy "Repository Setup" address and in pc go to this address.
- copy zip file into this address and extract here(result: is created a folder with name "STM32Cube_FW_Fx_Vx.x.x")
- delete copy zip file.
- now change mian zip file address on pc to new desired address on pc.(i only change folder name)(folder = folder contains main zip file)
- back to stm32CubeIDE
- click Help -> Manage Embedded Software packages
- click "Refresh" button.
- find this firmware installed in MCU subcategory(version == download firmware version)
- click in frame green
- now active "Remove Now" button, click this button.
- after complete remove, again click "Refresh" button.
- click "From Local ..." button, and add main zip file.
- if again error then: Repeat the above steps several times, (specially step: change main zip file address name or move to other drive or folder.
----------------------------------------------------------
----------------------------------------------------------
if up way not work then for error in install new patch use of this way:
1- download both firmware & patch
2- change name both firmware & patch to new name:
Note: for get new name: 1) connect to network, 2) in "Embedded Software packages manager" select version and click "install now", 3) after show error in error text find new name.
example: for firmware f4 version 1.25.0 and patch f4 version 1.25.2:
after donwload:
firmware name is: en.stm32cubef4_v1-25-0
patch name is: en.patch_cubef4
in error text name is:
for firmware is: stm32cube_fw_f4_v1250
for patch is: stm32cube_fw_f4_v1252
3- after change name copy of firmware & patch and paste to "stm32cubeIDE or cubeMX Repository folder".
4- Now run "Embedded Software packages Manager" and select version and click "install now".
Note: for find folder "Repository" address:
1) in STM32CubeIDE: Window->Pereferences->STM32Cube->Firmware Updater->Respository Setup
2) in STM32CubeMX: Help->Updater Settings->Firmware Respository
pic help:
#STM32CubeIDE #STM32CubeMX #firmware #[Embedded Software packages Manager] #patch
