Error adding mbed-os library

Good day

I have a problem, when I try to add the mbed-os library to my project I get the following error message:

" An error happened while processing the library GitHub - ARMmbed/mbed-os: Arm Mbed OS is a platform operating system designed for the internet of things. Cloning into bare repository ‘c:\Users\anna\AppData\Local\Mbed Studio\library-cache\github.com\armmbed\mbed-os.git’… fatal: unable to access 'https://github.com/ARMmbed/mbed-os.git/': error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt CApath: none "

Can anyone help me?

Kind regards
Anna

Hello Anna,

You seems to be on an MS Windows machine.

  • Open a command prompt in your project’s folder and execute the following command:
mbed config MBED_OS_DIR https://github.com/ARMmbed/mbed-os/
  • Another option is to open a command prompt in your project’s folder and execute the following command:
mbed deploy

Thanks for your reply, unfortunately it didn’t change anything.
I have tried both options. The first one didn’t make any change and I still got the same error message when trying to include the library.
The second option gave the following messages in the command window:


[mbed] Updating library “libmDot-mbed5” to rev #8b02b1a9a1b6
[mbed] Adding library “mbed-os” from “GitHub - ARMmbed/mbed-os: Arm Mbed OS is a platform operating system designed for the internet of things” at rev #d147abc3e556
[mbed] ERROR: Unable to clone repository (GitHub - ARMmbed/mbed-os: Arm Mbed OS is a platform operating system designed for the internet of things)

It seems there is something wrong with your program structure. I would suggest a create a new one using the command:

mbed new program_name

That should automatically add the latest mbed-os library to your new program.

Mine work thanks.