Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
mbed-cli produces non-functioning programs
Hello, everyone!
I'm having trouble trying to use mbed-cli to compile my programs with the GCC_ARM toolchain. (The other two supported toolchains seem to be proprietary, so I cannot use them.) Any program that successfully compiles and runs when I use the online compiler will compile but not run when I try to compile with mbed-cli. I find this really strange because I'm not using a setup I would consider to be too atypical. I have no way of debugging this. (There are no flashing error LEDs when I run the compiled program and no output on the serial terminal.)
I've captured a terminal session showing exactly what I'm doing here: watch at asciinema.org
Additional details:
- I've attached the working .bin file (mbed-os-example-blinky.lpc1768.bin) that I downloaded from the mbed online compiler.
- My local repository, including the BUILD directory containing the non-working .bin file, is available here: GitHub repo. (I couldn't attach this to this post due to its large file size. I apologize for the inconvenience.)
I'm running
- Ubuntu 18.04.1 LTS "Bionic Beaver" (64-bit)
- Python 2.7.15rc1
- arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
- mbed LPC1768
I've already confirmed
- My compilation target on the online compiler is the same (mbed LPC1768).
- For the mbed LPC1768, the GCC_ARM toolchain is listed as
Supportedwhen I runmbed compile --supported. - For every repository I've tried that works on the online compiler, when compiled locally using mbed-cli, the compilation succeeds, but the resulting .bin file never works.
I apologize if I'm missing something simple; I've tried searching the internet, but I can't find anything relevant to my situation.
Please don't hesitate to ask if there's any more information I can provide.
Thanks in advance!