====== 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 {{ :francois:drones: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 ==== {{:francois:drones:capture_d_ecran_du_2021-05-13_11-33-33.png?400|}} ==== 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 :r|w|v:[:format]:'' > >'''' - 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) >'''' - 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