0
$\begingroup$

I have been learning the program embedded systems using Keil µVision 4.7 free version from Mentor graphic. So far all the learning has be using projects that have been already pre-defined. This has worked well so far. I would like to take the next step. Below are some of the several tutorial that I have tried with out much success.

What the minimum step to create a new an Embedded System project using Kiel µVision (Including defining the micro controller, and even setting up the debugger) so issues describe below are avoided?

$\endgroup$

closed as too broad by Fred, hazzey, jhabbott, Chris Mueller, GlenH7 Jun 15 '15 at 17:02

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    $\begingroup$ This is much too broad of a question. There are likely many tutorials available, but this site is not for tutorials. $\endgroup$ – hazzey Jun 13 '15 at 1:29
1
$\begingroup$

Here are some steps for a ARM Cortex-M4

  1. Close your current project in keil µVision, menu: projects->close project
  2. Select "New uVision Project..." from "Project" menu enter image description here
  3. open an empty new one, menu: projects->create a new µVision project enter image description here
  4. Select a Target processor enter image description here
  5. You get a popup that asks if you want to copy the startup assembler file into your project startup startup_xxxx.s.
    enter image description here
  6. now you see the empty project with just the startup file included. enter image description here
  7. Project is ready for embedded software development. It is good idea to rename "Target 1" and "Source Group 1" that describes the project

Right click on Target 1 > Select Manage Project Items -> Update Project Targets, Groups and Files enter image description here

  1. In order to startup our micro-controller, we need to add 'system_.c' file to our project. Keil already has this file defined. To add manually, Right-click on our "Startup" group and select "Add Existing Files to Group 'Startup'...":

enter image description here
a. Keil already have common startup files for some microcontrollers. They are stored at /Keil/ARM/Startup folder
enter image description here
b. From there, for my LaunchPad I will move to TI folder, and then TM4C123 folder:
enter image description here
c. And there i can see my system_TM4C123.c file:
enter image description here

  1. now you need to add the copied file into the project. project->manage->components,.. or simply click the icon with the three coloured boxes add there the startup_TM4C123.c file. you should then see it listed on the left window bar.
  2. now create your xxx.c file containing the main procedure. you need to add it to the project again, like you did in the previous step.
  3. and now you need to set some registers in the controller. for now you can simply do that at the beginning of the main procedure.

Note: Most the screen shots were created by screen name vasily.sib on piazza forum. I copied these improved them for my purpose.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.