Avr-studio

Version 4 (Anthony Rowe, 02/02/2008 04:40 pm)

1 1 Anthony Rowe
2 1 Anthony Rowe
= AVR Studio =
3 1 Anthony Rowe
4 1 Anthony Rowe
This page talks about debugging the kernel and user functions using the simulator that is built into AVR Studio. AVR Studio® 4 is the professional Integrated Development Environment (IDE) for writing and debugging AVR® applications in Windows® 9x/NT/2000/XP environments. AVR Studio 4 includes an assembler and a simulator.
5 1 Anthony Rowe
6 2 Anthony Rowe
In order to run Nano-RK inside AVR Studio, you will need version 4.13 build 571 or newer.  This can be downloaded for free from the following link: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725
7 2 Anthony Rowe
8 2 Anthony Rowe
'''Step 1:  Install AVR Studio[[BR]]'''
9 2 Anthony Rowe
10 2 Anthony Rowe
'''Step 2:  Install Service Pack 2[[BR]]'''
11 2 Anthony Rowe
12 2 Anthony Rowe
'''Step 3:  Install Nano-RK and WinAVR on a Windows Machine[[BR]]'''
13 3 Anthony Rowe
 * This is required so that the source can be correctly linked against the binary file.  Using a binary built in linux works except that you will not be able to browse the connected C source, just the assembly (with no comments!).
14 3 Anthony Rowe
15 3 Anthony Rowe
'''Step 4:  Build an elf file[[BR]]'''
16 3 Anthony Rowe
 * The Nano-RK build system automatically builds the elf file when you run make in a project.  To test this, go into a project like basic_tasks and type "make".  You should see the following files:
17 3 Anthony Rowe
  * main.o
18 3 Anthony Rowe
  * main.d
19 3 Anthony Rowe
  * main.lst
20 3 Anthony Rowe
  * main.eep
21 4 Anthony Rowe
  * main.lss  
22 4 Anthony Rowe
   * You may need to run make twice for this one.  It is an extended list file with all assembly code for all functions
23 3 Anthony Rowe
  * main.sym
24 1 Anthony Rowe
  * main.map
25 1 Anthony Rowe
  * main.hex
26 4 Anthony Rowe
  * '''main.elf'''  
27 4 Anthony Rowe
   * This is the file we need for the simulator!