-
Notifications
You must be signed in to change notification settings - Fork 0
Updating Firmware
Peter Wegmann edited this page Sep 29, 2022
·
3 revisions
For flashing Firmware onto the device you will either need a standalone *.elf file or functioning developmentent Environment for the gascounter module.
- Start Microchip Studio
- Choose appropriate buildconfiguration
- Connect the power debugger via the 6-Pin connector and adapter to the gascounter modul.
In the following, a step-by-step guide using a Windows computer:
- Install Microship Studio
- _-only perform this step if not already done- _ Once installed, add the program path of the programm “atbackend” to the system environment variables: search for environment variables, in the window “environment variables” at the bottom in “system variables” click on “Path”, edit and add the following as a new path:
C:\Program Files (x86)\Atmel\Studio\7.0\atbackend
- To see if the environment variable was set correctly, open a command prompt, and enter
atprogram. A list with possible options should now be printed on the screen. - Take off the cover of the level meter to be updated. Take off the daughterboard covering the debugging connector by possibly unscrewing a
- Open Microchip Studio, click on “Tools” in the toolbar and then open “Command Prompt”
-
Only (!) type in the following command, but replace
Path_to_firmware.elfby the actual path where the firmware file is stored (e.g.C:\users\...\Levelmeter_Firmware.elf) :
atprogram -t powerdebugger -i ISP -cl 1MHZ -d atmega1284p program -c -f Path_to_firmware.elf –verify
- Connect the power debugger via the 6-Pin connector and adapter to the gascounter module and enter the command previously written in the command prompt. When the device reboots and displays the current firmware version, the process is complete. confirmation in the command prompt window:
- The firmware has now been updated and the gascounter module can be reassembled.