1
\$\begingroup\$

I'm trying to make a project with keil uVision 5, for DA14580 (Dialog Semiconductor). http://www.keil.com/dd/chip/6853.htm But in Select Device dialog there's no device from Dialog Semiconductor. The Question is: How can i start a Project with some selected mcu? All examples that i can found is for TI microcontrollers or Atmel. enter image description here

Also, Device missing from Pack Installer too: enter image description here

The only information about the device that I'm looking at is in device database in File Menu: enter image description here

I tried to "Add" the device but, when I'm creating new project for a specific Device, (Photo No1) I cann't find the device in the list.

\$\endgroup\$
1
\$\begingroup\$

Here are some steps for creating a new project for ARM Cortex-M4 using Keil µVision 4.7. This might also help you.

  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 1: Most the screen shots were created by screen name vasily.sib on piazza forum. I copied these improved them for my purpose.
Note 2: I did a cut and paste from How to create Embedded System Program from Scratch using Keil µVision?

Reference:

\$\endgroup\$
  • \$\begingroup\$ I did the step several times. In step 4, it's my problem! See my post, there's nothing about a cpu which i searching for \$\endgroup\$ – MrBit Jun 29 '15 at 19:25
  • \$\begingroup\$ First photo of my post it's the problem! I doesn't find the Dialog DA14580 chip, \$\endgroup\$ – MrBit Jun 29 '15 at 19:45
  • \$\begingroup\$ Thank you dear Mahendra, your post is useful, but my problem is something different I think! I want to use an existing library in my project. \$\endgroup\$ – Abraham Aug 21 '15 at 3:52
0
\$\begingroup\$

Try Adding a ^(ARM) search string. Below is the screen shot.

enter image description here

Below is a list of the Search String expression

Search string expressions

Search String expression Examples

Search String Expression examples

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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