Iimpawu zemveliso
(1) I-PCB ye-Hardware schematic ngumthombo ovuleleke ngokupheleleyo, umthombo ovulekileyo wesoftware, akukho mngcipheko welungelo lokushicilela.
Okwangoku, i-jlink / stlink kwimarike iphikisiwe, kwaye kukho iingxaki zomthetho ekusebenziseni. Xa enye i-jlink isetyenziswe kunye ne-IDE efana ne-MDK, iya kukhawuleza i-piracy kwaye ayikwazi ukusetyenziswa ngokuqhelekileyo, kwaye ezinye iinguqulelo ze-jlink zinengxaki yokulahlekelwa yi-firmware emva kokusebenzisa ixesha elithile. Emva kokuba i-firmware ilahlekile, kufuneka ubuyisele isofthiwe ngesandla.
2
3 I-JTAG kumgangatho we-IEEE 1149 wamazwe ngamazwe. Isiqhelo se-emulator target chip luluhlu lwe-ARM Cortex-M, engavezi ujongano lwe-JTAG, kwaye le mveliso yazisa ujongano lwe-JTAG, olulungele ukuba uphuhlise kwaye ulungise umsebenzi phantsi kwamanye amaqonga.
(4)Inkxaso yezibuko yesiriyali enenyani (oko kukuthi, inokusetyenziswa njengeemulator okanye njengesixhobo sothotho lwezibuko, ithatha indawo ye-ch340, cp2102, p12303)
5 Kuya kubakho i-USB flash drive, tsala nje i-firmware entsha (i-hex okanye ifayile ye-bin) kwi-USB flash drive ukugqiba ukuphuculwa kwe-firmware. Ngenxa yokuba i-DAPLink isebenzisa i-bootloader nge-U disk function, inokugqiba ngokulula ukuphuculwa kwe-firmware. Ukuba unemveliso esekwe kwi-STM32 kwimveliso yobuninzi, kwaye imveliso inokufuna ukuphuculwa kamva, ikhowudi yomlayishi we-boot kwi-DAPLink iyifanele kakhulu ireferensi yakho, umxhasi akadingi kufakela i-IDE entsonkothileyo okanye atshise izixhobo ukuze agqibezele. phucula, tsala nje kwidiski ye-U inokugqiba ngokulula uphuculo lwemveliso yakho.
Inkqubo yocingo
1.Qhagamshela i-emulator kwibhodi ekujoliswe kuyo
Umzobo wocingo lwe-SWD
Umzobo we-JTAG wocingo
Q&A
1. Ukungaphumeleli kokutshisa, ebonisa i-RDDI-DAP ERROR, indlela yokusombulula?
A: Ngenxa yokuba isantya esivuthayo se-simulator sikhawuleza, umqondiso phakathi komgca we-dupont uya kuvelisa i-crosstalk, nceda uzame ukutshintsha umgca weDupont omfutshane, okanye umgca weDupont odibeneyo, unokuzama ukunciphisa isantya esivuthayo, ngokubanzi sinokusombululwa. ngokwesiqhelo.
2. Yintoni ekufuneka yenziwe ukuba ithagethi ayibonwa, nto leyo ebonisa ukusilela konxibelelwano?
A: Nceda ujonge kuqala ukuba intambo ye-hardware ichanekile (GND, CLK,10,3V3), uze ukhangele ukuba unikezelo lwamandla ebhodini ekujoliswe kulo luqhelekileyo. Ukuba ibhodi ekujoliswe kuyo inikwe amandla yi-simulator, ekubeni ubuninzi bemveliso yangoku ye-USB yi-500mA kuphela, nceda ukhangele ukuba ukunikezelwa kwamandla ebhodi ekujoliswe kuyo akwanelanga.
3. Yeyiphi ukutshisa i-chip debugging exhaswa yi-CMSIS DAP/DAPLlink?
A: Imeko yokusetyenziswa eqhelekileyo kukucwangcisa kunye nokulungisa i-MCU. Ngokwethiyori, i-kernel yochungechunge lwe-Cortex-M inokusebenzisa i-DAP yokutshisa kunye nokulungiswa, iitshiphusi eziqhelekileyo ezifana ne-STM32 uchungechunge olupheleleyo lweechips, uchungechunge olupheleleyo lwe-GD32, uchungechunge lwe-nRF51 / 52 njalo njalo.
4. Ndingasebenzisa i-emulator yeDAP ukulungisa ingxaki phantsi kweLinux?
A: Phantsi kweLinux, ungasebenzisa i-openocd kunye ne-DAP emulator ukulungisa ingxaki. i-openocd yeyona nto idumileyo nenamandla ivula idebugger kwihlabathi. Ungasebenzisa kwakhona i-openocd phantsi kweefestile, ngokubhala iscript esifanelekileyo soqwalaselo sinokufezekisa ukulungiswa kwe-chip, ukutshisa kunye neminye imisebenzi.
Ukudubula kwemveliso