Wiki

This version is outdated by a newer approved version.DiffThis version (28 Mar 2019 10:48) is a draft.
Approvals: 0/1
The Previously approved version (19 Nov 2018 13:24) is available.Diff

This is an old revision of the document!


How to setup and use IAR Embedded Workbench

IAR Workbench is the IDE of choice for developing firmware for the AD5940. IAR 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 IAR

To download IAR Workbench click on the following link

This will begin downloading the latest IAR installer. The file is large so may take some time depending on Internet Download speed.

How to Install IAR

Once the download has complete double click on the .exe file to begin the installation procedure. Then click on Install IAR Embedded Workbench® for ARM.

Click Next. The installation procedure may take some time as it is a large program.

How to Register for IAR Evaluation License

To register for the IAR free evaluation license follow these instructions:

  1. Open IAR Workbench
  2. Navigate to Help→License Manager
  3. When the License Manager opens go to License→Get Evaluation License
  4. The user must register with IAR to get the evaluation licence. Follow online registration instructions. Select size limited licence as opposed to time limited licence. An email is sent with a link. Click this link to reveal the license number. A similar window to the one below should be displayed with the license number.
  5. Then go back to IAR license manager and go to License→Activate License
  6. Enter the new license number and click ok.

IAR Workbench is now ready to use with a 32KB code size limit.

How to edit and run example code in IAR

To edit and run example code in IAR Workbench follow these steps:

  1. Download the AD5940 SDK from the the GitLab repository:
  1. Navigate to the examples→AD5940_ADC→ADICUP3029
  2. Double click on ADICUP3029.eww file to open the project in IAR
  3. 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.
    • Startup - This folder contains the startup code for teh ADuCM3029 micrcontroller. These files should not be modified.
    • Output - This contains the c.out file. This file should not be changed.
  4. Double click on AD5940_ADCPolling.c to open the file in the editor.
  5. Modify code as required.
  6. To compile and build the project go to Project→Rebuild All. IT may take a couple fo seconds to fully compile all the source code.
  7. To download the code to the evaluation boards first ensure the boards are connected to the PC or laptop. Then click on the green “Play” button on the top toolbar.
  8. To set breakpoints click to the left of the line of code. A red dot will appear as in above screenshot.
  9. The code will be loaded onto the ADuCM3029 microcontroller. To begin executing press the blue “Go” button.
resources/eval/user-guides/eval-ad5940/tools/iar_setup_guide.1553766532.txt.gz · Last modified: 28 Mar 2019 10:48 by Micheál Lambe