Hi All,
I am trying to export my project to offline toolchain (GCC CodeSourcery), but get errors when using the mBed export library.
1. main.cpp file
My main file is simple, blinking LED1 forever.
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.2);
}
}
Compile this main file and runs it at my mBed successfully
2. mbed-export library
Now I import the mbed-export library, as it is suggested that an mBed export library is needed (http://mbed.org/forum/mbed/topic/3685/?page=1#comment-18467).
I imported the mbed-export library from
http://mbed.org/users/mbed_official/code/mbed-export/file/
When I click 'Compile' at the first time, I got errors, see the figure below
When I click 'Compile' again and so on, I got an error
'Unable to download. Fixed the reported errors...'
any suggestions/comments are greatly appreciate.
Hi All,
I am trying to export my project to offline toolchain (GCC CodeSourcery), but get errors when using the mBed export library.
1. main.cpp file
My main file is simple, blinking LED1 forever.
Compile this main file and runs it at my mBed successfully
2. mbed-export library
Now I import the mbed-export library, as it is suggested that an mBed export library is needed (http://mbed.org/forum/mbed/topic/3685/?page=1#comment-18467). I imported the mbed-export library from http://mbed.org/users/mbed_official/code/mbed-export/file/
When I click 'Compile' at the first time, I got errors, see the figure below
When I click 'Compile' again and so on, I got an error
'Unable to download. Fixed the reported errors...'
any suggestions/comments are greatly appreciate.