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.
9 years, 7 months 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:
1 Answer
9 years, 7 months 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.