10 years, 2 months ago.

device.h not included when exporting to keil microvision project (LPC1768)

I have created a basic application using the online compiler. The application includes mbed-src and the main program is the blinky main. When I export this program to a keil microvision and I try to compile the application using keil I obtain this error: device.h not found. I have checked the project tree and the folder " .\targets\hal\TARGET_NXP\TARGET_LPC176X" is missing.

1 Answer

10 years, 2 months ago.

did you get the last version of the mbed library ? click on the lieft part of the ide compiler (Program Workspace) on the mbed library icon on look at the right (Build Details) if the update button is clickable or not. Then you can update the mbed library. You can also get all the sources of the mbed library here : https://mbed.org/users/mbed_official/code/mbed-src/

get the zip file and use it to compile all the library from your own compiler.