9 years ago.

Still get errors after completing all steps

I'm getting these errors even before building; Function 'wait' could not be resolved Function 'wait' could not be resolved Type 'DigitalOut' could not be resolved Type 'LED1' could not be resolved

I'm using the following code;

code

DigitalOut myled (LED1);
#include "mbed.h"
int main()
{
 while(1)
{
myled=1;
wait(0.2);
myle=0;
wait(0.2);
}
}

Quote:

I've tried cleaning and rebuilding the project but the errors remain. I've followed each step. I had to create the LPC1768 folder and populate it with items from the LPC17xx folder which was in the release folder so that I could include it, other than that I followed each step exactly as it was laid out in this tutorial.

Question relating to:

1 Answer

9 years ago.

That notepad is outdated, I cant see the date (would be nice to be shown for every notepad) there but when you check the history. It's from Feb 2013. The mbed library changed a bit since then, so please check if you have all files in the folder and if everything is set properly.

There should be macros set for ARM GCC and target, there might be one of the things which might cause some errors.

For reference, try this makefile for ARM GCC, https://github.com/0xc0170/mbed_gcc_makefile. It should work out of the box, there are articles how I used it with eclipse to build a project.