Wiki

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
resources:eval:user-guides:eval-ad5940:tools:keil_setup_guide [19 Nov 2018 13:55] – Updated Micheál Lambe
Line 1: Line 1:
 +====== How to setup and use Keil IDE ======
 +
 +The AD5940 SDK provides support for Keil IDE to develop firmware. Keil provides an evaluation licence that is free but limits the code size to 32 kB. Currently, none of the evaluation examples in the AD5940 development pack exceed this.
 +===== How to Download Keil=====
 + 
 +To download Keil IDE click on the following link https://www.keil.com/demo/eval/arm.htm
 +
 +This will open up a form which must be filled out to download the software. Click Submit when complete to begin the download process.
 +
 +===== How to Install Keil=====
 +Once the download has complete double click on the .exe file to begin the installation procedure. 
 +
 +===== How to Register for Keil Evaluation License  =====
 +To register for the free Keil evaluation license follow these instructions:
 +
 +
 +===== How to edit and run example code in Keil=====
 +To edit and run example code in Keil follow these steps:
 +  - Download the AD5940 SDK from the the GitLab repository:
 +<WRAP round 60% download>
 +
 +[[https://github.com/analogdevicesinc/ad5940-examples| AD5940 SDK Source Code]]
 + 
 +</WRAP>
 +  - Navigate to the **examples->AD5940_ADC->ADICUP3029**
 +  - Double click on ADICUP3029.uvprojx file to open the project in Keil
 +  - The project structure is shown in the left hand side of the screen. It is divided into 4 sub sections:
 +     * **AD5940Lib** - This conatins the AD5940.c source file which has all the AD5940 library functions. This file is common to all examples. The ADICUP3029Port.c file is located here also and contains port functions for the ADuCM3029 microcontroller.
 +     * **Application** - This sub section contains the application code and main.c file.
 +     * **CMSIS** - This contains the arm CMSIS math library.
 +     * **Device** - This folder contains the startup code for the ADuCM3029 micrcontroller. These files should not be modified. {{ :resources:eval:user-guides:eval-ad5940:tools:keil_adc.png?nolink&600 |}}
 +  - Double click on AD5940_ADCPolling.c to open the file in the editor. 
 +  - Modify code as required.
 +  - To compile and build the project go to **Project->Rebuild all target files**. IT may take a couple of seconds to fully compile all the source code.
 +  - To download the code to the evaluation boards first ensure the boards are connected to the PC or laptop. Then click on the red icon in the toolbar to download the source code and begin the debugging session. {{ :resources:eval:user-guides:eval-ad5940:tools:keil_debug.png?nolink&600 |}}
 +  - To set breakpoints click to the left of the line of code. A red dot will appear as in below screenshot.
 +  - To begin executing press the "Run" button which is highlighted in below screenshot. {{ :resources:eval:user-guides:eval-ad5940:tools:keil_debugger.png?nolink&600 |}}
  
resources/eval/user-guides/eval-ad5940/tools/keil_setup_guide.txt · Last modified: 11 Aug 2022 14:44 by Hans Boot