Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
How to programme the target MCU (NXP LPC1768)
Hello,
Recently, I came across a few errors using Keil uvision 5 and exporting the programme from the mbed compiler. What are the other simple and reliable ways to actually programme the LPC1768 Chip? I am hoping for something straightforward where I simply export my files, load them into an IDE then build the project onto the MCU.
Cheers
1 Answer
7 years, 8 months ago.
Hi Fraser,
Thanks for getting in touch, at this moment there are issues with exporting from the online-IDE which is why you seeing the errors, this is being worked on but until then i can suggest using our offline build option mbed-cli.
This will allow you to everything in the online-IDE import libraries, compile etc and even export to the needed toolchain.
It is located here. https://github.com/ARMmbed/mbed-cli
After installing CLI The commands would look something like this to download a blinky example using lpc1768.
- $ cd "TO DESIRED DIRECTORY"
- $ mbed import https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
- $ cd "TO NEW CREATED FOLDER"
- $ mbed deploy
- $ mbed compile -t GCC_ARM -m lpc1768
You have now compiled the program, to export follow below
- $ mbed export -i uvision5 -m lpc1768
If you need anything else, let me know
Regards,
Andrea, team mbed