4 years, 8 months ago.

How can I configure CLI to work with mbed classic and nRF51_DK?


With the intent to compile mBed Classic programs for nRF51_DK boards, I followed the following steps:

(1) I successfuly installed the Command Line Interface (CLI) according to the instructions reported in the video (https://www.youtube.com/watch?v=cM0dFoTuU14); (2) I successfully imported a Blinky program developed for mBed Classic, verified to work well on my nRF51_DK board.

When, however, I attempted to detect the available toolchain/target options, I received the following error: /media/uploads/mauriziobanfi/detect_problem.png

I tried to further investigate the problem (not that I knew what I was doing) with the commands "mbed ls" and "mbedls". Here is what I got: /media/uploads/mauriziobanfi/mbed_ls.png

If I try to compile anyway, this what I obtain: /media/uploads/mauriziobanfi/mbed_compile.png

I'm using the following SW versions: /media/uploads/mauriziobanfi/mbed_versions.png

Thank you for any help you might provide!

1 Answer

4 years, 7 months ago.

Hi Maurizio,

We think the issue is that you are using Python 3.x. When testing this ourselves we received the following warning when trying to build a Mbed OS2 program:

[mbed] WARNING: If you're using Python 3 with Mbed OS 5.8 and earlier versions, Python errors will occur when compiling, testing and exporting

Could you try building with Python 2.7.11 or a later version of Python 2.7?

-Ralph, Team Mbed