Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:eval:user-guides:eval-ad5940:tools:iar_setup_guide [28 Mar 2019 10:48] – [How to Download IAR] Micheál Lamberesources:eval:user-guides:eval-ad5940:tools:iar_setup_guide [10 May 2019 15:56] (current) – [How to Download IAR] Micheál Lambe
Line 4: Line 4:
 ===== How to Download IAR ===== ===== How to Download IAR =====
    
-To download IAR Workbench click on the following [[ftp://ftp.analog.com/pub/MicroConverter/ADxxxxV2.0/EWARM-CD-8321-18631.exe | link]] +To download IAR Workbench click on the following [[ftp://ftp.analog.com/pub/MicroConverter/ADxxxxV2.0/IAR-Installer/EWARM-CD-8321-18631.exe| link]] 
  
 This will begin downloading the latest IAR installer. The file is large so may take some time depending on Internet Download speed. This will begin downloading the latest IAR installer. The file is large so may take some time depending on Internet Download speed.
Line 28: Line 28:
 ===== How to edit and run example code in IAR ===== ===== How to edit and run example code in IAR =====
 To edit and run example code in IAR Workbench follow these steps: To edit and run example code in IAR Workbench follow these steps:
-  - Download the AD5940 SDK from the the GitLab repository:+  - Download the AD5940 SDK from the the GitHub repository:
 <WRAP round 60% download> <WRAP round 60% download>
  
Line 34: Line 34:
    
 </WRAP> </WRAP>
-  - Navigate to the **examples->AD5940_ADC->ADICUP3029** +  - Navigate to the **examples** folder 
-  - Double click on ADICUP3029.eww file to open the project in IAR +  - Double click on ADICUP3029.eww file. This opens all the example projects in the IAR Workspace 
-  - The project structure is shown in the left hand side of the screen. It is divided into 4 sub sections:+  - On first time opening the project, the IAR CMSIS pack manager will open with a screen like this{{ :resources:eval:user-guides:eval-ad5940:tools:pack_manager.png?nolink&600 |}} 
 +  - Click on Packs and expand the Device Specific option. 
 +  - Install the AnalogDevices.ADuCM302x_DFP as highlighted below {{ :resources:eval:user-guides:eval-ad5940:tools:pack_installation.png?nolink&600 |}} 
 +  - Once installed exit the Pack Manager window and display the main IAR Workbench program. 
 +  - All the example projects are shown in the Workspace view {{ :resources:eval:user-guides:eval-ad5940:tools:project_display.png?nolink&600 |}} 
 +  - To select a project to run, right click on it and select "Set as Active" {{ :resources:eval:user-guides:eval-ad5940:tools:select_project.png?nolink&600 |}} 
 +  - Expand the project to see the structure. 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.      * **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.      * **Application** - This sub section contains the application code and main.c file.
-     * **Startup** - This folder contains the startup code for teh ADuCM3029 micrcontrollerThese files should not be modified.+     * **CMSIS-Pack** - This pack contains the necessary files for the ADuCM3029 to function including the startup.c and system.c files
      * **Output** - This contains the c.out file. This file should not be changed.{{ :resources:eval:user-guides:eval-ad5940:tools:iar.png?nolink&600 |}}      * **Output** - This contains the c.out file. This file should not be changed.{{ :resources:eval:user-guides:eval-ad5940:tools:iar.png?nolink&600 |}}
   - Double click on AD5940_ADCPolling.c to open the file in the editor.    - Double click on AD5940_ADCPolling.c to open the file in the editor. 
   - Modify code as required.   - Modify code as required.
   - 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.   - 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.
-  - 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. {{ :resources:eval:user-guides:eval-ad5940:tools:iar_debug.png?nolink&600 |}} +  - 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. Note, if the "play" button is greyed out cloise IAR Workbench and re-open it. {{ :resources:eval:user-guides:eval-ad5940:tools:iar_debug.png?nolink&600 |}} 
   - To set breakpoints click to the left of the line of code. A red dot will appear as in above screenshot.   - To set breakpoints click to the left of the line of code. A red dot will appear as in above screenshot.
   - 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_debugger.png?nolink&600 |}}   - 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_debugger.png?nolink&600 |}}
resources/eval/user-guides/eval-ad5940/tools/iar_setup_guide.txt · Last modified: 10 May 2019 15:56 by Micheál Lambe