Windows10Âбþ·ÚÎÌ¥·¥ó¥×¥ë¤Ê´Ä¶¤ÇARM¥Þ¥¤¥³¥ó¤òInsight¤ÈOpenOCD¤ò»È¤Ã¤Æ¥Ç¥Ð¥Ã¥°¤¹¤ë(2020ǯÅÙÈÇ)
20230711Äɵ¡ª¡ª¡ª
GCC12¤Ç¥Ó¥ë¥É¤µ¤ì¤¿elf¥Õ¥¡¥¤¥ë¤Ï²¼µ¤Îinsight¤ò»È¤Ã¤¿
ÊýË¡¤Ç¤Ï¥¹¥à¡¼¥º¤Ë¥Ç¥Ð¥Ã¥°¤Ç¤¤Þ¤»¤ó¡ª¡ª
¸½ºßGDB+CodeLite¤Ë¤è¤ë¿·¤·¤¤»þÂå¤Ë¨¤·¤¿¥Ç¥Ð¥Ã¥°
¼ê½ç¤òºîÀ®¤·¤Æ¤ª¤ê¤Þ¤¹¤Î¤Ç´°À®¤Þ¤Çº£¤·¤Ð¤é¤¯¡¢
¤¤¤Þ¤·¤Ð¤é¤¯¤ªÂÔ¤Á¤¯¤À¤µ¤¤¤Þ¤»¡ª¡ª¡ª£±£±¡ª¡ª
OpenOCD for Windows is HERE!
¢¬¤Í¤à¤¤¤µ¤ó¤Ï¼«Á°¥Ó¥ë¥É¤ÎOpenOCD¥Ð¥¤¥Ê¥ê¸ø³«¤·¤Æ¤Þ¤¹¡£
¡¡²òÀâ¤Ï¤³¤Î¥Ð¥¤¥Ê¥ê¤ò´ð¤Ë¤¹¤¹¤á¤Þ¤¹¤Î¤Ç4649!
¤³¤Îµ»ö¤ÏÁ°²ó¤«¤é¤Î³¤¤Ç¤¹¡£Á°²ó¤Î¤â¤Î¤è¤ê¤Á¤ç¤Ã¤ÈÆâÍƤ¬Æñ¤·¤¯¤Ê¤Ã¤Æ¤Þ¤¹¡£
Á°²ó¤ÎÆâÍƤò´ð¤Ë´Ä¶¤ò¹½ÃÛ¤·¤Æ¤¤¤ë¤³¤È¤¬Á°Äó¤ÇÏäò¿Ê¤á¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£
º£²ó¤ÏOpenOCD¤ò»ÈÍѤ·¼ÂºÝ¤ËARM¥Þ¥¤¥³¥ó¤ËJTAG/SWD·Ðͳ¤Ç¥Õ¥é¥Ã¥·¥å½ñ¤¹þ¤ß
¤½¤·¤Æ¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦¤È¤³¤í¤Þ¤Ç¤¤¤¤Þ¤¹¡£
¤â¤Á¤í¤óº£²ó¤â·ÚÎÌÆ°ºî,NO-Eclipse,NO-Cygwin¤Ç¤¹¡£
¢¨º£²ó¤Îµ»ö¤â»þÂå¤Ë¹ç¤ï¤»¤ÆŬµ¹²ÃÉ®½¤Àµ¤·¤Æ¤¤¤¤Þ¤¹¡£
¡üɬÍפʤâ¤Î
¡¡1.ARM¥Þ¥¤¥³¥ó¤¬¼ÂÁõ¤µ¤ì¤¿¥¿¡¼¥²¥Ã¥È¥Ü¡¼¥É
¡¡¡¡ËÞÎã¤È¤·¤Æ¡¢STM32F4¥·¥ê¡¼¥º¤Ç¤¢¤ëSTM32F4Discovery¤ò»ÈÍѤ·¤Þ¤¹¡£
¡¡¡¡»ä¤¬ÇÛÉÛ¤·¤Æ¤¤¤ëSTM32F4¸þ¤±¤ÎFatFs°Ü¿¢Îã¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥¿¡¼¥²¥Ã¥È¥Ü¡¼¥É¤¬
¡¡¡¡STM32F4Discovery¡¢¥Ç¥Ð¥Ã¥¬¥Ï¡¼¥É¥¦¥¨¥¢¤¬STLink/V2¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡Nucleo·ÏÈĤä2015ǯ°Ê¹ßȯÇä¤ÎDiscovery·ÏÈĤÏSTLink/V2-1¤ËÊѤäƤޤ¹¡£
¡¡¡¡
¢¬¤È¤ê¤¢¤¨¤º²¿¤âÊÔ½¸¤·¤Ê¤¯¤Æ¤â¤è¤¯¤Ê¤Ã¤Æ¤Þ¤¹¡£
¡¡2.JTAG/SWD¥Ç¥Ð¥Ã¥¬¥Ï¡¼¥É¥¦¥¨¥¢
¡¡¡¡¾åµ¤ÎCortex-M4¤Ï¥Ç¥Ð¥Ã¥°¥æ¥Ë¥Ã¥È¤È¤·¤ÆJTAG¤ÈSWD¤È¤¤¤¦ÀܳÊý¼°¤ÎξÊý¤ò
¡¡¡¡¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£ARM7TDMI¤ÏJTAG¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î¤ß¤Ç¤·¤¿¡£
¡¡¡¡¸½ºß¡¢¥Û¥Ó¡¼¥æ¡¼¥¶¡¼¤¬¼ê·Ú¤ËÍøÍѤǤ¤ë¤â¤Î¤È¤·¤ÆFT2232·Ï¤ò»È¤Ã¤¿JTAG
¡¡¡¡¥Ç¥Ð¥¤¥¹¤¬¼çή¤Ç¤¹¡£
¡¡¡¡°Ê¸å¤Î²òÀâ¤Ï¤½¤ì¤òÍøÍѤ·¤¿JTAGKey2¸ß´¹¤Î"JTAGKey2 Compatible"
¡¡¡¡¤ò»ÈÍѤ·JTAGÀܳ¤Ë¤Æ²òÀ⤷¤Æ¤¤¤¤Þ¤¹¡£
¡¡¡¡JTAGKey2 Comatible¤ò¼«ºî¤µ¤ì¤ëÊý¤Ï¤³¤Á¤é¤Î²òÀâ¤ò»²¹Í¤Ë¡£
¡¡¡¡SWDÀܳ¤Ë¤Ä¤¤¤Æ¤ÏCMSIS-DAP¤¬¸½ºß¤Î¼çή¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡NxP·Ï¤Îɾ²Á¥Ü¡¼¥É¤Ë¤ÏmbedÈǤȤ·¤Æ¥Ç¥Õ¥©¥ë¥È¤ÇÅëºÜ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç
¡¡¡¡¤â¤Ï¤ä¤ª¤Ê¤¸¤ß¤À¤È»×¤¤¤Þ¤¹¡£
¡¡¡¡¤½¤Î¾¤ÎÉʼï¤Ç¤ÏVersaloon¤ä¾åµ¤ÎJTAGKey2Compatible¤Ç¤âSWDÀܳ²Äǽ¤Ë
¡¡¡¡¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡
¡¡¡¡2023ǯ¸½ºß¤ÏCortex-M·Ï¥Þ¥¤¥³¥ó¤¬¼çή¤È¤Ê¤ê¡¢SWDÀܳ¤¬¥Ç¥Õ¥¡¥¯¥È¡¦
¡¡¡¡¥¹¥¿¥ó¥À¡¼¥É¤Ê¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£
¡¡¡¡
¡¡3.OpenOCD
¡¡¡¡OpenOCD¤Ï¥¿¡¼¥²¥Ã¥ÈMCU(ARM¥Þ¥¤¥³¥ó)¤È¸å½Ò¤¹¤ëgdb/insight¤ÎÃç²ðÌò¤ò
¡¡¡¡²Ì¤¿¤¹¥Õ¥é¥Ã¥·¥å½ñ¤¹þ¤ßµ¡Ç½¤ò»ý¤Ã¤¿¥µ¡¼¥Ð¡¼¥×¥í¥°¥é¥à¤Ç¤¹¡£
¡¡¡¡¤Í¤à¤¤¤µ¤ó¶àÀ½¤Î¥Ó¥ë¥ÉºÑ¤ß¥Ð¥¤¥Ê¥ê¤òÍÑ°Õ¤·¤Æ¤ª¤ê¤Þ¤¹¤Î¤Ç¡¢
¡¡¡¡OpenOCD¤ÎWindows¥Ð¥¤¥Ê¥ê¤Ï¤³¤Á¤é¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡Ãí°Õ¤¹¤Ù¤¤Ï¥Ç¥Ð¥Ã¥¬¥Ï¡¼¥É¥¦¥¨¥¢¤ËÂФ¹¤ë¥É¥é¥¤¥Ð¤Ç¡¢¾åµ¥ê¥ó¥¯¤Ë
¡¡¡¡¤¢¤ëOpenOCD¥Ð¥¤¥Ê¥ê¤Ï²¼µ¤Î¥Ç¥Ð¥¤¥¹¤È¥É¥é¥¤¥Ð¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡*JTAGKey2¤ò¤Ï¤¸¤á¤È¤·¤¿FT2232·Ï¥Ç¥Ð¥¤¥¹:(WinUSB)
¡¡¡¡*Versaloon:(WinUSB)
¡¡¡¡*STLink/v2:(STMicro½ãÀµ/WinUSB)
¡¡¡¡*TI-ICDI(Stellaris Launchpad):(TI½ãÀµ/WinUSB)
¡¡¡¡*J-Link(WinUSB)
¡¡¡¡*J-Link On LPCLink2(WinUSB)
¡¡¡¡*CMSIS-DAP(HID¤È¤·¤Æ¥É¥é¥¤¥Ð¥ì¥¹¤À¤¬mbedÈǤÏVCP¥É¥é¥¤¥Ðɬ¿Ü)
¡¡¡¡*STLink/V2-1(VCP¥É¥é¥¤¥Ðɬ¿Ü)
¡¡¡¡³Æ¥É¥é¥¤¥Ð¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ï°ÊÁ°¤Ï¡¢PID/VIDÄ´¤Ù¤ÆINF¥Õ¥¡¥¤¥ë¤òºî¤Ã¤Æ
¡¡¡¡¡Ä¤ÈÈó¾ï¤Ë¤á¤ó¤É¤¯¤µ¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¸½ºß¤ÏWinUSB¸þ¤±¤ÎGUI¤ÊÈÆÍÑ
¡¡¡¡¥¤¥ó¥¹¥È¡¼¥é¤Îzadig¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤ê¥¤¥ó¥¹¥È¡¼¥ë¤¬ÂçÉý¤Ë´Êά²½¤µ¤ì¡¢
¡¡¡¡¼ê·Ú¤Ë¤Ê¤ê¤Þ¤·¤¿¤Î¤Çzadig¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡¸ø¼°¤Î¥µ¥¤¥È¤Ë¤Ï¥¤¥ó¥¹¥È¡¼¥ë¼ê½ç¤â±Ñʸ¤Çº©ÀÚÃúÇ«¤Ë½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¤¬
¡¡¡¡¸«¤ëɬÍפâ̵¤¤¤¯¤é¤¤´Êñ¤ËWinUSB¤¬Æ³Æþ²Äǽ¤Ç¤¹¡£
¡¡¡¡Ãí¡§¤³¤ÎOpenOCD¤Ï32bitÈǤǤ¹¤¬64bitÈÇWindows´Ä¶¤Ç¤âÌäÂê¤Ê¤¯Æ°ºî¤·¤Þ¤¹¡£
¡¡¡¡¡¡¡¡¡¡64bitÈÇOpenOCD¤ÈÈæ¤Ù¤Æ®ÅÙŪ¤ÊÌ̤ÇÂ纹¤Ï¤Ê¤¤¤Ç¤¹¡£
¡¡¡¡ARM¤Ï¿·µì¤Î¾ðÊó¤¬web¾å¤Î¤¤¤¿¤ë¤È¤³¤í¤ÇÅݺø¤·¤¹¤®¤Æ²¿¤¬Àµ¤·¤¤ÁȤ߹ç¤ï¤»¤«
¡¡¡¡Ê¬¤«¤é¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£Windows´Ä¶¤ÇOpenOCD¤ò»È¤ï¤ì¤ëÊý¤Ï»ä¤Î¤Ö¤í¤°¤ò
¡¡¡¡¤·¤Ã¤«¤ê¸«¤Æ¤¤¤¿¤À¤±¤ì¤ÐÅÓÊý¤ËÊë¤ì¤ë¤³¤È¤À¤±¤ÏÈò¤±¤é¤ì¤ë¤«¤È»×¤¤¤Þ¤¹¡£
¡¡£´¡¥Insight(gdb-gui)
¡¡¡¡Insight¤Ïgdb¤ÎGUIÈǤǤ¹¡£¤Þ¤¿¡¢½ã¿è¤Ê¥Õ¥í¥ó¥È¥¨¥ó¥É¤Ç¤Ï¤Ê¤¯ÆâÉô¤ËGDB
¡¡¡¡¤½¤Î¤â¤Î¤¬¼è¤ê¹þ¤Þ¤ì¤Æ¤¤¤ë¤Î¤ÇÊÌÅÓgdb.exe¤òÍÑ°Õ¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
¡¡¡¡Åö¤Ö¤í¤°¤Ç¤Ï¤³¤ì¤ò»ÈÍѤ·¥½¡¼¥¹¥³¡¼¥É¥ì¥Ù¥ë¤Î¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¡¡¤³¤ì¤â¾ÜºÙ¤Ï¸å½Ò¤·¤Þ¤¹¤¬¥Ð¥¤¥Ê¥ê¤¬ÇÛÉÛ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¥Ó¥ë¥É¤¹¤ëɬÍפÏ
¡¡¡¡¤¢¤ê¤Þ¤»¤ó¡£
¡ü²¼½àÈ÷
¡¡£±¡¥OpenOCD¤Î½àÈ÷
¡¡¡¡¤«¤Ä¤ÆWindows´Ä¶¤Ë¤ÆMSYS/MinGW¤òÍѤ¤¤¿¼ê½ç¤ò¸ø³«¤·¤Æ¤ª¤ê¤Þ¤·¤¿¤¬¡¢
¡¡¡¡OpnOCD0.8.0°Ê¹ß¤Ï¥Ó¥ë¥É¤¹¤ë¤Þ¤Ç¤Î¼ê½ç¤¬ÂçÉý¤ËÈÑ»¨¤Ë¤Ê¤ê´·¤ì¤Æ¤Ê¤¤
¡¡¡¡¿Í¤Ë¤Ï¥Ó¥ë¥É¤¬¤Û¤ÜÉÔ²Äǽ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¤Î¤Ç¸ø³«¤òÇѻߤ·¤Þ¤·¤¿¡£
¡¡¡¡Âå¤ï¤ê¤È¤·¤Þ¤·¤Æ¥Ó¥ë¥ÉºÑ¤ÎWindows¥Ð¥¤¥Ê¥ê¤ò¸ø³«¤·¤Æ¤ª¤ê¤Þ¤¹¡£
¡¡¡¡¤´ÍøÍѤ¯¤À¤µ¤¤¡£¥¤¥ó¥¹¥È¡¼¥ë²Õ½ê¤ÏÁ°²ó¤Î¥Ó¥ë¥É´Ä¶¹½ÃÛ¼ê½ç¤ËÊ襤¡¢¡¡¡¡
¡¡¡¡C:/devz/arm/ocd¤Ë¤¢¤ë¤â¤Î¤È¤·¤Þ¤¹¡£
¡¡£²¡¥Insight¤Î½àÈ÷
¡¡¡¡SourceForge¤Ë¤¢¤ëNetX¤Î¥Ú¡¼¥¸¤Î¤«¤Ê¤ê²¼¤Î¤Û¤¦¤Ë¤¢¤ë
¡¡¡¡"arm-none-eabi-insight-7.4.50.20111222-cvs-mingw32-netx.0.7z"¤ò
¡¡¡¡¥À¥¦¥ó¥í¡¼¥É¤·¡¢Ç¤°Õ¤Î¥Õ¥©¥ë¥À¤ËŸ³«¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡¤³¤Á¤é¤âC:/devz/arm/insight/bin¤Ë¤¢¤ë¤â¤Î¤È¤·¤Þ¤¹¡£
¡ü¥¿¡¼¥²¥Ã¥È¥Ç¥Ð¥¤¥¹¤Ë¥×¥í¥°¥é¥à¤ò¥À¥¦¥ó¥í¡¼¥É
¡¡¡¡Á°²ó¤Î¼ê½ç¤ò»²¹Í¤ËSTM32F4-DiscoveryÍѤÎmain.elf¤¬ºîÀ®¤µ¤ì¤¿¤â¤Î¤È¤·¤Þ¤¹¡£
¡¡¡¡¥Ç¥Ð¥Ã¥°»þ¤ÏºÇŬ²½¥ª¥×¥·¥ç¥ó¤òɬ¤º"-O0"¤Ë¤·¤Æ¥Ó¥ë¥É¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡£±¡¥make¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸
¡¡¡¡Á°²ó¤â²òÀ⤷¤Þ¤·¤¿¤¬¡¢makefile¤Ë¤¢¤ëOpenOCD¤ÈInsight¤¬¥¤¥ó¥¹¥È¡¼¥ë
¡¡¡¡¤µ¤ì¤Æ¤¤¤ë¥Ñ¥¹¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡
¡¡¡¡Insight¤Î°ú¿ô¤Ï²¼¿Þ²¼ÃʤÎÍ×ÎΤÇ"--eval-command"¤ÇÅϤ¹¤è¤¦¤Ëµ½Ò¤·¤Þ¤¹¡£
¡¡¡¡Insightµ¯Æ°¸å¤ÎTarget¤ÎÀßÄê¤Ï°ìÀÚÉÔÍפǤ¹¡£°ú¿ô¤ÎÆâÌõ¤Ï°Ê²¼¤ÎÄ̤ê
¡¡¡¡¡¡--eval-command="target remote localhost:3333"
¡¡¡¡¡¡¡¡-> TCP3333È֥ݡ¼¥È¤ËÀܳ
¡¡¡¡¡¡--eval-command="tbreak main"¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡-> Àܳ¸åmain´Ø¿ô¤ÎÀèƬ¤Ç°ì»þÄä»ß
¡¡¡¡¡¡-nx¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡-> .gdbinit¤òºîÀ®¤·¤Ê¤¤&ÆâÍÆ̵»ë
¡¡¡¡
¡¡£²¡¥PN2¤ÎÀßÄê
¡¡¡¡PN2¤Î"TOOL"¤«¤é¸Æ¤Ó½Ð¤¹¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤ËÁ°²ó¤ÈƱ¤¸Í×ÎΤǰú¿ô¤Ä¤¤ÇÅÐÏ¿¤·
¡¡¡¡¤Æ¤¯¤À¤µ¤¤¡£ÅÐÏ¿¤¹¤ë¤Î¤Ï"program"¤È"debug"¤Ç¤¹¡£
¡¡£³¡¥½ñ¤¹þ¤ß
¡¡¡¡"TOOL"¤«¤é"make program"¤ò¸Æ¤Ó½Ð¤·¡¢OpenOCD¤«¤éSTM32¤Î¥Õ¥é¥Ã¥·¥å
¡¡¡¡½ñ¤¹þ¤ß¥¹¥¯¥ê¥×¥È¤ò¸Æ¤Ó½Ð¤·¥¿¡¼¥²¥Ã¥È¥Ç¥Ð¥¤¥¹¤Ë"main.elf"¤ò
¡¡¡¡¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
¡¡¡¡OpenOCD¤Îcfg¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹¤Î»ØÄ꤬´Ö°ã¤Ã¤Æ¤¤¤ë¤È¥¨¥é¡¼¤¬½Ð¤Þ¤¹¤Î¤Ç
¡¡¡¡³Æ¼«¤Î´Ä¶¤Ë¹ç¤ï¤»¤Æ¥Ñ¥¹¤ò½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡
¡¡£´¡¥¥Õ¥é¥Ã¥·¥å½ñ¤¹þ¤ßÍѤΥ³¥Þ¥ó¥É¤Ë¤Ä¤¤¤ÆÊäÂ
¡¡¡¡makefileÆâ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡1.OpenOCD¤òJTAG¡¦SWD¥Ç¥Ð¥¤¥¹¤Îcfg¥Õ¥¡¥¤¥ë¡¦¥¿¡¼¥²¥Ã¥ÈMCU¤Îcfg
¡¡¡¡¡¡¥Õ¥¡¥¤¥ë¤ò"-f"¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤Æµ¯Æ°¤¹¤ë¡£
¡¡¡¡2.Ʊ»þ¤Ë-c¤Î¥³¥Þ¥ó¥É¤Ç¥¿¡¼¥²¥Ã¥ÈMCU¤Îcfg¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ëproc(´Ø¿ô)
¡¡¡¡¡¡¤ò¸Æ¤Ó½Ð¤¹¡£
¡¡¡¡3.proc¤ËµºÜ¤µ¤ì¤Æ¤¤¤ë½ç¤Ë¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¥Õ¥é¥Ã¥·¥å½ñ¤¹þ¤ß¤ò¹Ô¤¦¡£
¡¡¡¡¾åµ°ìÏ¢¤ÎÆ°ºî¤Ë¤Ægdb¤ätelnet¤«¤é¤Î²ó¤ê¤¯¤É¤¤Áàºî¤Ï°ìÀÚÍפ»¤º¡¢´Êñ¤Ë
¡¡¡¡¥Õ¥é¥Ã¥·¥å¤Î½ñ¤¹þ¤ßÆ°ºî¤¬²Äǽ¤Ç¤¹¡£
¡ü¥¿¡¼¥²¥Ã¥È¥Ç¥Ð¥¤¥¹¤òInsight¤ò»ÈÍѤ·¥Ç¥Ð¥Ã¥°
¡¡£±¡¥make¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸
¡¡¡¡Àµ¤·¤¯¥×¥í¥°¥é¥à¤¬½ñ¤¹þ¤Þ¤ì¤¿¤³¤È¤ò³Îǧ¤·¤¿¤é¼¡¤Ï¥Ç¥Ð¥Ã¥°¤Ç¤¹¡£
¡¡¡¡make¤ÇOpenOCD¤ÈInsight¤òƱ»þµ¯Æ°¤¹¤ë¤¿¤á¤Ë¤Á¤ç¤Ã¤È¹©Éפò¶Å¤é¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡Àè¤ËÄêµÁ¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹¤ä¥³¥Þ¥ó¥É¤ò²¼µ¤Î¤è¤¦¤ËÇÛÃÖ¤·¤Æ¡¢
¡¡¡¡¥¯¥ê¥Ã¥¯°ìȯ¤Ç¸Æ¤Ó½Ð¤·¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡¡¡
¡¡£²¡¥OpenOCD¡¦Insight¤Îµ¯Æ°¤ÈÀܳ
¡¡¡¡"TOOL"¤«¤é"make debug"¤ò¸Æ¤Ó½Ð¤¹¤È¡¢OpenOCD¤¬¥¿¡¼¥²¥Ã¥ÈMCU¤ËÀܳ¡¢
¡¡¡¡¤½¤Î¸åInsight¤¬µ¯Æ°¤·¤Þ¤¹¡£
¡¡¡¡¤µ¤é¤ËOpenOCD¤ÈInsight¤ÎTCPÀܳ¤Þ¤Ç°ìµ¤¤Ë¿Ê¤ß²èÁü¤Î¤è¤¦¤Ë¤Ê¤ì¤ÐÀ®¸ù¤Ç¤¹¡£
¡¡¡¡
¡¡¡¡¤³¤³¤ÇÃí°Õ¤Ç¤¹¤¬Win10¤Ç¤ÏInsight¤Î¥á¥Ë¥å¡¼¤Ë¤¢¤ëTarget Settings´ØÏ¢¤ò
¡¡¡¡¤¤¤¸¤ë¤ÈInsight¤¬¸Ç¤Þ¤Ã¤Æ¤·¤Þ¤¤Æ°ºîÉÔǽ¤Ë¤Ê¤ë¤¿¤áÀäÂФË
¡¡¡¡¿¨¤é¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡ª
¡¡¡¡¤³¤Î¾õÂÖ¤Ç"Continue"¤ò²¡¤¹¤Èmain´Ø¿ô¤ÎºÇ½é¤Î¹Ô¡¢°ì»þŪ¤Ëmain()¤ËÄ¥¤Ã¤¿
¡¡¡¡¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È(main()¤ÎºÇ½é¤Î¹Ô)¤ËÈô¤Ó¤Þ¤¹¡£¤³¤Î¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤Ï
¡¡¡¡°ì»þŪ¤Ê¤â¤Î¤Ç¤¹¤°¤Ë¾Ã¤¨¤ë¤Î¤Ç¥ê¥½¡¼¥¹¤Î̵Â̤ˤâ¤Ê¤ê¤Þ¤»¤ó¡£
¡¡¡¡
¡¡¡¡
¡¡¡¡¤³¤³¤Þ¤Ç¤¤¿¤é¤¢¤È¤ÏInsight¾å¤Ç¥¹¥Æ¥Ã¥×¥¤¥ó¤È¤«¥¹¥Æ¥Ã¥×¥¢¥¦¥È¤È¤«
¡¡¡¡¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥ÈÄ¥¤Ã¤ÆÄä»ß¤µ¤»¤¿¤ê¥ì¥¸¥¹¥¿¤È¤«¥á¥â¥ê¤È¤«(¾ò·ïÉÕ¤Ç)
¡¡¡¡I/O¥ì¥¸¥¹¥¿¤ÎÃÍÆɤ߽Ф·¤¿¤ê¼«Í³¼«ºß¤Ç¤¹¡ª
¡¡¡¡¤Þ¤¿¡¢¥Ç¥Ð¥Ã¥°»þ¤Î½ÅÂç¤ÊÃí°Õ¤Ç¤¹¤¬¡¢Win10¤Ç¤ÏInsight¤Î¥ì¥¸¥¹¥¿
¡¡¡¡¥¦¥¤¥ó¥É¥¦¤ò³«¤¯¤È100%Íî¤Á¤Æ¤·¤Þ¤¤¤Þ¤¹¤Î¤ÇÌÌÅݤ¯¤µ¤¤¤Ç¤¹¤¬¥³¥Þ¥ó¥É
¡¡¡¡¥¦¥¤¥ó¥É¥¦¤«¤é"monitor reg"¤ÇMCU¤Î³Æ¥ì¥¸¥¹¥¿¤ò»²¾È¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¡¡
¡¡£³¡¥¥Ç¥Ð¥Ã¥°¤Î½ªÎ»
¡¡¡¡½ªÎ»¤¹¤ë»þ¤ÏTools->Stop Tools¤Ç½ªÎ»¤µ¤»¤¿¤¤¤È¤³¤í¤Ç¤¹¤¬¤¬¡¢PN2¤Ç¤Ï
¡¡¡¡¤Ò¤È¤Ä¤Î¥×¥í¥°¥é¥à¤·¤«½ªÎ»¤Ç¤¤º¡¢Insight¤À¤±¤¬½ªÎ»¤·¤ÆOpenOCD¤¬
¡¡¡¡½ªÎ»¤·¤Æ¤¯¤ì¤Þ¤»¤ó¡£
¡¡¡¡»ä¤Ï²¼µ¤ÎÍ×ÎΤǶ¯À©Åª¤Ë¥¿¥¹¥¯¤ò»¦¤¹windows¤Îtaskkill¥³¥Þ¥ó¥É¤ò»È¤Ã¤¿
¡¡¡¡¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Æ¤³¤ì¤ò¸Æ¤Ó½Ð¤·¤Æ"³Î¼Â¤Ë"½ªÎ»¤µ¤»¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡¢¤³¤Î¼öʸ¤ò¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë¤Ë¤·¤Æwindows¥Õ¥©¥ë¥À¤ËÆͤùþ¤ó¤Ç
¡¡¡¡¡¡¤ª¤¤Þ¤·¤ç¤¦¡£
¡¡¡¡taskkill /F /IM openocd.exe
¡¡¡¡taskkill /F /IM arm-none-eabi-insight.exe
¡¡¡¡
-
ÌÈÀÕ¡¦Ï¢ÍíÀè¤Ï¢¬¤Î¥ê¥ó¥¯¤ò
¢SNS¤â¤ä¤Ã¤Æ¤Þ¤¹¢
powered by ¤Þ¤á¤ï¤¶- ARM/STM32 (116)
- OpenOCD (27)
- ARM/NxP (34)
- ARM/Cypress (5)
- ARM/Others (3)
- ARM/Raspi (1)
- AVR (13)
- FPGA (4)
- GPS/GNSS (19)
- MISC (81)
- STM8 (2)
- Wireless¤Ê¥¢¥ì (16)
- ¤ª¤¤Ñ (1)
- ¥Ö¥é¥¦¥¶¥Ù¥ó¥Á¥Þ¡¼¥¯ (28)
- ÆüËܤμ«Á³ÊâÆ» (26)
- STM32U0¤Ï¤Â¤á¤Þ¤·¤¿
¢Í ¤Í¤à¤¤ (08/07) - STM32U0¤Ï¤Â¤á¤Þ¤·¤¿
¢Í ¤Ò¤«¤ï (07/28) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Í¤à¤¤ (05/17) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤É¤¸¤ç¤ê¤ó (05/16) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤É¤¸¤ç¤ê¤ó (05/16) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Í¤à¤¤ (01/02) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Ò¤«¤ï (01/02) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Ò¤«¤ï (01/01) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Í¤à¤¤ (12/31) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Ò¤«¤ï (12/31)
- November 2024 (1)
- October 2024 (1)
- September 2024 (1)
- August 2024 (1)
- July 2024 (1)
- June 2024 (1)
- May 2024 (1)
- April 2024 (1)
- March 2024 (1)
- February 2024 (2)
- January 2024 (1)
- December 2023 (4)
- November 2023 (2)
- October 2023 (2)
- September 2023 (1)
- August 2023 (2)
- July 2023 (1)
- June 2023 (2)
- May 2023 (3)
- April 2023 (1)
- March 2023 (1)
- February 2023 (1)
- January 2023 (1)
- December 2022 (2)
- November 2022 (1)
- October 2022 (1)
- September 2022 (1)
- August 2022 (1)
- July 2022 (1)
- June 2022 (1)
- May 2022 (1)
- April 2022 (1)
- March 2022 (1)
- February 2022 (1)
- January 2022 (1)
- December 2021 (2)
- November 2021 (2)
- October 2021 (1)
- September 2021 (1)
- August 2021 (1)
- July 2021 (1)
- June 2021 (1)
- May 2021 (1)
- April 2021 (1)
- March 2021 (1)
- February 2021 (1)
- January 2021 (1)
- December 2020 (3)
- November 2020 (1)
- October 2020 (1)
- September 2020 (1)
- August 2020 (1)
- July 2020 (1)
- June 2020 (2)
- May 2020 (1)
- April 2020 (1)
- March 2020 (1)
- February 2020 (1)
- January 2020 (1)
- December 2019 (3)
- November 2019 (1)
- October 2019 (1)
- September 2019 (2)
- August 2019 (1)
- July 2019 (1)
- June 2019 (1)
- May 2019 (1)
- April 2019 (1)
- March 2019 (1)
- February 2019 (1)
- January 2019 (1)
- December 2018 (3)
- November 2018 (2)
- October 2018 (1)
- September 2018 (1)
- August 2018 (1)
- July 2018 (1)
- June 2018 (1)
- May 2018 (1)
- April 2018 (2)
- March 2018 (1)
- February 2018 (1)
- January 2018 (1)
- December 2017 (2)
- November 2017 (2)
- October 2017 (1)
- September 2017 (1)
- August 2017 (1)
- July 2017 (1)
- June 2017 (1)
- May 2017 (1)
- April 2017 (1)
- March 2017 (2)
- February 2017 (2)
- January 2017 (2)
- December 2016 (7)
- November 2016 (2)
- October 2016 (2)
- September 2016 (1)
- August 2016 (1)
- July 2016 (1)
- June 2016 (1)
- May 2016 (2)
- April 2016 (1)
- March 2016 (2)
- February 2016 (1)
- January 2016 (1)
- December 2015 (3)
- November 2015 (1)
- October 2015 (3)
- September 2015 (2)
- August 2015 (2)
- July 2015 (3)
- June 2015 (3)
- May 2015 (4)
- April 2015 (2)
- March 2015 (4)
- February 2015 (1)
- January 2015 (3)
- December 2014 (3)
- November 2014 (2)
- October 2014 (1)
- September 2014 (2)
- August 2014 (2)
- July 2014 (3)
- June 2014 (2)
- May 2014 (1)
- April 2014 (1)
- March 2014 (4)
- February 2014 (4)
- January 2014 (3)
- December 2013 (5)
- November 2013 (4)
- October 2013 (3)
- September 2013 (2)
- August 2013 (2)
- July 2013 (2)
- June 2013 (3)
- May 2013 (2)
- April 2013 (2)
- March 2013 (2)
- February 2013 (2)
- January 2013 (3)
- December 2012 (4)
- November 2012 (2)
- October 2012 (2)
- September 2012 (4)
- August 2012 (1)
- July 2012 (3)
- June 2012 (2)
- May 2012 (3)
- April 2012 (3)
- March 2012 (2)
- February 2012 (3)
- January 2012 (3)
- December 2011 (5)
- November 2011 (3)
- October 2011 (2)
- September 2011 (2)
- August 2011 (2)
- July 2011 (2)
- June 2011 (2)
- May 2011 (2)
- April 2011 (2)
- March 2011 (2)
- February 2011 (2)
- January 2011 (3)
- December 2010 (7)
- November 2010 (1)
- October 2010 (1)
- September 2010 (1)
- August 2010 (3)
- July 2010 (4)
- May 2010 (1)
- April 2010 (2)
- March 2010 (2)
- February 2010 (2)
- January 2010 (3)
- December 2009 (3)
- November 2009 (8)
- October 2009 (7)
- September 2009 (5)
- August 2009 (4)
- July 2009 (6)
- June 2009 (6)
- May 2009 (14)
- January 1970 (1)
Copyright(C) B-Blog project All rights reserved.
Comments
STM32F407ZGT6_FatFS_DISP_20120425
¤Ç¤Ï¥³¥ó¥Ñ¥¤¥ë¤Ç¤¤Þ¤·¤¿¤¬¡¢
STM32F407xGT6_FatFS_DISP_20120520
¤Ç¤Ï¡¢
MSGECHO = "echo.exe"
¤ËÊѹ¹¤µ¤ì¤¿±Æ¶Á¤Ç»ß¤Þ¤ê¤Þ¤¹¡£
DEVTOOL = LAUNCHPAD
¤Ç»î¤·¤Þ¤·¤¿¡£
¿²ÂÀϺÍÍ¡¢¤Ï¤¸¤á¤Þ¤·¤Æ¡£
¤Í¤à¤¤¤Ç¤¹¡£
2012ǯ5·îÃæ½Ü°Ê¹ß¤Ë¸ø³«¤·¤Æ¤¤¤ë»ä¤Î¥³¡¼¥É¤Ï¥Ó¥ë¥É»þ¤Ë
WindowsÆâÉô¥³¥Þ¥ó¥ÉŽ¢ECHOŽ£¤È¶¥¹ç¤¹¤ë¤Î¤òËɤ°¤¿¤á¡¢Unix
¥é¥¤¥¯¥Ä¡¼¥ë¤ÎŽ¢echo.exeŽ£¤òÌÀ¼¨¤·¤Æ»ÈÍÑ(¥À¥Ö¥ë¥¯¥©¡¼
¥Æ¡¼¥·¥ç¥ó¤Ç¤¯¤¯¤ë)¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤ì¸Î¤Ëecho.exe¤Þ¤Ç¤Î¥Ñ¥¹¤¬Ä̤äƤ¤¤Ê¤¤¤È¥¨¥é¡¼¤Ç
»ß¤Þ¤ê¤Þ¤¹(¥Ñ¥¹¤ÏmakefileÆâ¤ÇÀßÄꤷ¤Æ¤¤¤Þ¤¹)¡£
nemuisan.blog.bai.ne.jp/?eid=188089
¢¬¤ÎURL¤Î¼ê½ç¤òÀµ¤·¤¯Æ§¤Þ¤ì¤¿¾å¤Ç¤Þ¤À¥¨¥é¡¼¤Ç»ß¤Þ¤ë
¤Î¤Ç¤¢¤ì¤Ð¤³¤Á¤é¤ÎÀâÌÀ¤Ë¼êÍî¤Á¤¬¤¢¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹
¤Î¤Ç¡¢ºÆ¸½³Îǧ¤Î¤¿¤á¤Ë²¼µ¤Î¾ÜºÙ¤ò¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
1.»ÈÍѤ·¤Æ¤¤¤ëOS(Win7¤Î¾ì¹ç¤Ï32bit¤«64bit¤«)
2.¾åµURL¤Ç»ØÄꤷ¤Æ¤¤¤ë¥µ¥Ý¡¼¥È¥Ä¡¼¥ë¤ÏCoreutils
¡¡¤ÈWinAVR¤Îutils¤Î¤É¤Á¤é¤ò»ÈÍѤ·¤Æ¤¤¤ë¤«
2.ARM°Ê³°¤Î³«È¯´Ä¶¤ò»ÈÍѤ·¤Æ¤¤¤ë¤«
3.´Ä¶ÊÑ¿ôPATH¤ÎÀßÄê¤Ë2.¤Î´Ä¶¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê
¡¡¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤«
Àè¤Î2¤Ä¤Î¥Ð¡¼¥¸¥ç¥ó¤ÏƱ°ì´Ä¶¤Ç¼Â¹Ô¤·¤Æ¤¤¤Þ¤¹¡£
/usr/bin/sh: -c: line 1: unexpected EOF while looking for matching `"'
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [clean] Error 258
¤È¤Î¥¨¥é¡¼¤ò¸«¤Æ
nemuisan.blog.bai.ne.jp/?eid=188089
¤òÆɤó¤Ç
>MSGECHO = "echo.exe"¡¡<-¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¤Ç¤¯¤¯¤ë
¤Î·Ð°Þ¤¬¤¢¤Ã¤¿¤³¤È¤òÃΤꡢ¥À¥Ö¥ë¥¯¥©¡¼¥È¤ò³°¤·¤¿¤é
¥³¥ó¥Ñ¥¤¥ë¤ÏÄ̤äƤ¯¤ì¤Þ¤·¤¿¤Î¤Ç¡¢Á°²ó¤Î¥³¥á¥ó¥È¤ò
½ñ¤¤Þ¤·¤¿¡£
1.WindowsXP 32bit
2.WinAVR
¡¡¡¡¡¡MAKEDIR = C:/WinAVR-20100110/utils/bin
3.´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¡¡¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç»î¤¹¤È
¡¡¡¡>echo.exe hoge
¡¡¡¡>.exe hoge¡¡¡¡¡¡¡¡ÆâÉô¥³¥Þ¥ó¥É¤ÎECHO¤¬¸Æ¤Ð¤ì¤Æ¤¤¤ëÍÍ»Ò
¡¡¡¡>"echo.exe" hoge
¡¡¡¡>hoge
¡¡¡¡¤È¤Ê¤ê¡¢¥Ñ¥¹¤ÏÄ̤äƤª¤ê¡¢¥Õ¥¡¥¤¥ë¸¡º÷¤Ç¤â¾¤Ë
¡¡¡¡echo.exe¤Ï¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
°Ê¾å¡¢ÃÙ¤¯¤Ê¤ê¤Þ¤·¤¿¤¬Êó¹ð¤µ¤»¤Æĺ¤¤Þ¤¹¡£
¿²ÂÀϺÍͤ³¤ó¤Ð¤ó¤Ï¡¢¤Í¤à¤¤¤Ç¤¹¡£
¤´Ï¢Íí¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¿²ÂÀϺÍͤξðÊó¤ò¤â¤È¤Ë¤³¤Á¤é¤Ç¤â
»î¤·¤Æ¤ß¤Þ¤·¤¿¤¬¡¢WinAVR(20100110ÈÇ)¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë´Ä¶ÊÑ¿ôPATH
¤ËWinAVR¤Î¥Ñ¥¹¤òÄɲäòÁª¤ó¤À¾ì¹ç¡¢ÌäÂ꤬ºÆ¸½¤·¤Þ¤·¤¿¡£PATH¤òÄɲÃ
¤·¤Ê¤¤¾ì¹ç¤ÏȯÀ¸¤·¤Ê¤¤¤Î¤ÇPATH¤ËÄɲ䵤줿WinAVR¤Î¥Ñ¥¹¤¬¸¶°ø¤Ç¤¹¡£
WinAVR¤Î¥¤¥ó¥¹¥È¡¼¥é¤ÏPATH¤Î°ìÈÖƬ¤Ë¼«¿È¤Î¥Ñ¥¹¤ò¤Í¤¸¹þ¤ó¤Ç¤¯¤ë¤Î¤Ç¡¢
Ê£¿ô´Ä¶»ý¤Á¤À¤È¤Á¤ç¤Ã¤ÈÌÌÅݤʤ³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¡Ä¤È¤Ï¤¤¤¨AVRToolchain¤ËÊѤ俺£¤Ç¤âWinAVR¤ò°¦ÍѤµ¤ì¤Æ¤ëÊý¤Ï¿¿ô¤¤
¤Þ¤¹¤Î¤Ç¡¢¼¡²ó¤Î¹¹¿·»þ¤«¤é¤Ïmakefile¤ò¸«Ä¾¤·¤Æ¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó
¤ò´Þ¤Þ¤Ê¤¤echo.exe¤Ç¤âɽ¼¨¤¬Êø¤ì¤Ê¤¤¤è¤¦¤Ë¤Á¤ç¤Ã¤È¹©Éפ·¤Æ¤ß¤Þ¤¹¤Í¡£
Ʊ¤¸¤¯»ä¤¬¸ø³«¤·¤Æ¤¤¤ë¥Ó¥ë¥É¼ê½ç¤â¥µ¥Ý¡¼¥È¥Ä¡¼¥ë¤òWinAVRÉÕ°¤Îutils
¤Ç¤Ï¤Ê¤¯Coreutils¤Î»ÈÍѤò¿ä¾©¤¹¤ë¤è¤¦¤Ë¥·¥Õ¥È¤¹¤ëͽÄê¤Ç¤¹¡£
¤Í¤à¤¤ÍÍ¡¢¤Ï¤¸¤á¤Þ¤·¤Æ¡£imenihs¤È¿½¤·¤Þ¤¹¡£
½©·î¤ÎSTM32F4 Discovery¤ò¹ØÆþ¤·¤Æ¡¢À©¸Â¤Ê¤·¥³¥ó¥Ñ¥¤¥ë´Ä¶¤ò¹½ÃÛ¤·¤è¤¦¤È¤Í¤à¤¤ÍͤΤ³¤Á¤é¤Î¥Ú¡¼¥¸¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤¤¤Þ¤¹¡£
¤½¤Î²áÄø¤Ç¡¢»ä¤¬2¤Ä°ú¤Ã¤«¤«¤Ã¤¿¤³¤È¤¬¤¢¤ê¤Þ¤·¤¿¤Î¤Ç¡¢¤³¤Á¤é¤ËÊó¹ð¤µ¤»¤Æĺ¤¤Þ¤¹¡£
Insight¤ò»È¤Ã¤¿¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦¤¿¤á¡¢make debug¥á¥Ë¥å¡¼¡Ê¤³¤Á¤é¤Î¥Ú¡¼¥¸¤Îºî¶È¤ÇÄɲä·¤¿¤â¤Î¡Ë¤«¤éInsight¤òµ¯Æ°¤·¤Æ¡¢Insight¤Î¥á¥Ë¥å¡¼ File->Targetsettings¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤â¡¢¤½¤Î¸å̵ȿ±þ¤Ë¤Ê¤ê¤Þ¤¹¡£
Insight+OpenOCD¤ò¶¯À©½ªÎ»¸å¤Î¤Á¡¢ºÆÅÙµ¯Æ°¤µ¤»¤ÆRun¤Ê¤É¤¤¤í¤¤¤í¼Â¹Ô¤µ¤»¤Æ¤âƱÍͤË̵ȿ±þ¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î²óÈòÊýË¡¤Ï¡¢arm-none-eabi-insight.exeËÜÂΤÎexe¤ò±¦¥¯¥ê¥Ã¥¯¤·¡¢¥×¥í¥Ñ¥Æ¥£¤«¤é¸ß´¹À¥¿¥Ö¤òÁªÂò¤·¡¢Windows98/ME¸ß´¹¥â¡¼¥É¤ÇÆ°ºî¤µ¤»¤ë¤ÈÎɤ¤¤è¤¦¤Ç¤¹¡£
¹¹¤Ë¡¢¤Í¤à¤¤ÍͤκîÀ®¤µ¤ì¤¿stm32f4ÍѤÎmakefile¤Î¡¢Insight¸Æ¤Ó½Ð¤·¤Î°ú¿ô¤â¡¢
$(WSHELL) /c start /B $(INSIGHT) $(TARGET).elf target_cmd=remote/tcp localhost:3333
¤ÈÊѹ¹¤¹¤ë¤È¡¢remote/tcp¤ÇÀܳ¤µ¤ì¤ë¤è¤¦¤Ç¤¹¡£¡ÊÊѹ¹°ÊÁ°¤Ïlocalhost:3333¤Î°ú¿ô¤¬Ìµ¸ú¤È¥á¥Ã¥»¡¼¥¸¤òÅǤ¤¤Æ¤¤¤Þ¤·¤¿¡£¡Ë
¤â¤·¤«¤·¤¿¤é¡¢½éÊâŪ¤Êï¤Ç¤âÃΤäƤ¤¤ë»ö¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¦¡¦¡¦¡£
¤Á¤Ê¤ß¤Ë¡¢»ä¤ÎPC¤ÎOS¤ÏWindows7 HomePremium 64bit¤Ç¤¹¡£
Ĺʸ¼ºÎ餷¤Þ¤·¤¿¡£
imenihsÍÍ
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤Í¤à¤¤¤Ç¤¹¡£
Insight¤Ïgdbtk.ini¤È¤¤¤¦ÀßÄê¥Õ¥¡¥¤¥ë¤ò¥í¥°¥¤¥ó²¼¥æ¡¼¥¶¡¼¥Õ¥©¥ë¥À
(Windows7¤À¤ÈC:¥¥æ¡¼¥¶¡¼¥(¥æ¡¼¥¶¡¼Ì¾)¤ËÁêÅö¤¹¤ë)¤Ëºî¤ê¡¢¼¡²ó¤Î
µ¯Æ°¤ÇºÇ¸å¤ËÆ°¤«¤·¤¿»þ¤Îgdbtk.ini¤ÎÀßÄê¤òÈ¿±Ç¤µ¤»¤Þ¤¹¡£¤³¤³¤ÇÀßÄê¤Ë
¸í¤ê¤¬¤¢¤ë¤È¥Ñ¥±¥Ã¥ÈÂÔ¤Á¤Ë¤è¤ê¥Õ¥ê¡¼¥º¤·¤¿¤è¤¦¤Ë¸«¤¨¤ë¤Î¤ÇÃí°Õ
¤·¤Æ¤¯¤À¤µ¤¤¡£
¤È¤¤¤¦¤³¤È¤Çmakefile¤Îtarget_cmd...¤ÎÉôʬ¤ÏÁ´¤¯ÉÔɬÍפǤ¹(̵»ë¤µ¤ì¤Þ¤¹)¡£
STM32¤äFM3¸þ¤±¤Î¥×¥í¥°¥é¥à¤Çmakefile¤Ë½ñ¤¤¤Æ¤¢¤Ã¤¿¤Î¤Ï¸¡¾ÚÍѤË
»Ä¤·¤Æ¤¤¤Æºï½ü¤¹¤ë¤Î˺¤ì¤Æ¤Þ¤·¤¿¤¹¤ß¤Þ¤»¤ó¡£¼¡²ómp3ºÆÀ¸µ¡Ç½¤òÄɲÃ
¤·¤Æ¹¹¿·¤·¤Þ¤¹¤Î¤Çmakefile¤Î;·×¤Êµ½Ò¤Ï¾Ã¤·¤Æ¤ª¤¤Þ¤¹¤Í¡£
½é¤á¤Þ¤·¤Æ...¤Ç¤¹(»ä¤ÎÊý¤«¤é¤Ï¤È¤¤¤¦¤³¤È¤Ç)
ºÇ¶á¥³¥á¥ó¥ÈÀ°Íý¤ò¤·¤Æ¤ª¤é¤º¡¢¤´Ëܿͤ«¤é¥³¥á¥ó¥È¤ò¤¤¤¿¤À¤¤¤Æ¤¤¤¿¤È¤Ïµ¤¤¬ÉÕ¤«¤º¡¢¼ºÎ餷¤Þ¤·¤¿m(__)m
PN2¤«¤éMake½ÐÍè¤Ê¤«¤Ã¤¿¤¢¤È¡¢Eclipse¤Ç¤Ê¤ó¤È¤«¤Ê¤Ã¤¿¤Î¤Ç¡¢¤½¤Î¸å¤Ï¾¤Î¤³¤È¤Ë¤«¤Þ¤±¤Æ(¥È¥é¥ó¥¸¥¹¥¿¤Î¥Ú¥¢¼è¤ê¤È¤«)ARM¤Ï¤ªµÙ¤ß¤·¤Æ¤¤¤Þ¤·¤¿
¿ʬ¤´»ØŦ¤Î¥ß¥¹¤À¤Ã¤¿¤È»×¤¦¤Î¤Ç(¾Ã¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¤¬)¡¢ºÆÅÙÄÉ»î¤ò¤·¤Æ¤³¤Á¤é¤Î´Ä¶¤âÀ§Èó»È¤ï¤»¤Æ¤¤¤¿¤À¤¤¿¤¤¤È»×¤¤¤Þ¤¹
²¿¤«»Ï¤á¤ë¤È¤¤Ï´Ä¶¹½ÃÛ¤¬°ìÈÖÌÌÅݤʤΤǡ¢¤Ä¤¤¤ª»ÅÃ夻¤ÇºÑ¤Þ¤»¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Î¤è¤¦¤ÎÃúÇ«¤ËÀâÌÀ¤·¤Æ¤¤¤¿¤À¤¯¤ÈÈó¾ï¤Ë½õ¤«¤ê¤Þ¤¹
º£¸å¤È¤â»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡¢º£²ó¤Ï¤³¤Á¤é¤ÎÊý¤³¤½¤ª¼ê¿ô¤ò¤ª¤«¤±¤·¤Æ¤¹¤¤¤Þ¤»¤ó¤Ç¤·¤¿(·è¤·¤ÆÈãȽ¤¬¤Þ¤·¤¤¤Ä¤â¤ê¤Ç¤Ï¤Ê¤¯¡¢¼«Ê¬¤Îºî¶È¥á¥â¤Î¤Ä¤â¤ê¤À¤Ã¤¿¤Î¤Ç...)
SabotenboyÍͤ³¤ó¤Ð¤ó¤Ï¡¢¤Í¤à¤¤¤Ç¤¹¡£
»ä¤âÈ´¤±¤Æ¤¤¤ë½ê¤¬¾¯¡¹¤É¤³¤í¤«Â¿¡¹¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢Â¾¤ÎÊý¤Î"¤³¤³¤¬Ê¬¤«¤é¤Ê¤¤"
"¾å¼ê¤¯¤¤¤«¤Ê¤¤"¤È¤¤¤¦¤´°Õ¸«¤Ï¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤·¤Æ½¤Àµ¤¹¤ëºÝ¤ËÈó¾ï¤Ë
ÂçÀڤǤ¢¤ë¤È´¶¤¸¤Æ¤ª¤ê¤Þ¤¹¡£º£¸å¤È¤â¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£
¤Í¤à¤¤ÍÍ¡¢¤Ï¤¸¤á¤Þ¤·¤Æ¡£555¤È¿½¤·¤Þ¤¹¡£
Interface2012ǯ6·î¹æ¤ÎÉÕÏ¿´ðÈÄMB9BF618T¤òÍѤ¤¤ÆWindows7´Ä¶¤Ç¤³¤Á¤é¤Î¥Ö¥í¥°¤ò»²¹Í¤Ë¤µ¤»¤Æ夤¤Æ¡¢MB9BF618T_Simple_20130103¤ò»ÈÍѤ·¤Æ¡¢³«È¯´Ä¶¤òÀ°¤¨¤Æ¤¤¤Þ¤¹¡£
¤·¤«¤·¡¢make program¤Ç¥Ç¥Ð¥¤¥¹¤Ë½ñ¤¹þ¤â¤¦¤È¤¹¤ëÃʳ¬¤Ç
Error: unable to open ftdi device: device not found
¤È¥¨¥é¡¼¤¬½Ð¤Æ¤·¤Þ¤¤º¤¤Ã¤Æ¤¤¤Þ¤¹¡£
USB-Blaster¤òÀܳ¤·¤Æ¤¤¤Ê¤¯¤Æ¤âƱ¤¸¥á¥Ã¥»¡¼¥¸¤¬¤Ç¤Þ¤¹¤Î¤Ç¡¢OpenOCD¤¬USB-Blaster¤òǧ¼±¤Ç¤¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£
(¥Ç¥Ð¥¤¥¹¥Þ¥Í¡¼¥¸¥ã¤äAltera¤ÎQuartus¤Ë¤Ïǧ¼±¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£¡Ë
ºÇ¶á¤Ï¤¸¤á¤¿¤Ð¤«¤ê¤Çmakefile¤Îµ½Ò¤Ê¤É¤âʬ¤«¤é¤Ê¤¤¤³¤È¤Ð¤«¤ê¤Ê¤Î¤Ç¤¹¤¬¡¢
USB-Blaster¤ò»ÈÍѤ¹¤ë¾ì¹ç¤ÎÊѹ¹ÅÀ¤ÏmakefileÃæ¤Î¡¢
¡21¹ÔÌܤΠMPSSE = ftdi ¤ò¥³¥á¥ó¥È¤Ë¤·¤Æ¡¢22¹ÔÌܤΠMPSSE = ¤Î¥³¥á¥ó¥È¤ò²ò½ü¤¹¤ë¡£
¢58¹ÔÌܤÎÆɤ߹þ¤àinterface¤Îcfg¥Õ¥¡¥¤¥ë¤òjtagkey2.cfg ¤«¤éaltera-usb-blaster.cfg¤ËÊѹ¹¤¹¤ë¡£
(-f interface/$(MPSSE)/altera-usb-blaster.cfg ¤È¤¹¤ë¡£)
¤Î£²ÅÀ¤Î¤ß¤ÇÀµ¤·¤¤¤Ç¤·¤ç¤¦¤«¡©
¤½¤ì¤È¤â¾¤ÎÊѹ¹¤Þ¤¿¤Ï¡¢makefile¤ÎÊѹ¹°Ê³°¤Î¤Ê¤ó¤é¤«¤ÎÁàºî¤¬É¬Íפˤʤë¤Î¤Ç¤·¤ç¤¦¤«?
555ÍͤϤ¸¤á¤Þ¤·¤Æ¡¢¤Í¤à¤¤¤Ç¤¹¡£
¤´¼ÁÌ䤤¤¿¤À¤¤¤¿·ï¤Ç¤¹¤¬¡¢»ä¤Î¤Ö¤í¤°¾å¤Ë¤Æ¸ø³«¤·¤Æ¤¤¤ë
¥Ç¥Ð¥Ã¥°¼ê½ç¤Ï´û¤Ë¥×¥í¥×¥é¤Îftd2xx¤«¤éLibUsb/WinUSB¤Ë
¥É¥é¥¤¥Ð¤ò°Ü¹Ô¤·¤Æ¤ª¤ê¤Þ¤¹¡£USB-Blaster¤Ë¤ª¤¤¤Æ¤ÏWinUSB
¤Ë¤Ï¤Þ¤ÀÂбþ¤·¤Æ¤ª¤é¤ºLibUSB¤ò¥É¥é¥¤¥Ð¤È¤·¤Æ»ÈÍѤ¹¤ë
ɬÍפ¬¤¢¤ê¤Þ¤¹¡£LibUSB¤Î¥É¥é¥¤¥Ð¤È¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë
ºÝ¤Ïzadig¤ò»ÈÍѤ¹¤ì¤Ð´Êñ¤Ç¤¹¡£
¡Ä¤È¸À¤¤¤¿¤¤¤È¤³¤í¤Ç¤¹¤¬USB-Blaster¤ÎOpenOCD¦¤Î¥³¡¼¥É¤¬
¤Þ¤À¤´¤¯¸¶»ÏŪ¤ÊÃʳ¬¤ÇÁ´¤¯»È¤¤Êª¤Ë¤Ê¤é¤Ê¤¤¾õÂ֤Ǥ¹¡£
»ä¤Æ¤Ã¤¤ê²¼µURL¤ÎÂçÉý½¤Àµ¤¬¥³¥ß¥Ã¥È¤µ¤ì¤¿¤«¤È»×¤¤¹þ¤ó¤Ç
¤Þ¤·¤¿¤¬¡¢¥¹¥Æ¡¼¥¿¥¹¤¬¥ì¥Ó¥å¡¼Ãʳ¬¤Ç»ß¤Þ¤Ã¤¿¤Þ¤Þ¤Ê¤ó¤Ç¤¹¤è¤Í¡Ä
ttp://openocd.zylin.com/#/c/467/
¤È¤¤¤¦¤³¤È¤Ç¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤¬USB-Blaster¤ò»È¤¦¤Î¤Ï¤Þ¤À
¤ª´«¤á¤Ç¤¤Þ¤»¤ó¡£
¤Í¤à¤¤ÍÍ¡¢¤ªÊÖ»ö¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
USB-Blaster¤¬»È¤¨¤Ê¤¤¤Î¤Ï»ÄÇ°¤Ç¤¹¡£
¾ðÊó¤Ï»²¹Í¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤Ï¤¸¤á¤Þ¤·¤Æ¡£¤µ¤«¤Ê¤Ç¤¹¡£
¼«Âð¤Ë̲¤é¤»¤¿¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤¿(-_-;)
STM32F4 Discovery¥Ü¡¼¥É¤ò¤è¤¦¤ä¤¯¿¨¤ê»Ï¤á¤¿¤È¤³¤í¤Ç¡¢
¤Þ¤º¤Ï¤³¤Á¤é¤Î¥µ¥¤¥È¤Î¼ê½ç¤Ç¤Þ¤º¤Ï´Ä¶¤ò¹½ÃÛ¤·¤Æ¤ß¤Þ¤·¤¿¡£
ÅöÊý¤Î´Ä¶¡ÊWindows10 Pro 64bit)¤Ç¤â¡¢
STM32F4¸þ¤±¤Î±Õ¾½É½¼¨¥×¥í¥°¥é¥à¤Î¥Ó¥ë¥É¤¬À®¸ù¤·¡¢
ɾ²Á¥Ü¡¼¥É¾å¤ÇÆ°ºî¤Ç¤¤ë¤³¤È¤¬³Îǧ¤Ç¤¤Þ¤·¤¿¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¡Ê¡¦¡¦¡¦¤È¤¤¤Ã¤Æ¤â¡¢±Õ¾½¥Ñ¥Í¥ë¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢
main´Ø¿ôËÁƬ¤Ë¤¢¤ëL¥Á¥«¤ÎÉôʬ¤Ç¤Î³Îǧ¤Ç¤¹¤¬¡¦¡¦¡¦¡Ë
¤³¤ì¤Ç¡¢¥Ó¥ë¥É²Äǽ¤Ê´Ä¶¤¬½àÈ÷¤Ç¤¤¿¤Î¤Ç¡¢
¾¯¤·¤º¤Ä¤¤¤í¤¤¤í¿¨¤Ã¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹¡£
¤È¤³¤í¤Ç¡¢¤Í¤à¤¤¤µ¤ó¤Î´Ä¶¤Ï¡¢
Programmers Notepad2(PN2)¤ò¥Ý¡¼¥¿¥Ö¥ëÈǤˤ¹¤ì¤Ð¡¢
USB¥á¥â¥ê¤Ç¥Ó¥ë¥É´Ä¶¤ò°ì¼°»ý¤ÁÊ⤱¤½¤¦¤Ç¤¹¤Í¡£
µ¢¾Ê¤¹¤ë¤È¤¤Ê¤É¤Ë¤Ï½ÅÊõ¤·¤½¤¦¤Ç¤¹¡£
¤µ¤«¤ÊÍͤϤ¸¤á¤Þ¤·¤Æ¡¢¤Í¤à¤¤¤Ç¤¹¡£
Win10´Ä¶²¼¤ÎÆ°ºîÊó¹ð¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤³¤ì¤Ç»ä¤Î³«È¯´Ä¶¤Ç¤â¤¢¤È10ǯ¤Ï¤æ¤¦¤ËÀ廊¤½¤¦¤Ç¤¹¤ÍŽ¥Ž¥Ž¥¡ª
¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¥À¡¼¥¯¥í¥ó¤È¿½¤·¤Þ¤¹¡£
STM32F7¥Þ¥¤¥³¥ó¤Î³«È¯´Ä¶¤ò¹½ÃÛ¤·¤¿¤¤¤È»×¤¤¤Þ¤·¤Æ¡¢¤³¤Á¤é¤Î¥µ¥¤¥È¤ò¸«¤µ¤»¤Æĺ¤¤Þ¤·¤¿¡£
̵»ö¡¢¥Ó¥ë¥É¤¬À®¸ù¤·¡¢STM32F7 discovery board ¤Ë¤Æ¤Í¤à¤¤¤µ¤ó¤Î¥×¥í¥°¥é¥à¤ÎÆ°ºî¤ò³Îǧ¤·¤Þ¤·¤¿¡£
¤Þ¤¿¡¢STM32F746VGT6¤ò»È¤Ã¤¿¼«ºî¤Î¥Þ¥¤¥³¥ó´ðÈĤˤơ¢LEDÅÀÌÇ¥×¥í¥°¥é¥à¤¬Æ°ºî¤·¤Þ¤·¤¿¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥À¡¼¥¯¥í¥ó¤µ¤Þ¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤Í¤à¤¤¤Ç¤¹¡£
ÊÖ¿®¤¬ÂçÉý¤ËÃ٤쿽¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£
¾¯¤·¤À¤±»þ´Ö¤Ë;͵¤¬½Ð¤Æ¤¤Þ¤·¤¿¤Î¤Çº£¸å¤âµ»ö¤Î
½¼¼Â¤ò¿Ê¤á¤Æ¹Ô¤«¤»¤Æ¤â¤é¤¤¤Þ¤¹¡ª
¥Ç¥Ð¥Ã¥°¼ê½ç¤òWin10¸þ¤±¤Ë´°Á´Âбþ¤µ¤»¤Þ¤·¤¿¡£
Åöʬ¤Ï¤³¤ì¤Ç´èÄ¥¤ì¤Þ¤¹¡ª
Post a Comment