From mbed online to mbed-cli via KDS and LPCXpresso

After an exciting few weeks with projects using 11u35/1764 and K64F with lpcXpresso and Kinetis Design Studio I have yet to find a good working IDE for ALL of them. So as the online tools have been slow this week I have resorted to mbed-cli command line tools.

The export as zip option has been removed from the online tools so I have used either export to LPCXpresso or as a GCC project.

So here are  the steps:-

1)download as expresso or gcc export
2)unpack into folder
3)cd into folder
4)mbed new .
5)modify mbed.bld to
http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3

(theres a post about this at https://github.com/ARMmbed/mbed-cli/issues/391#issuecomment-259932373 )
6)mbed deploy

it then complains about libraries references
eg

[mbed] ERROR: Library reference “MPU6050.lib” points to a folder “/junk/jt_mbed_cli/nl_DEV_datalogger_nolib/MPU6050”, which is not a valid repository.
[mbed] ERROR: You can remove the conflicting folder manually and use “mbed deploy” to import the missing libraries
[mbed] ERROR: You can also remove library reference “/junk/jt_mbed_cli/nl_DEV_datalogger_nolib/MPU6050.lib” and use “mbed sync” again.
To work round this is is up to you I just deleted the libs and then doing
step 7 to get them to download again was easiest
7)mbed deploy

8) mbed compile -t GCC_ARM -m LPC1768

In a later post I will explain how I then got mbed-cli to actually export something for KDS and LPCXpresso and the fun it was getting them to compile…

If you have an easier way, please drop me a line

This entry was posted in coding, computing, MBED. Bookmark the permalink.

Leave a Reply