12 years, 7 months ago.

online-compiling doesn't work anymore

Hi guys. Since I've noticed the new website (today) I am not able to compile the code I wrote anymore...it worked last week.

Even when I try example code like DigitalIn it won't let me compile because of an error error :

Code:

DigitalIn Handbook-example code

#include "mbed.h"
 
DigitalIn enable(p5);
DigitalOut led(LED1);
 
int main() {
    while(1) {
        if(enable) {
            led = !led;
        }
        wait(0.25);
    }
}

Error:" identifier p5 is undefined"

The code I am working at working at won't compile because of the following error:

"cannot open source input file "device.h": No such file or directory"

Hope you guys can help me out....I need to continue working on this project :/

1 Answer

12 years, 7 months ago.

Have a look at: http://mbed.org/cookbook/Compiler-Error-5

Accepted Answer

Oh yes. You saved my life mate. It was swiched to freescale as target.....who does that ?! :D

posted by Student Project 27 Feb 2013

Hi,

The Compiler has defaulted to Freescale target due to minor bug introduced earlier (approx. 10 minutes before your post). Thanks a lot for reporting it and please let us know if you find any other regression.

Mihail

posted by -deleted- 27 Feb 2013