Changes between Version 2 and Version 3 of How_to_flash_the_FSC


Ignore:
Timestamp:
12/02/14 10:06:41 (10 years ago)
Author:
dneise
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • How_to_flash_the_FSC

    v2 v3  
     1[[TOC]]
    12Here I try to collect some information about flashing new firmware onto the FSC board. While the FSC has been built to be Arduino-compatible, we never really managed to install the well known Arduino bootloader onto the FSC. So the firmware can't be installed via USB, but needs to be programmed via the ISP port using an external ISP programmer like the one shown in the picture below. This is an original "AVR ISP mkII", but others should work as well.
    23
     
    151152If you accomplished this, you can be sure, that your programmer is nicely connected to the FSC board.
    152153
     154== Getting the firmware ==
     155
     156For your convenience, you can always find the latest version of the firmware in FACTs SVN repository.
     157https://trac.fact-project.org/browser/firmware/FSC/FSC_firmware_version_from_20140318_1700.hex
     158Simply check out that file.
     159
     160== Flashing the hex-file ==
     161In order to tell avrdude to write the hex-file into the MCUs flash memory, we use the **-U** option in the form:
     162
     163-U <memtype>:r|w|v:<filename>[:format]:
     164
     165In our case memtype is "flash", the want to write so we choose "w" next, and then we just give the filename, since the format can be inferred from that.
     166The entire session looks like this.
     167{{{
     168dneise@NeiseLenovo:~/FSC_firmware_flash$ sudo avrdude -p m32 -c avrispmkII -P usb  -U flash:w:FSC_firmware_version_from_20140318_1700.hex
     169
     170avrdude: AVR device initialized and ready to accept instructions
     171
     172Reading | ################################################## | 100% 0.00s
     173
     174avrdude: Device signature = 0x1e9502
     175avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
     176         To disable this feature, specify the -D option.
     177avrdude: erasing chip
     178avrdude: reading input file "FSC_firmware_version_from_20140318_1700.hex"
     179avrdude: input file FSC_firmware_version_from_20140318_1700.hex auto detected as Intel Hex
     180avrdude: writing flash (4520 bytes):
     181
     182Writing | ################################################## | 100% 0.44s
     183
     184avrdude: 4520 bytes of flash written
     185avrdude: verifying flash memory against FSC_firmware_version_from_20140318_1700.hex:
     186avrdude: load data flash data from input file FSC_firmware_version_from_20140318_1700.hex:
     187avrdude: input file FSC_firmware_version_from_20140318_1700.hex auto detected as Intel Hex
     188avrdude: input file FSC_firmware_version_from_20140318_1700.hex contains 4520 bytes
     189avrdude: reading on-chip flash data:
     190
     191Reading | ################################################## | 100% 0.29s
     192
     193avrdude: verifying ...
     194avrdude: 4520 bytes of flash verified
     195
     196avrdude: safemode: Fuses OK (H:FF, E:D9, L:FE)
     197
     198avrdude done.  Thank you.
     199}}}
     200
     201Congrats, you just flashed the FSC!