Halayen samfur
(1) PCB tsarin tsarin hardware gabaɗaya buɗaɗɗen tushe ne, buɗe tushen software, babu haɗarin haƙƙin mallaka.
A halin yanzu, jlink/stlink a kasuwa an yi fashi, kuma akwai wasu matsalolin doka a cikin amfani. Idan aka yi amfani da wasu jlink da IDE kamar MDK, hakan zai haifar da satar fasaha kuma ba za a iya amfani da shi yadda ya kamata ba, kuma wasu nau'ikan jlink suna da matsalar rasa firmware bayan amfani da su na wani ɗan lokaci. Da zarar firmware ya ɓace, kuna buƙatar dawo da software da hannu.
(2) Fitar da SWD dubawa, goyan bayan babbar manhajar gyara PC, gami da keil, IAR, openocd, goyan bayan zazzagewar SwD, gyara mataki ɗaya.
(3) JTAG interface, tare da openocd na iya tallafawa debugging kusan dukkanin kwakwalwan SoC a duk duniya, irin su ARM Cortex-A series, DSP, FPGA, MIPS, da dai sauransu, saboda SWD yarjejeniya ce kawai mai zaman kansa yarjejeniya ta ARM, kuma JTAG shine ma'aunin IEEE 1149 na duniya. Guntuwar manufa ta yau da kullun ita ce jerin ARM Cortex-M, wanda baya gabatar da keɓancewar JTAG, kuma wannan samfurin yana gabatar da ƙirar JTAG, wanda ya dace da ku don haɓakawa da gyara aikin a ƙarƙashin wasu dandamali.
(4) Taimakawa tashar jiragen ruwa mai kama-da-wane (wato, ana iya amfani da shi azaman emulator ko azaman kayan aikin tashar tashar jiragen ruwa, maye gurbin ch340, cp2102, p12303)
(5)DAPLink yana goyan bayan haɓaka firmware na USB flash, kawai ƙasa nRST, toshe shi cikin DAPLink, PC. Za a sami kebul na USB, kawai ja sabon firmware (hex ko bin file) cikin kebul na filasha don kammala haɓaka firmware. Saboda DAPLink yana aiwatar da bootloader tare da aikin faifan U, yana iya kammala haɓaka firmware cikin sauƙi. Idan kuna da samfurin tushen STM32 a cikin samarwa da yawa, kuma samfurin na iya buƙatar haɓakawa daga baya, lambar mai ɗaukar kaya a cikin DAPLink ta cancanci ƙimar ku, abokin ciniki baya buƙatar shigar da hadadden IDE ko ƙona kayan aikin don kammalawa. haɓakawa, kawai ja zuwa faifan U na iya kammala haɓaka haɓaka samfuran ku cikin dacewa.
Hanyar waya
1.Connect da emulator zuwa manufa jirgin
SWD zane zane
Tsarin wiring JTAG
Tambaya&A
1. Rashin ƙonewa, yana nuna RDDI-DAP ERROR, yadda za a warware?
A: Saboda saurin ƙona na'urar kwaikwayo yana da sauri, siginar da ke tsakanin layin dupont zai haifar da crosstalk, don Allah yi ƙoƙarin canza guntun layin Dupont, ko layin Dupont da ke da alaƙa, Hakanan zaka iya ƙoƙarin rage saurin ƙonewa, gabaɗaya ana iya warwarewa. kullum.
2. Menene ya kamata a yi idan ba a iya gano abin da ake nufi ba, yana nuna gazawar sadarwa?
A: Da fatan za a fara bincika ko kebul na hardware daidai ne (GND,CLK,10,3V3), sannan a duba ko samar da wutar lantarki na allon da aka yi niyya daidai ne. Idan hukumar ta yi amfani da ita ta hanyar wasan kwaikwayo, tunda matsakaicin fitarwa na USB shine 500MA kawai, duba ko wutar manufa ta ba ta isa.
3. Wani guntu debugging kona ke samun goyan bayan CMSIS DAP/DAPLink?
A: Yanayin amfani na yau da kullun shine don tsarawa da gyara MCU. A ka'ida, kernel na jerin Cortex-M na iya amfani da DAP don ƙonawa da cirewa, kwakwalwan kwamfuta na yau da kullun kamar STM32 cikakken jerin kwakwalwan kwamfuta, GD32 cikakken jerin, jerin nRF51/52 da sauransu.
4. Zan iya amfani da DAP emulator for debugging karkashin Linux?
A: A ƙarƙashin Linux, zaku iya amfani da openocd da DAP emulator don gyara kuskure. openocd shine mafi shahara kuma mai ƙarfi buɗaɗɗen tushen buɗaɗɗen tushe a duniya. Hakanan zaka iya amfani da openocd a ƙarƙashin windows, ta hanyar rubuta rubutun daidaitawa da ya dace zai iya cimma nasarar gyara guntu, ƙonewa da sauran ayyuka.
Harbin samfur