I'm trying to update the pack for STM32G0B1. If I use Pack Installer and use the Update button, I get the following error "Encountered an improper argument":
If I download the pack and use the PackUnzip I get the error "Cannot copy license file to ".Download" folder"
Any ideas?
Hi Tim,
I tested, and I was able to download and install this pack without issue.
Looking at your first screenshot, I see "ERRORS" in the Pack pane in the background. Select Packs > Check for Updates. Does this complete successfully?
Also I notice that your packs are being installed into the install folder for the tools. Do you have write permission to this folder? Packs are usually installed to \\AppData\Local\Arm\Packs
You can set this in the Pack installer, File > Settings > CMSIS Pack Repository
Are you using the latest version of MDK (5.41)?
Ronan
There was a problem with '\' (back-slash) characters in the license file path of some packs (should be a forward slash). This was fixed some time ago in the Pack Installer, so I'm sure you're not using the latest version of MDK.
Thanks for your reply. I've checked the pdsc file and there are no back-slashes.
Thanks for your reply. The errors are all in packs that I don't use. The check for updates runs ok for other packs. Permissions are all ok. I managed to get round the issue by manually unzipping the pack into the folder.
I also cannot duplicate this issue, even with older versions of the Pack Installer. Wich MDK version do you use?
tim barry said:I managed to get round the issue by manually unzipping the pack into the folder.
Pack files are renamed ZIP files and therefore you can extract the files manually, but it is also necessary to copy the pdsc file into the right folder and some other things more. You could try to use the command line utility PackUnzip.exe which you can find in the UV4 folder:
https://developer.arm.com/documentation/ka002738/latest/
Have you found a Solution? i have the same Problem.
I have just successfully downloaded the STM32G0xx_DFP 2.0.0 (latest release by today) from
https://www.keil.arm.com/packs/stm32g0xx_dfp-keil/overview/
Also, importing that DFP with the Pack Installer worked as expected.
My MCU is a STM32H5, but i also tried the G0. If i download the STM32G0xx_DFP2.0.0 package and try to open it, the "Pack Unzip" starts automatically. If I click next to start with the procedure i get the Error Message "Cannot copy license file to .Download folder." I also tried running the PackUnzip.exe as a command line utility as suggested by Hans Schneebauer. If i run the CMD as Administrator I had some success. If i specified exactly the same output Path like the Gui does i could unzip the H5 Package. I guess the Problem is related to privileges in the destination directory. The same Procedure works for Nucleo BSP Packs.
I agree, Stefan.
That sounds like you're missing sufficient privileges.
Yes, but running the Command Line Utility as Administrator is a workaround. Please note you have to specify the correct Output Path in the command line. You can find it by opening the Pack again (with insufficient privileges) and copy the destination Path to the console. This worked. The Pack installer listed both Pack as installed.
The next hurdle i ran into was the Error Message "Flash Download failed cortex-m33" while trying to flash my MCU.I could easily fix this by going to "Options for Targets -> Utilities -> Settings" here i added a listed Configuration for my MCU. Now everything is working.