Compiles but doesn't run

12 Feb 2012

I have an older (mbed 005.1) that I'm just now trying to get running. My program is simple: turn on all the LED's but it just keeps blinking LED 1 The compiler detects the correct target (LPC1768) and compiles with a Success! message

#include "mbed.h"

DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
DigitalOut led4(LED4);

int main() {
    led1 = 1;
    led2 = 1;
    led3 = 1;
    led4 = 1;
}

So, how do I know if it's connected? How do I know if it's downloaded?

12 Feb 2012

OK, I got it working by myself. I wasn't saving the binary file to the MBED microdisk.