Makhalidwe a mankhwala
(1) Hardware schematic PCB ndi gwero lotseguka, gwero lotseguka la mapulogalamu, palibe chiwopsezo cha kukopera.
Pakalipano, jlink / stlink pamsika ndi pirated, ndipo pali zovuta zalamulo pakugwiritsa ntchito. Pamene jlink ina ikugwiritsidwa ntchito ndi IDE monga MDK, idzayambitsa piracy ndipo sichingagwiritsidwe ntchito bwino, ndipo matembenuzidwe ena a jlink ali ndi vuto lotaya firmware atatha kugwiritsa ntchito kwa nthawi. Pamene fimuweya anatayika, muyenera pamanja kubwezeretsa mapulogalamu.
(2) Atsogolereni mawonekedwe a SWD, kuthandizira pulogalamu yosinthira ma PC, kuphatikiza keil, IAR, openocd, kuthandizira kutsitsa kwa SwD, kuwongolera njira imodzi.
(3)Mawonekedwe a JTAG, okhala ndi openocd amatha kuthandizira kuwongolera pafupifupi tchipisi ta SoC padziko lonse lapansi, monga ARM Cortex-A series, DSP, FPGA, MIPS, etc., chifukwa protocol ya SWD ndi protocol yachinsinsi yomwe imafotokozedwa ndi ARM, ndi JTAG ndiye muyezo wapadziko lonse wa IEEE 1149. Chip chokhazikika cha emulator nthawi zambiri chimakhala cha ARM Cortex-M, chomwe sichimayambitsa mawonekedwe a JTAG, ndipo izi zimabweretsa mawonekedwe a JTAG, omwe ndi oyenera kuti mupange ndikuwongolera ntchito pansi pa nsanja zina.
(4) Support pafupifupi siriyo doko (ndiko kuti, angagwiritsidwe ntchito ngati emulator kapena ngati siriyo doko chida, m'malo ch340, cp2102, p12303)
(5)DAPLink imathandizira kukweza kwa USB flash drive firmware, ingotsitsa nRST, plug mu DAPLink, PC. Padzakhala USB kung'anima pagalimoto, basi kukoka fimuweya latsopano (hex kapena bin file) mu USB kung'anima pagalimoto kumaliza kukweza fimuweya. Chifukwa DAPLink imagwiritsa ntchito bootloader yokhala ndi U disk ntchito, imatha kumaliza kukweza kwa firmware. Ngati muli ndi STM32-based product in mass production, ndipo mankhwalawo angafunikire kukonzedwanso pambuyo pake, code bootloader code mu DAPLink ndiyoyenera kwambiri kutchulidwa kwanu, kasitomala sayenera kuyika IDE yovuta kapena kutentha zida kuti amalize. kukweza, kungokokera ku disk ya U kumatha kumaliza kukweza kwazinthu zanu mosavuta.
Wiring ndondomeko
1.Lumikizani emulator ku bolodi chandamale
Chithunzi cha SWD
Chithunzi cha JTAG
Q&A
1. Kuwotcha kulephera, kusonyeza RDDI-DAP ERROR, momwe mungathetsere?
A: Chifukwa liwiro loyaka moto la simulator liri mwachangu, chizindikiro pakati pa mzere wa dupont chidzatulutsa crosstalk, chonde yesani kusintha chingwe chachifupi cha Dupont, kapena mzere wolumikizidwa kwambiri wa Dupont, mutha kuyesanso kuchepetsa liwiro loyaka, nthawi zambiri zitha kuthetsedwa. mwachizolowezi.
2. Kodi chingachitike ndi chiyani ngati chandamale sichingazindikirike, zomwe zikuwonetsa kulephera kwa kulumikizana?
A: Chonde fufuzani kaye ngati chingwe cha Hardware ndi cholondola (GND, CLK,10,3V3), ndiyeno onani ngati mphamvu ya board yomwe mukufuna ndi yachilendo. Ngati bolodi yomwe mukufuna ikuyendetsedwa ndi choyimira, popeza kuchuluka kwaposachedwa kwa USB ndi 500mA yokha, chonde onani ngati mphamvu ya board yomwe mukufuna ndi yosakwanira.
3. Ndi chip chowotcha chotani chomwe chimathandizidwa ndi CMSIS DAP / DAPLink?
A: Zomwe zimagwiritsidwa ntchito ndikukonza ndi kukonza zolakwika za MCU. Mwachidziwitso, kernel ya mndandanda wa Cortex-M imatha kugwiritsa ntchito DAP kuwotcha ndi kukonza zolakwika, tchipisi wamba monga STM32 mndandanda wathunthu wa tchipisi, mndandanda wathunthu wa GD32, mndandanda wa nRF51/52 ndi zina zotero.
4. Kodi ndingagwiritse ntchito emulator ya DAP pochotsa zolakwika pansi pa Linux?
A: Pansi pa Linux, mutha kugwiritsa ntchito openocd ndi emulator ya DAP pakuchotsa zolakwika. openocd ndiye chotsegula gwero chodziwika bwino komanso champhamvu padziko lonse lapansi. Mukhozanso kugwiritsa ntchito openocd pansi pa mawindo, polemba ndondomeko yoyenera yokonzekera ikhoza kukwaniritsa kukonzanso kwa chip, kuyaka ndi ntchito zina.
Kuwombera katundu