9 years ago.

Nothing works withouth mbed library

I just wrote a simple C program for LPC4088 quick start board by only reading the user manual and this is what I came up with:

[Repository '/users/71GA/code/001-ioconfig-out/' not found]

I created this program by cliclking "new program" and choosing a default "Blinky LED Hello World" example which has mbed library included by default. Then I renamed main.cpp to main.c, deleted everything inside main() and wrote my own code.

After compiling everything worked for as long as I didn't unlink mbed library. Then the example stopped working. After relinking the same mbed library my example still wasn't working which is weird... Does anyone have any idea why this happens?

Question relating to:

The mbed-enabled LPC4088 QuickStart Board from Embedded Artists is a easy to use ARM Cortex-M4 rapid prototyping board in a standard through hole DIP package (44-pin), targeted at high-performance as …

1 Answer

9 years ago.

The code needs to setup stuff like stack pointers for the C code to work properly. The mbed library does this, if you remove all of that it won't do it anymore. The reason you see weird behavior is probably that it performs incremental compiles, and if you start completely removing stuff that does not always work properly. The compile-all option performs a complete clean compile.