ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

Exporting to uvision fails for nucleo F401RE #3057

Closed hasnainvirk closed 7 years ago

hasnainvirk commented 8 years ago

Setup:

mbed-os-5.2.0-rc3
mbed-cli 0.9.9 Command used:

mbed export -m NUCLEO_F401RE -i uvision

Error message :

Traceback (most recent call last): File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project.py", line 234, in main() File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project.py", line 230, in main zip_proj=zip_proj, build_profile=profile) File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project.py", line 93, in export build_profile=build_profile, silent=silent) File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project_api.py", line 229, in export_project macros=macros) File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project_api.py", line 90, in generate_project_files exporter.generate() File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/export/uvision/init.py", line 192, in generate 'device': DeviceUvision(self.target), File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/export/uvision/init.py", line 23, in init DeviceCMSIS.init(self, target) File "/home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/export/cmsis/init.py", line 53, in init raise TargetNotSupportedException("Target not in CMSIS packs") tools.export.exporters.TargetNotSupportedException: Target not in CMSIS packs [mbed] ERROR: "python" returned error code 1. [mbed] ERROR: Command "python -u /home/hasnain/mbed-os/oob-mbed-os-example-client/mbed-os/tools/project.py -i uvision -m NUCLEO_F401RE --source ." in "/home/hasnain/mbed-os/oob-mbed-os-example-client"

This is a Duplicate of https://github.com/ARMmbed/oob-mbed-os-example-client/issues/17. Opened a ticket there for better visibility and quick resolution.

@sg- , @MarceloSalazar , @SeppoTakalo , @0xc0170

ohagendorf commented 8 years ago

Please check C:\Users\YOURUSERNAME.local\share\arm-pack-manager if there is an empty index.json.

When yes, it seems to be the problem I described in #3049

Maybe you can find a first solution in my description (using an older version of pycurl)

ohagendorf commented 8 years ago

@hasnainvirk , sorry it is #3051

hasnainvirk commented 8 years ago

@ohagendorf I am using Linux. I don't think Windows 10 solution applies to me.

ohagendorf commented 8 years ago

But you can check if the CMSIS packs are available. Unfortunatly I can't say where the files are stored under Linux. As @bridadan wrote, you have to install libcurl manually under Linux.

theotherjimmy commented 8 years ago

@hasnainvirk they were stored in $HOME/.local/share/arm-pack-manager.

OTOH, #3067 was merged, so this should no longer be an issue.