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.
10 years, 11 months ago.
LPC4088 blinky sample strange behavior.... wait() problem?
Hi,
I create a new project at online compiler, "Blinky LED Hello world" for EA_4088 mbed. Compile and download to EA4088 via USB Drive "mbed" as usual.
However, LED1 seems not to be blinky. - It turns on continuously.
I try....
- Insert printf() to blink while() loop : LED was not blink, but mbed serial port is OK. wait() is wrong?.
- Export to offline compiler(uVision4) and offline build : OK, blink wait() period.
Did someone look at this strange behavior?
4 Answers
10 years, 11 months ago.
Hi,
The mbed team has made a fix in the online compiler. I just tested to use the wait function and it worked also with the precompiled library.
Andreas @ Embedded Artists
10 years, 11 months ago.
I really does not work, it seems a problem of online compiler. It does not work about 1 month ago, worked fine before.
10 years, 11 months ago.
You should use (import) the mbed-src (mbed source) library instead of the precompiled mbed library. With mbed-src everything works as it should. Also make sure to choose "compile all" at least the first time, when you use mbed-src, because the source files have to be at least compiled once to build the library. Later, when you make changes to your program only without changing or updating the library source files, you can choose just "compile".
mbed-src files are updated much more often than mbed library and also all the compiler switches are selected according to your target platform in the online compiler for all the files (also the library) simultaneously. The precompiled library (mbed) may have some switches set wrong by mistake for some targets, when it was built.
Regards Neni