Cov txheej txheem:

Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore: 4 Kauj Ruam
Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore: 4 Kauj Ruam

Video: Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore: 4 Kauj Ruam

Video: Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore: 4 Kauj Ruam
Video: Yasmi - Ntiaj Teb Dub Nciab 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore
Yuav Ua Li Cas Xiam JTAG Ua Ntej Bootloading Atmegas 40DIP Nrog Arduino IDE Mightycore

Tsis ntev los no kuv tau siv atmegas 40 DIP los tswj cov txheej txheem kev lag luam vim tias hom microcontroller no muab ntau yam analog lossis digital I/O yog li koj tsis xav tau kev nthuav dav ntxiv.

Atmegas32/644p/1284p suav nrog ib txoj hauv kev rub cov duab kos uas koj tsim uas hu ua "JTAG" (saib

en.wikipedia.org/wiki/JTAG yog xav paub ntau ntxiv). Yog tias koj siv Arduino IDE lossis LDmicro (IEC 61-131) cov duab kos tau rub los ntawm SPI chaw nres nkoj thiab JTAG pins (4 tus pin: PC2 (D18) PC3 (D19) PC4 (D20) PC5 (D21) tsis muaj rau txhua yam Yog li koj yuav tsum tau lov tes taw JTAG hauv koj qhov program.

Nrog arduino IDE koj tsuas yog yuav tsum ntxiv 3 kab ntawm cov cai hauv ntu teeb tsa zoo li no:

uint8_t tmp = 1 << JTD;

MCUCR = tmp;

MCUCR = tmp;

Ob txoj kab MCUCR txoj hauv kev.

Nrog LDmicro Kuv tsis tuaj yeem tswj ua dab tsi.

Txhawm rau zam cov teeb meem no, kuv bootloaded tom qab MCUCR sau npe tswj kuv atmegas nrog Arduino IDE hauv qab Mightycore. Ib txoj hauv kev hlawv cov fuses nrog JTAG xiam oob khab.

Kauj Ruam 1: Fuse Xam Koj Li 40DIP Circuit:

Fuse Xam Koj Li 40DIP Circuit
Fuse Xam Koj Li 40DIP Circuit
Fuse Xam Koj Li 40DIP Circuit
Fuse Xam Koj Li 40DIP Circuit
Fuse Xam Koj Li 40DIP Circuit
Fuse Xam Koj Li 40DIP Circuit

Mus rau lub vev xaib:

eleccelerator.com/fusecalc/fusecalc.php?chi…

Xaiv qhov kev sib tw zoo (atmega1284p hauv kuv qhov piv txwv tab sis tib txoj kev nrog lwm 40 DIP atmegas) thiab saib "U hfuse: w: 0x99: m" thiab uncheck JTAGEN yog li nws muab "U hfuse: w: 0xD9: m". Nco ntsoov koj lub siab tus nqi 0xD9.

Kauj Ruam 2: Saib rau Boards.txt File hauv Mightycore Directory:

Nrhiav rau Boards.txt Cov Ntaub Ntawv hauv Mightycore Directory
Nrhiav rau Boards.txt Cov Ntaub Ntawv hauv Mightycore Directory
Nrhiav rau Boards.txt Cov Ntaub Ntawv hauv Mightycore Directory
Nrhiav rau Boards.txt Cov Ntaub Ntawv hauv Mightycore Directory

Hauv koj lub PC tshawb nrhiav Mightycore directory. Rau kuv hauv C: / tus neeg siv kuv tus kheej / AppData / Local / Arduino15 / pob khoom / Mightycore / Harware / avr / 2.0.0 / boards.txt.

Kauj Ruam 3: Hloov Kho Cov Boards.txt thiab Bootload Nrog Mightycore:

Hloov kho Boards.txt thiab Bootload Nrog Mightycore
Hloov kho Boards.txt thiab Bootload Nrog Mightycore

Ua tibzoo saib ntawm Clock zaus thaiv ntawm atmega1284p nrog Notepad ++.

Hloov kho txhua qhov fuse siab xws li "1284.menu.clock.16MHz_external.bootloader.high_fuses = 0xd6" rau "1284.menu.clock.16MHz_external.bootloader.high_fuses = 0xd9" (0xd9 tus nqi yav dhau los koj yuav tsum nco ntsoov). Txuag nws.

Tom qab ntawd koj tsuas yog yuav tsum ua raws txoj hauv kev bootloading muab rau hauv

www.instructables.com/id/Arduino-18x-Clone…

Qhov ntawd yog nws.

Kauj Ruam 4: Xaus:

Tam sim no koj khwv tau 4 I/O thiab koj tsis tas yuav ua ib qho kev sau npe rau hauv koj daim duab. Koj tseem tuaj yeem rov qab thiab pab kom JTAGEN thiab rov pib dua ib zaug ntxiv.

Ua tsaug rau txhua qhov kev qhia paub hauv web uas tau muab qee qhov yuam sij rau kuv kom ua tiav txoj haujlwm no.

Pom zoo: