In this tutorial we will see how to blink the LED using the explore Embedded bare metal libraries.
The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.
Please refer Project Setup Section for setting up the platforms.


Prerequisites

Please check this tutorial for detailed explanation on lpc1768 Gpio configuration.

If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.

  1. Keil4 Setup
  2. Keil5 Setup
  3. ARM GCC Setup
  4. Eclipse & ARM GCC Setup



References

Please check the below link for detailed explanation on LPC1768 GPIO's configuration.
LPC1768 GPIO Configuration



Hardware Connection

ExploreM3 comes with on board led connected to pin 13.


Code

Below is the sample code the blink the LED connected to pin 13.

Demo