Summer 2019 We will be using C code in order to program our ATMEGA1284 microcontrollers. We will be developing on the Linux machines provided by the school so that we can execute necessary commands to synthesize the programs.
- Daniel Kwong
- Bhrayan Escobar
Below are some notes for personal use
ssh [username]@bolt.cs.ucr.edu
- to connect to UCR serverssh wch136-0x
- where x is equal to 02-30, for direction connection to lab machines, need to be inside a UCR server initially before you can do this.make test
- to generate and run tests for the program/usr/csshare/pkgs/cs120b-avrtools/createProject.sh
- runs project creation bash scriptavr-gcc -mmcu=atmega1284 -I/usr/csshare/pkgs/simavr/ -Iheader/ -D_SIMULATE_ -Wall -Wl,--undefined=_mmcu,--section-start=.mmcu=910000 -o build/objects/main.elf source/main.c
- compiles the source into main.elf filesimavr -v -v -v -v -m atmega1284 -f 8000000 build/objects/main.elf
runs simulationgtkwave build/results/Lab2_introToAVR_trace.vcd
- runs waveform simulationavrdude -c atmelice_isp -p atmega1284 -U hfuse:w:0xD9:m
- disable JTAG
- AVR-GCC compiler
- AVR-GDB debugger
- AVRDUDE programmer
- SimAVR simulator