From previous post, I believe now you are familiar with basics of Cortex-M3 architecture . In this tutorial, we would learn to program ARM Cortex-M3 LPC1768 Microcontroller. The first step is to get introduced yourself with programming environment because microcontroller are intended for programming and because when they are programmed they works. For programming LPC1768 Microcontroller we have plenty of free software available.
For ARM Microcontroller and especially when it comes to beginner I suggest to stick with Keil µVision4. I found Keil is very nice tool to start with because of its simplicity. Demo version is enough to get you start. I am sure as long as you are student or making hobby projects you won’t need much…..Anyways in future I’ll write article for Eclipse but for now Keil is something good to go with…You just need to register by filling simple form to download this software for free from official website of Keil
The step-by-step procedure shown in the video below:
In this case Keil µVision4 is only software tool you needed to write software application and flashing code into LPC1768 Microcontroller. As we move further you would get clear picture about how things done. Let’s discuss little bit about flashing LPC1768 Microcontroller. Throughout the process from writing your very first LED blink program to get your LED blink on real hardware, your programmer plays very important role.
Here we will use CoLinkEx ARM-JTAG Adaptor which is USB Programmer:
The one thing that I love about ColinkEx ARM-JTAG Adapter, it’s very easy to use and configure with Keil µVision4. You only need to install ColinkExUSBDriver (V1.2.1) and ColinkEx Plugin for Keil RealView MDK. To download please click here
I have made video which will guide you step-by-step how to install drivers and plug-in required to setup programming environment for Keil µVision4. Please follow video provided down below,
There are couples of things which I would like to point out about ColinkEx ARM JTAG Adapter. This adapter is completely open source means you can make your own if you want. ColinkEx adapter is not just a programmer it also support debugging capability. I am big fan of this adapter and very thankful to CooCox for developing such great low-cost adapter for programming & debugging Cortex-M series microcontroller. For details about chip support and all please visit official website. The only thing that you have to keep in mind is ColinkEx only works with Windows operating system as long as my knowledge goes. For Linux users, I will write another tutorial in near future about how to use on-chip bootloader for flashing LPC1768 Microcontroller.
I think this is enough for this tutorial. In next article will show you step-by-step how to light up LED which will be first project of this series. I suggest you to follow whole series in sequence to get things done properly. Learning ARM Cortex-M3 is not one day task it needs consistent effort and focus. But as like any task once understand basics then rest of your journey will be smooth ride in adventurous world of Microcontroller. I hope you will find this tutorial educational. If you have any question then please write down in comment box or message me. Thank You..!!!