K64F Hardware Support Package

Hi All,
When configuring the suport package for K64F on 2021A I receive the following error:
MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2021a/3P778C~1.INS/GNUARM~1.INS/win/bin
### Started building the Kinetis SDK platform library (bm) for FRDM-K64F board
Warning: Unable to remove spaces from file path 'G:\Program Files\MATLAB\R2021a\bin\win64'. Spaces in
build-related folder paths can cause the build process to fail. For more information, see Build Process Support
for Folder Names with Spaces or Special Characters.
This eror appears both for SEGGER and MBED firmware.
My Matlab is installed on G:\ not C:\, how do i modify the build path to remove the space in 'Program Files'?
Thanks in advance,
Greg

 Accepted Answer

Walter Roberson
Walter Roberson on 12 Aug 2021
"sets the root folder of the current support packages. MATLAB® installs all support packages to this location."
"You need administrative privileges to use this function." (so you need to Run As Administrator long enough to do this command.)
If you do not have administrative privileges and cannot get an admin to run it for you, then an admin will need to give you access to the appropriate C: directory if you are intended to be able to install support packages yourself. And if you are not intended to be able to install support packages yourself, you will need to get your admin to install the package for you.
That message about "G:\Program" also concerns me. That might go away when the other problem is fixed, but it might not. Historically it has been common for there to be issues with packages (especially third-party packages) to have difficulty if there is a space or non-ascii character in your directory name or user name. So where you have installed to G:\Program Files you might need to rename that to G:\ProgramFiles (and make the appropriate registry changes)

4 Comments

Thanks for the speedy response Walter.
matlabshared.supportpkg.getSupportPackageRoot points to 'C:\ProgramData\MATLAB\SupportPackages\R2021a'
Which appears to be ok. I should note that the support package did install correctly, this is just for the configuration.
Is their an easy way to change the install path or should i just reinstall Matlab without the space?
regards,
Greg
Run As Administrator to configure the support package.
See also
For example perhaps your G drive was built without 8.3 support.
Greg Pearce
Greg Pearce on 12 Aug 2021
Edited: Walter Roberson on 12 Aug 2021
Thanks very much Walter. You are correct, the new G drive did not have 8dot3naming support. Apparently this is only on by default for C:\
If anyone comes across this in the future,you must enable 8.3 support and then reinstall (or copy and paste the files to the same directory) in order to create the correct short file names.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!