Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Please follow steps to flash ATmega with current CPM ATmega Firmware.

Info

Steps require Main Vehicle PCB to be connected to vehicle to provide power

For questions, please contact:

  • Christoph FrauzemPatrick Scheffe

1. Atmel Studio 7.0

Start Atmel Studio 7.0 and load current vehicle firmware solution "vehicle_atmega2560_firmware.atsln"

2. ICE Programmer

Warning

Make sure vehicle is powered off before connecting programmer

With vehicle power OFF, connect ICE programmer AVR Port to JTAG header.

Image RemovedImage Added


Make sure to check pinout of Programmer, Vehicle and Connector Cable:

Image RemovedImage RemovedImage AddedImage Added

3. Fuses

Turn ON vehicle and connect to ATmega Chip using Device Programming (Apply and Read).

...

FuseCorrect Setting
HIGH.SPIENUnchecked
HIGH.EESAVEOptional i.e. checked or unchecked
LOW.CKDIV8

Unchecked

LOW.SUT_CKSELExt. Crystal Osc. 8.0- MHz; Start-up time: 16 CK + 65ms

Image RemovedImage Added

Warning

If vehicle is behaving irregularly i.e. servo steering is acting erratic, LEDs timing appears off, this is most likely due to an issue with the clock.

  1. Check the above settings again. 
  2. Check external crystal oscillater on bottom side of board using oscilloscope (should be 16MHz)

...

Warning

Turn OFF vehicle after flashing is complete BEFORE disconnecting programmer

Image RemovedImage Added

5. Tests

By setting a jumper, a test mode is activated. This allows testing the inputs and outputs without the MLC.

...