Outils pour utilisateurs

Outils du site


francois:simplebgc_gimbal

SimpleBGC clone

La carte que j'ai est un clône de la carte originale BASECAM SimpleBGC 8bits.

J'ai besoin de programmer le bootloader comme indiqué ici downloads_for_8-bit_boards_basecam_electronics.pdf

avrdude

Pour programmer la carte, on utilise avrdude avec le programmateur AVR JTAGICE MKII, en mode ISP.

Connection du programmateur

Utilisation de avrdude

Les option de commande -p m328p (type de micro) et programmateur -c jtag2isp ne changent pas.

Extrait de la doc pour l'option -U (l'option la plus compliquée):

-U <memtype>:r|w|v:<filename>[:format]:

<memtype> - can be flash, eeprom, hfuse (high fuse), lfuse (low fuse), or efuse (extended fuse)
r|w|v - can be r (read), w (write), v (verify)
<filename> - the input (writing or verifying) or output file (reading)
[:format] - optional, the format of the file. You can leave this off for writing, but for reading use i for Intel Hex (the prevailing standard )

For example:
 To write a file called firmware.hex to the flash use the command: ''-U flash:w:firmware.hex''
 To verify a file called mydata.eep from the eeprom use the command ''-U eeprom:v:mydata.eep''
 To read the low fuse into a file use the command ''-U lfuse:r:lfusefile.hex:i''

Exemple:

avrdude -c jtag2isp -p m328p -U lfuse:r:lfusefile.hex:i
francois/simplebgc_gimbal.txt · Dernière modification : de francois

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki