LOGIN
Claran Martis
27
Community Expert
Electronics and Communications Engineer | Founder CVision (Project Leader)
 · MangaluruIndia
Share
Report
Get Link
TUTORIAL

Getting Started!

Hey!

Welcome to this series of tutorials. Hope you enjoy learning something new here.

This tutorial discusses setting up the environment and getting ready to start writing the code for ARM. The procedures to run the code and uploading the code to the microcontroller will be covered in the successive parts of the tutorial.

Part 1

What am I using?

Hardware

  • LPC2148 mini board (ARM7)
  • FT232 Breakout Board (USB to serial converter)

Software

  • Keil uVision4
    Download here
  • Flash Magic
    Download here

Starting a new project

  1. Open Keil uVision4
  2. Click on Project -> New uVision Project…

  1. Enter project name and save

  1. From the opened dialogue box, select your controller. In my case: expand NXP and find LPC2148. Click OK.

  1. Click on Yes to add start up code. This file is necessary for booting the controller and executing the code we write. It contains certain necessary initializations.

  1. Now you are almost ready. We just need to add the source code/our program to the project.
  2. Right click on source group1 and Add files to group if you already have your C code ready.

  1. if you haven’t written the code yet, go to File -> New, type in your code and save with the ‘.c’ extension.

Setting the options for Target

  1. Right click on Target1 and click on options for Target.

  1. Check if the XTAL frequency matches the crystal frequency on the development board you are using.

  1. Click on the output tab and check the option, Create HEX file.

  1. Click on the linker tab and check, use memory layout from target dialog option and click OK.

  1. Now your ready to start coding!
Contributions
Claran Martis

Perfect explanation…

Claran Martis

Claran made a detailed tutorial for the ARM processor
Good job Claran

3 likes 
Like
Award Contribution
Ekhtiak Efat
5
Collaborator
Student
 · PabnaBangladesh
Share
Report
Get Link

wos, nice tutorial

Like
0 like 
Award Contribution
Claran Martis
27
Community Expert
Electronics and Communications Engineer | Founder CVision (Project Leader)
 · MangaluruIndia
Share
Report
Get Link

Thank you.

Like
0 like 
Award Contribution
Jagannath Sahoo
2
Apprentice
Student
 · BhubaneswarIndia
Share
Report
Get Link

Can you make tutorials on Ti TM4C123G?

Like
1 like 
Award Contribution
Claran Martis
27
Community Expert
Electronics and Communications Engineer | Founder CVision (Project Leader)
 · MangaluruIndia
Share
Report
Get Link

Yup I’ll do that soon once I finish uploading the basic tutorials of LPC 2148.

Like
1 like 
Award Contribution
Student
 · BengaluruIndia
Share
Report
Get Link

I will join soon

Like
0 like 
Award Contribution
Leave a reply...
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED
New Post
Start Project
Online Users
Share Link
Help