¤¤¤í¤¤¤í»î¤¹14
¡ü;¤Ã¤¿AT90USBKey¤òPDIÀܳ¤ÎXMEGA¥é¥¤¥¿¤È¤·¤Æ»È¤¦
AT90USBKey¤Ï(¸µ)¼ç¿Í¤Î°äÉʤΰì¤Ä¤Ç¤·¤¿¤¬°ú¤·Ñ¤¤¤À»ä¤¬STM32¤ò¤Ï¤¸¤á¤È¤·¤¿
32bit¥Þ¥¤¥³¥ó¤Ë´°Á´°Ü¹Ô¤·¤¿º£¡¢¤â¤¦É¬Íפʤ¤¤«¤È¼Î¤Æ¤ë¤Ä¤â¤ê¤Ç¤·¤¿¡£
¤·¤«¤·LUFA¤ÎÀ®²Ìʪ¤Î°ì¤Ä¤ËAVRISPmk2¤Î¼ÂÁõ¤¬¤¢¤Ã¤¿¤³¤È¤òº£¹¹ÃΤꡢ
XMEGAÀìÍѤΥեé¥Ã¥·¥å¥í¥à¥é¥¤¥¿¤È¤·¤ÆºÆÀ¸¤¹¤ë¤³¤È¤Ë¤·¤Þ¤·¤¿¡£
XMEGA¤Ë¤¢¤ëPDI¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ÏCortex-M·Ï¤Î¥Þ¥¤¥³¥ó¤Ë¤¢¤ëSWD¤È¤è¤¯»÷¤Æ¤¤¤Æ
2Àþ¼°¤Ç½ñ¤¹þ¤ß¡¦¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤·¤«¤âXMEGA¤Î¾ì¹ç¤ÏJTAGÀܳ¤è
¤ê¤â½ñ¤¹þ¤ß¥¹¥Ô¡¼¥É¤¬Â®¤¤(ATMELÛ©¤¯)¤Î¤Ç¤¹¡ª¡ª
ATUSBKey¾å¤ÎAVRISPmk2¤Î¼ÂÁõ¤ÏPD2&PD3(PDIDATA),PD5(PDICLK)¤È¤·¤Æ°ú¤½Ð
¤µ¤ì¤Þ¤¹¡£AT90USBKey¾å¤Ç¤Ï¾åµ¿Þ¤ÎÍͤËÇÛÀþ¤·¤Þ¤¹¡£¤Þ¤¿¥Ý¡¼¥È¤Î½ÐÎϥХåե¡¤Î
ÇË»¤òËɤ°¤¿¤áPDIDATA¡¦PDICLK¤È¤â³Æ¼«100¡Á220ohm¤ÎÄñ¹³¤òľÎó¤ËÉÕ¤±¤ë
¤Ù¤¤Ç¤¹¡£ËÜÅö¤ÏÅÅ°µ¥È¥é¥ó¥¹¥ì¡¼¥¿¤ò¤«¤Þ¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¤¬¡¢»ä¤Ï3.3V»È¤¤
¤·¤«¤¹¤ë¤Ä¤â¤ê¤¬¤Ê¤¤¤Î¤Ç¤³¤ì¤Ç½½Ê¬¤Ç¤¹¡£
PDI¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ÏXmega¤ÎReset¿®¹æ¤òÄÌ¿®¤Ë»ÈÍѤ·¤Þ¤¹¡£³°Éô¥ê¥»¥Ã¥ÈÍѤÎ
¥á¥«¥Ë¥«¥ë¥¹¥¤¥Ã¥Á¤ò¼ÂÁõ¤·¤Æ¤¤¤ëºÝ¤Ë¥Á¥ã¥¿¥ê¥ó¥°ËɻߤΥ¥ã¥Ñ¥·¥¿¤ò
¤Ö¤é²¼¤²¤Æ¤ë¾ì¹ç¤Ïɬ¤º³°¤·¤Æ¤¯¤À¤µ¤¤¡£
¥É¥é¥¤¥Ð¤Ï¤ª¤Ê¤¸¤ß¤ÎLibUSB¤ò»È¤¤¡¢½ñ¤¹þ¤ß¤ÏAVRDude¤«¤é¹Ô¤¤¤Þ¤¹¡£
¥á¥Ã¥»¡¼¥¸¤Ï¤³¤ó¤Ê´¶¤¸¤Ç¤¹¢
> "C:¥Devz¥Coreutils¥bin¥make.exe" program
avrdude -p atxmega128a1 -P usb -c avrisp2 -U flash:w:main.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e974c
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (118286 bytes):
Writing | ################################################## | 100% 9.27s
avrdude: 118286 bytes of flash written
avrdude: verifying flash memory against main.hex:
avrdude: load data flash data from input file main.hex:
avrdude: input file main.hex auto detected as Intel Hex
avrdude: input file main.hex contains 118286 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 7.77s
avrdude: verifying ...
avrdude: 118286 bytes of flash verified
avrdude done. Thank you.
> Process Exit Code: 0
> Time Taken: 00:17
¤Ä¤¤¤Ç¤Ê¤Î¤ÇXMEGA¤ÎFatFs+TFTLCD¤Î¼ÂÁõ¥µ¥ó¥×¥ë¤â¿·¤·¤¯¤·¤Þ¤·¤¿¡£
¤·¤«¤·¤³¤ÎXMEGA¡¢A1¥·¥ê¡¼¥º¤Î384kByteÈǤä4bit-EBI¤Î´°Á´ÈǤȤ«¤¬ATMELËܲÈ
¤«¤é¤³¤È¤´¤È¤¯Ìµ¤«¤Ã¤¿¤³¤È¤Ë¤µ¤ì¡¢ÁÇľ¤ËARM»È¤Ã¤¿Êý¤¬Îɤ¤ºòº£¤Ï¸ºß°ÕµÁ¤¬
¤Û¤ó¤È¤Ë¤ï¤«¤ê¤Þ¤»¤ó¡Ä¤Þ¤µ¤Ë
¢¨¤â¤È¤â¤È½ê»ý¤·¤Æ¤¤¤¿¿ÞÂΤ¬¤Ç¤«¤¤AVR-JTAGICEmk2¤ÏÉû¶ÈÀè¤ËÄ󶡤·¤Þ¤·¤¿¡£
¡ü¤Ä¤¤¤Ç¤Ç¤¹¤¬WinAVR¤«¤éAVRToolchain¤Ë¾è¤ê´¹¤¨¤ë¤È¤¤Î½ôÃí°Õ¤Ê¤É
¤µ¤¹¤¬¤ËWinAVR»È¤¦¿Í·ã¸º¤·¤Æ¤Þ¤¹¤¬¡¢¤Í¤à¤¤¤µ¤ó¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ó¥ë¥É
¼çÂΤοͤ¬AVRToolchain¤Ë¾è¤ê´¹¤¨¤ë¤¿¤á¤Îtips¤ò¾Ò²ð¤·¤Þ¤¹¡£
¡PROGMEM¤ÎÄêµÁ
¡¡¤³¤ì¤â¤¦³¤³°¤Ç¤Ïavr-gcc4.7·Ï¤¬½Ð¤Æ¤¹¤°¤ËFAQ¤È²½¤·¤¿»öÊÁ¤Ç¤¹¤¬¤¿¤Þ¤Ë¼ÁÌä
¡¡¤â¤é¤¤¤Þ¤¹¤Î¤ÇÆüËܤǤâ´û¤Ë¾¤ÎÊý¡¹¤¬¸ÀµÚ¤·¤Æ¤Þ¤¹¤¬»ä¤â¤ªÅÁ¤¨¤·¤Þ¤¹¡£
¡¡
¡¡prog_****·Ï¤Î(prog_char)Åù¤ÎÀë¸À¤¬4.7·Ï¤ÇÇѻߤˤʤ俤Τǥơ¼¥Ö¥ëÅù¤ÎÄê¿ô
¡¡¤ò¥Õ¥é¥Ã¥·¥å¥á¥â¥êÃÖ¤¯¤È¤¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤·Ä¾¤»¤ÐOK¤Ç¤¹¡£
¡¡µì :const prog_char unk[] ="inachang!";
¡¡¿· :const char unk PROGMEM[] = "inachang!";
¡¡»ä¤¬¸ø³«¤·¤Æ¤ëXMEGA¤Î¥µ¥ó¥×¥ë¤Ï¤¹¤Ç¤Ë½¤ÀµÆþ¤ì¤Æ¤¤¤Þ¤¹¡£
¢utils¤¬Ìµ¤¤¡ª
¡¡AVRToolchain¤ÏAVRStudio6¤Ç»ÈÍѤ¹¤ë¤Î¤¬ÂçÁ°Äó¤Ê¤Î¤Çunix¥é¥¤¥¯¥Ä¡¼¥ë¤¬¤¢¤Ã¤¿
¡¡utils¥Õ¥©¥ë¥À¤¬Â¸ºß¤·¤Þ¤»¤ó¡£¤Ç¤¹¤¬AVR-GCC¤Î¥Ð¥¤¥Ê¥ê¤¬¤¢¤ë¥Õ¥©¥ë¥À¤ËƱÅù¤Î
¡¡Êª¤¬°ì½ï¤Ë¤Û¤ÜÁ´Éô¤Ö¤Á¹þ¤Þ¤ì¤Æ¤ë¤Î¤ÇÂçÄñ¤Ïº¤¤ê¤Þ¤»¤ó¡£
¡¡(sh.exe¤À¤±¤Ï̵¤¤¤Ç¤¹)
¡¡¥·¥§¥ë(sh.exe)¤Ë°Í¸¤¹¤ëmake¤Î½ñ¤Êý¤ò¤·¤Æ¤ë¤È¥¨¥é¡¼¤Ç»ß¤Þ¤ë¤Î¤Ç¤´Ãí°Õ
¡¡¤¯¤À¤µ¤¤¡£¡ÄLUFA¤Ã¤Æ¤¤¤Þ¤ÀWinAVR20101110¤¬Á°Äó¤Ê¤ó¤Ç¤¹¤è¤Í¡Ä¤á¤É¤¤¡Ä¡£
¡¡°ø¤ß¤Ë»ä¤¬¸ø³«¤·¤Æ¤ëXMEGA¤Î¥µ¥ó¥×¥ë¤Ï¤â¤Á¤í¤ó¤³¤Î¥Ó¥ë¥É¼ê½ç½àµò¤Ç¤¹¡£
¡¡ARM-GCC¤ÎÂå¤ï¤ê¤ËAVRToolchain¤òGCC¥³¥ó¥Ñ¥¤¥é¤È¤·¤Æ»ØÄꤹ¤ë¤À¤±¤Ç¤¹♥
¡ü¥Ç¥¸¥«¥áÇ㤤´¹¤¨¤Þ¤·¤¿
2010ǯ¤Î8·î¤Ë¹ØÆþ¸å¿ôÆü¤ÇÈæ±Ã»³¤ÎÅл³Æ»¤ÎÀФξå¤Ë¤ª¤Ã¤È¤³¤·¤Æ°ÊÍè¤À¤Þ¤·¤À¤Þ¤·
»ÈÍѤ·¤Æ¤¤¤¿¤Í¤à¤¤¤µ¤ó¤ÎIXYDIGITAL220F¤Á¤ã¤ó¤¬Åò¤Î»³²¹Àô¤Î¥Ð¥È¥ë¤ÇÎÏ¿Ô¤
¤È¤¦¤È¤¦½Ä¸þ¤¤Ç¤·¤«»£±Æ¤Ç¤¤Ê¤¯¤Ê¤êE32¥¨¥é¡¼¤âϢȯ¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç
ºÇ¿·¤ÎIXY3¤ËÇ㤤´¹¤¨¤ë±¿¤Ó¤È¤Ê¤ê¤Þ¤·¤¿¡Ä
2ǯ¤¿¤Ä¤ÈÁ´Á³Àǽ¤¬°ã¤¤¤Þ¤¹¤Í¡Ä¤Þ¤Â¤Æ¡Ä¥Þ¥¯¥í»£±Æ¤¬1cm¤Þ¤Ç¤Ç¤¤ë¤Î¤Ç
TFT-LCD¤ÎCOG¤Î²òÀϤËÌòΩ¤Ä¤«¤â¤·¤ì¤Þ¤»¤ó¡ª
¡üº£¤Þ¤ÇÉáÄ̤˻Ȥ¨¤Æ¤¿SD¥«¡¼¥É¤¬µÞ¤Ë½ñ¤¹þ¤ß¶Ø»ß¤Ë¤Ê¤Ã¤¿¤ó¤Ç¤¹¤±¤©¡ª¡ª£±¡ª¡ª
ʪ¤¬¤è¤¯¤Ä¤Ö¤ì¤ë(¿Í¤â)¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¤Í¤à¤¤¤µ¤ó¤¬»È¤Ã¤Æ¤ëPC¤â¾åµ¤Î¾É¾õ¤¬
½Ð¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ä¡£SD¥«¡¼¥É¤Ïǧ¼±¤¹¤ë¤¬¥é¥¤¥È¥×¥í¥Æ¥¯¥È¤¬²ò½ü
½ÐÍ褺½ñ¤¹þ¤ß¶Ø»ß¤Ë¤Ê¤ë¥Ñ¥¿¡¼¥ó¤Ï¤¤¤¯¤Ä¤«¤Î¸¶°ø¤¬¹Í¤¨¤é¤ì¤Þ¤¹¡£
¡SD¥«¡¼¥ÉËÜÂΤΥ饤¥È¥×¥í¥Æ¥¯¥È¥¡¼¤¬LOCK¤Ë¤Ê¤Ã¤Æ¤¤¤ë
¡¡->SD¥«¡¼¥É¤Ë¤Ä¤¤¤Æ¤¤¤ëLOCK¥¡¼¤ÏʪÍýŪ¤Ê¤â¤Î¤ÇSD¥«¡¼¥ÉÆâÉô¤È
¡¡¡¡Åŵ¤Åª¤Ê¤Ä¤Ê¤¬¤ê¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤â¤·¤³¤ì¤¬LOCK¤Î°ÌÃ֤ˤʤäƤ¿¤é
¡¡¡¡¤º¤é¤¹¤Èľ¤ê¤Þ¤¹¡£¤·¤«¤·ÂçÄñ¤Ï¡Ä¤¤Ë³¤¯
¢SD¥«¡¼¥É¥ê¡¼¥À¡¦¥é¥¤¥¿¤Î¥É¥é¥¤¥Ð¦¤¬¥é¥¤¥È¥×¥í¥Æ¥¯¥ÈÀßÄê¤Ë¤·¤Æ¤¢¤ë
¡¡->¤Á¤ç¤Ã¤È¥¤¥ó¥Æ¥ê¥¸¥§¥ó¥¹¤Ê¥«¡¼¥É¥ê¡¼¥À¡¦¥é¥¤¥¿¤Ï¤¿¤Þ¤Ë¥½¥Õ¥È¥¦¥¨¥¢¤Ç
¡¡¡¡¥×¥í¥Æ¥¯¥ÈÀßÄê²Äǽ¤Êµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£°ã¤¦¥«¡¼¥É¥ê¡¼¥À¡¦¥é¥¤¥¿¤À¤ÈÉáÄ̤Ë
¡¡¡¡Æɤ߽ñ¤¤¬¤Ç¤¤ë¼ê¹ç¤¤¤ÎÅۤǤ¹¤Í¡£¥Þ¥Ë¥å¥¢¥ë¤ò¸«¤Æ²ò½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
£Windows¤ò»È¤Ã¤Æ¤ë¾ì¹ç¸ÂÄê¤Ç¥ì¥¸¥¹¥È¥ê¤ÎÀßÄê¤Ç¥é¥¤¥È¥×¥í¥Æ¥¯¥È¤Ë¤·¤Æ¤¤¤ë
->googleÀèÀ¸¤Ëʹ¤¤¤Æ¤¯¤À¤µ¤¤¡Ä
¤SD¥«¡¼¥É¥ê¡¼¥À¡¦¥é¥¤¥È¤Î¥½¥±¥Ã¥È¤ËÌäÂ꤬¤¢¤ê¡¢¾ï¤ËLOCK¾õÂ֤ˤʤäƤ¤¤ë
¡¡->»È¤¤¹þ¤ó¤À¥ê¡¼¥À¥é¥¤¥¿¤ä¥Î¡¼¥ÈPCÉÕ°¤ÎÅۤǤϤ褯¤¢¤ê¤¬¤Á¤Ç¤¹¡£
¡¡¡¡¤Ç¤Ï¤Ê¤ó¤Ç¤³¤ó¤Ê¤³¤È¤Ë¤Ê¤ë¤Î¤«¤òÀâÌÀ¤·¤Þ¤¹¡£
SD¥«¡¼¥É¤ÎÁÞÆþ¸¡ÃÎ(INS)¤È¥é¥¤¥È¥×¥í¥Æ¥¯¥È(WP)¸¡ÃΤϥᥫ¥Ë¥«¥ë¥¹¥¤¥Ã¥Á¤Ç
¹Ô¤ï¤ì¡¢¥«¡¼¥É¥ê¡¼¥À¦¤Ç¤½¤ÎÅÅ°µ¥ì¥Ù¥ë¤òÆɤ߼è¤Ã¤Æ¾õÂÖ¤òȽÃǤ·¤Þ¤¹¡£
INS¤ÈWP¤Î¥Ý¡¼¥È¤ÏÂçÄñ¤Ï3.3V¤Ç¥×¥ë¥¢¥Ã¥×¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥«¡¼¥É̤ÁÞÆþ¾õÂ֤ǤÏINS¤Ï²òÊü¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç3.3V¤Ë¤Ê¤ê¡¢¤Ê¤ª¤«¤ÄWP¤â¾å¼Ì¿¿
¤è¤¦¤Ë²òÊü¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç3.3V¤È¤Ê¤ê¡¢¥í¥¸¥Ã¥¯¥ì¥Ù¥ë¤Ç¤Ï¤É¤Á¤é¤âHI¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¤È¤SD¥«¡¼¥É¤ÎLOCK¥¹¥¤¥Ã¥Á¤òLOCK¤Ë¤·¤Ê¤¤¤ÇÁÞÆþ¤¹¤ë¤ÈINS¤ÏSD
¥«¡¼¥É¥ê¡¼¥À¦¤Î¥½¥±¥Ã¥È¤ÈÅŵ¤Åª¤ËÀÜ¿¨¤·¿®¹æ¥ì¥Ù¥ë¤¬GND¤ËÍî¤Á¤Þ¤¹¡£
Ʊ¤¸¤¯WP¤âÁÞÆþ¤¹¤ë¤ÈSD¥«¡¼¥É¦¤ÎLOCK¥¹¥¤¥Ã¥Á¤ËʪÍýŪ¤Ë²¡¤µ¤ì¤ÆGND¤Ë
Íî¤Á¤Þ¤¹¡£¤³¤Î¾õÂ֤Ǥϥ«¡¼¥É¥ê¡¼¥À¦¤ÏÆɤ߽ñ¤²Äǽ¤ÈȽÃǤ·¤Þ¤¹¡£
°ìÊýSD¥«¡¼¥É¤ÎLOCK¥¹¥¤¥Ã¥Á¤òLOCK¤Î°ÌÃ֤˥¹¥é¥¤¥É¤·¤ÆÁÞÆþ¤·¤¿¾ì¹ç¡¢Æ±¤¸¤¯
WP¤ÎÀÜÅÀ¤È¥½¥±¥Ã¥È¤ÎGND¤¬°ì»þŪ¤Ë²¡¤µ¤ì¤ë¤ï¤±¤Ç¤¹¤¬¿¼¤¯¤Þ¤ÇÁÞ¤¹¤È°ÌÃÖŪ¤Ë
ºÆ¤Ó²òÊü¤µ¤ì¤Æ¥í¥¸¥Ã¥¯¥ì¥Ù¥ë¤¬HI¤ËÌá¤ê¤Þ¤¹¡£
¤³¤Î¾õÂ֤Ǥϥ«¡¼¥É¥ê¡¼¥À¦¤Ï½ñ¤¹þ¤ß¤Î¤ß²Äǽ¤ÈȽÃǤ·¤Þ¤¹¡£
¤Þ¤È¤á¤ë¤È3¤Ä¤Î¾õÂÖ¤¬¤¢¤ë¤³¤È¤¬¤ï¤«¤ê¤Þ¤¹¡£
¡¦¥«¡¼¥É̤ÁÞÆþ
¡¡INS¡¡:HI(3.3V)
¡¡WP¡¡ :HI(3.3v)
¡¦¥«¡¼¥ÉÁÞÆþ(LOCK¤Î°ÌÃ֤ǤϤʤ¤)
¡¡INS¡¡:LOW(0V)
¡¡WP¡¡ :LOW(0v)
¡¦¥«¡¼¥ÉÁÞÆþ(LOCK¤Î°ÌÃÖ)
¡¡INS¡¡:LOW(0V)
¡¡WP¡¡ :HI(3.3v)
¤½¤·¤ÆWP¤ÎÀÜÅÀ¤ÏINS¤è¤ê¤â¹½Â¤¤¬Àȼå¤ÇĹ´ü´Ö»ÈÍѤÇÀÜÅÀ¤ÎÃÆÀ¤ÎÎô²½¡¦»À²½¤Ë¤è¤ë
ÀÜ¿¨ÉÔÎɤòÈó¾ï¤Ëµ¯¤³¤·¤ä¤¹¤¯¡¢¤¢¤ëÆüÆÍÁ³¾ï¤ËHI¥ì¥Ù¥ë(WP͸ú)¤Èǧ¼±¤µ¤ì¤ë¤è¤¦¤Ë
¤Ê¤Ã¤Æ¤·¤Þ¤¤¥é¥¤¥È¥×¥í¥Æ¥¯¥È¾õÂ֤ȤʤäƤ·¤Þ¤¦¤ï¤±¤Ç¤¹¡£
¤³¤ì¤Ë¤Ä¤¤¤Æ¤ÎÂнèÊýË¡¤Ç¤¹¤¬¡¢¤Ä¤Þ¤ê¤ÏÀÜÅÀ¤òÉü³è¤µ¤»¤ì¤Ð¤¤¤¤¤ï¤±¤Ç¤¹¤¬¡¢USB¤Î
¥«¡¼¥É¥ê¡¼¥À»È¤Ã¤Æ¤Æµ¯¤³¤Ã¤¿¿Í¤ÏÇ㤤´¹¤¨¤¿Êý¤¬¼ê´Ö²Ë¤â¶ô¤ï¤º°Â¾å¤¬¤ê¤Ç¤¹¡£
¤·¤«¤·¥Î¡¼¥ÈPCÅù¤Ç´ðÈĤ˥½¥±¥Ã¥È¤¬È÷¤¨ÉÕ¤±¤é¤ì¤Æ¤ë¥¿¥¤¥×¤ÎÅۤϰì¶ìÏ«¤Ç¤¹¡£ÂçÄñ
½¤ÍýÊݾڴü´Ö¤ò²á¤®¤¿¤³¤í¤Ë¾åµ¤ÎÀÜ¿¨ÉÔÎɤ¬È¯À¸¤¹¤ë¤Î¤Ç¾åµ¤Î²Õ½ê¤Î½¤Íý¤Ç¤â¿³Û
¤Î¤ª¶â¤¬¤«¤«¤ë¥±¡¼¥¹¤â¤¢¤ê¤Þ¤¹¡£
¤Í¤à¤¤¤µ¤ó¤Î¾ì¹ç¡¢¹ØÆþ¸å5ǯ°Ê¾å·Ð²á¤·¤Æ¤¤¤¿¤Î¤ÈPC¤Î΢³¸¤ò³°¤¹¤È¥«¡¼¥É¥ê¡¼¥À¡¼
¤Î¥½¥±¥Ã¥È¤¬¼ê¤ÎÆϤ¯°ÌÃ֤ˤ¢¤Ã¤¿¤Î¤Ç¡¢WP¤Îü»Ò¤òƳÅÅÀÉۥơ¼¥×¤ÇµÍ¤á¤Æ¸ÇÄꤷ
GND¤Ë¶¯À©Åª¤ËÍî¤È¤·¤ÆLOCK¥¹¥¤¥Ã¥Á¤Î°ÌÃ֤ˤ«¤«¤ï¤é¤º¾ï¤ËWP²ò½ü¾õÂ֤Ȥ·¤Þ¤·¤¿¡£
ÀÜ¿¨ÉÔÎɤνé´üÃʳ¬¤Î½ñ¤¹þ¤ß¶Ø»ß¤Ë¤Ê¤Ã¤¿¤ê¤Ê¤é¤Ê¤«¤Ã¤¿¤ê¤Î»þ¤ÏÀÜÅÀÉü³è²¦¤Ê¤É¤â
͸ú¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤¤¤º¤ì¤Ë¤·¤Æ¤â¥½¥±¥Ã¥È¤¬¼ê¤¬ÆϤ¯°ÌÃ֤ˤ¢¤ë¾ì¹ç¸ÂÄê¤Ç¤¹¡£
¡üSTM32F4Discovery¤ÇMP3¥×¥ì¡¼¥ä¡¼¤ò¹½ÃÛ¤¹¤ë
Ž¸Ž¸Ž¸¡Ä(by¸°ºÇ¹â)¤â¤¦¤Û¤Ü´°À®¾õÂ֤Ǥ¹¡Ä♥
¤³¤Á¤é¤Ë¤Ä¤¤¤Æ¤Ï·îËö¤¢¤¿¤ê¤ËÊÌÏȤǤޤ¿¤ªÃΤ餻¤·¤Þ¤¹¤Í¡Á
LM4F120¥·¥ê¡¼¥º¤ò»È¤Ã¤Æ¤ß¤ë2¡¡-Stellaris LaunchpadñÂΤÇOpenOCD¤Ç½ñ¤¹þ¤ß¡¦¥Ç¥Ð¥Ã¥°¤ò¹Ô¤¦-
Âౡ¤·¤¿¤é²Ùʪ¤¬¤¤¤í¤¤¤íÆϤ¤¤Æ¤¤¤Þ¤·¤¿¡£
9·îËö¤Ë¹ØÆþ¤·¤¿STM32F3-Discovery¤â¤è¤¦¤ä¤¯Íè¤Æ¤Þ¤·¤¿¡ÄŤ«¤Ã¤¿¡Ä!
ÂΤÎÊý¤â´°Á´¤Ë¸µ¤ËÌá¤Ã¤¿¤Î¤ÇÅ쳤¼«Á³ÊâÆ»¤Î¤Û¤¦¤âºÆ³«¤·¤Æ¤¤¤¤Þ¤¹¤Î¤Ç³§ÍÍÊý
³Ð¸ç¤·¤Æ¤¯¤À¤µ¤¤¡ª
¤µ¤ÆËÜÂê¤ËÆþ¤ê¤Þ¤¹¤¬Æþ±¡Á°¤ËStellaris Launchpad¤Ë¥Ó¥ë¥É¥¤¥ó¤µ¤ì¤¿TI-ICDI¤Î
OpenOCD¤ÎÂбþ¾õ¶·¤Ë¤Ä¤¤¤Æ¾¯¤·¿¨¤ì¤Æ¤Þ¤·¤¿¡£¤¢¤Î»þ´°À®´Ö¶á¤À¤Ã¤¿¤Î¤Ç¤â¤¦
¥³¥ß¥Ã¥È¤µ¤ì¤Æ¤ë¤è¤Í¤È»×¤Ã¤¿¤éº¹¤·Ìᤷ¤Ç¤Þ¤À¥ì¥Ó¥å¡¼Ãæ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤Ê¤ó¤À¤«¥ê¥ê¡¼¥¹»þ´ü¤Ë¤Ä¤¤¤ÆÙæ¤á¤Æ¤ë¤è¤¦¤Ç¤¹¤¬¡¢»ä¤¿¤Á¥æ¡¼¥¶¥µ¥¤¥É¤â
¥Ñ¥Ã¥Á¤òÍî¤È¤·¤Æ»î¤¹¤³¤È¤¬¤Ç¤¤ë¤Î¤Ç¤É¤ó¤Ê´¶¤¸¤«»î¤·¤Æ¤ß¤Þ¤·¤¿¡£
°ÊÁ°¤ÎLuminary-ICDI¤È°ã¤¦ÅÀ¤ÏJTAG¥Ç¥Ð¥¤¥¹¤È¤·¤Æ»È¤¦¥Á¥Ã¥×¤¬FTDI¤Î¤Ç¤Ï¤Ê¤¯¡¢
LM4F¥Þ¥¤¥³¥ó¤Î¥Õ¥¡¡¼¥à¥¦¥¨¥¢¤È¤·¤Æºî¤ê¤³¤Þ¤ì¤Æ¤¤¤Æ¥É¥é¥¤¥Ð¤âTI¤Î¥×¥í¥×¥é¥¤
¥¨¥¿¥ê¤Êʪ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÅÀ¤ÏSTLink/V2¤¬OpenOCD¤Ç»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿
·Ð°Þ¤È¤ª¤ó¤Ê¤¸¤Ç¤¹¤Í¡£¤³¤Á¤é¤âTI¤Î¥¹¥¿¥Ã¥Õ¤Î½õÎϤβ¼TI-ICDI¤ò᤯¤¿¤á¤Î
API¤òÄ󶡤·¤Æ¤â¤é¤Ã¤ÆOpenOCD¤Î¾å°Ì¤Î¥ì¥¤¥ä¡¼¤È²¼Â̹ç¤ï¤»¤ò¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤·¤ÆAPI¤ò»È¤Ã¤Æ¥¢¥¯¥»¥¹¤¹¤ë¤Î¤¬STLink/V2¤À¤±¤Ç¤Ï¤Ê¤¯¤Ê¤ë¤Î¤ÇÈÆÍÑŪ¤Ê
¥ì¥¤¥ä¤Ç¤¢¤ëstlink_swd¤«¤éhla_swd¤Ø¤È¥È¥é¥ó¥¹¥Ý¡¼¥È¤Î̾¾Î¤¬ÊѤï¤Ã¤Æ¤Þ¤¹
(OpenOCD¤Î¥³¥ó¥Õ¥£¥°¤ÎÄêµÁ¤ò¾¯¤·½ñ¤´¹¤¨¤ëɬÍפ¬½Ð¤ëÄøÅ٤αƶÁ¤Ç¤¹¤¬)¡£
»ÈÍѤ¹¤ë¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤ÏTIÄ󶡤ΥǥХ¤¥¹¥É¥é¥¤¥Ð¤¬¤½¤Î¤Þ¤Þ
ÍøÍѲÄǽ¤Ç¤¹¡£OpenOCD¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Î¤ÏJTAGÀܳ¤Î¤ß¤ÇSWD¤Ï
̤¥µ¥Ý¡¼¥È¤Ê¤Î¤Ç¤´Ãí°Õ¤ò¡£
¤Æ¤ï¤±¤ÇÁᮽñ¤¹þ¤ß¡¦¥Ç¥Ð¥Ã¥°¤·¤Æ¤ß¤Þ¤·¤¿¡£
> "C:¥Devz¥Coreutils¥bin¥make.exe" program
openocd -s C:/Devz/ARM/OCD/tcl -f target/ek-lm4f120xl_flash.cfg -c "mt_flash main.elf"
Open On-Chip Debugger 0.7.0-dev-00089-gd6d4283-dirty (2012-11-16-14:13)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
adapter speed: 1000 kHz
Info : clock speed 1000 kHz
Info : ICDI Firmware version: 9270
Info : lm4f120h5qr.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000280 msp: 0x20008000
auto erase enabled
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000042 msp: 0x20008000
wrote 33792 bytes from file main.elf in 2.059203s (16.026 KiB/s)
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20008000
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20008000
verified 33216 bytes in 0.561601s (57.759 KiB/s)
shutdown command invoked
> Process Exit Code: 0
> Time Taken: 00:03
º£²ó¤ÎTI-ICDI¤ÎÂбþ¤òµ¡¤Ëɽ¼¨¤µ¤ì¤ë¾ðÊ󤬾ܤ·¤¤Êª¤ËÊѤï¤Ã¤Æ¤Þ¤¹¤Í¡£
¤ï¤º¤«¤Ê¿Í¤Î¤ß¤¬µ¤¤Å¤¤¤Æ¤¤¤¿¤è¤¦¤Ç¤¹¤¬º£²ó¤Î½ñ¤¹þ¤ß¤Ë»È¤Ã¤¿¥Æ¥¹¥ÈÍѤÎ
¥Õ¥¡¡¼¥à¤Ï¼Â¤ÏÆþ±¡Ä¾Á°¤ËUART¤Î¥ë¡¼¥Á¥ó¤âÄɲ䷤Ƥޤ·¤¿¡£
ChaN»á¤ÎLPC2388¸þ¤±UART-FiFo¤ò°Ü¿¢¤·¤Æ¤Þ¤¹¡£
¤â¤Á¤í¤ó¤¤¤Ä¤â¤Î¥Ç¥Ð¥Ã¥°´Ä¶¤â¼«Í³¼«ºß¤Ç¤¹¡£
Ìà¤âTI¤Î¾ì¹ç¤ÏIDE´Ä¶¤¬Èó¾ï¤Ë½¼¼Â¤·¤Æ¤ë¤Î¤Ç̵Íý¤ä¤ê»ä¤Î¹Ô¤Ã¤Æ¤ë´Ä¶¤Ë
¤·¤Ê¤¤¤Ç¥á¡¼¥«¡¼¶àÀ½¤Î³«È¯´Ä¶¤Î¤Þ¤Þ¤Ç¤âÎɤ¤¤«¤È»×¤¤¤Þ¤¹¡£
¤Ä¤¤¤Ç¤Ç¤¹¤¬ËÁƬ¤ÎSTM32F3Discovery¤Ç¤âƱ¤¸¤³¤È¤·¤Æ¤ß¤Þ¤·¤¿¤³¤Á¤é¤Ï
¤ª¤Ê¤¸¤ß¤ÎSTLink/V2¤¬¥Ó¥ë¥É¥¤¥ó¤µ¤ì¤Æ¤Þ¤¹¡£
> "C:¥Devz¥Coreutils¥bin¥make.exe" program
openocd -s C:/Devz/ARM/OCD/tcl -f target/stm32f3x_stlink_flash.cfg -c "mt_flash main.elf"
Open On-Chip Debugger 0.7.0-dev-00089-gd6d4283-dirty (2012-11-16-14:13)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_nogate srst_open_drain
Info : clock speed 1000 kHz
Info : STLINK v2 JTAG v16 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000708 msp: 0x10002000
adapter speed: 8000 kHz
auto erase enabled
Info : device id = 0x10036422
Info : flash size = 256kbytes
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x10002000
wrote 6144 bytes from file main.elf in 0.624001s (9.615 KiB/s)
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x10002000
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x10002000
verified 4172 bytes in 0.171600s (23.743 KiB/s)
shutdown command invoked
> Process Exit Code: 0
> Time Taken: 00:02
¤³¤Á¤é¤â¾Ü¤·¤¤É½¼¨¤ËÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤¤¤Ä¤â¤Î¡£
STM32F3-Discvoery¤â¤Þ¤¿Ê̤˻þ´Ö¤ò³ä¤¤¤Æ¤´¾Ò²ð¤¹¤ë¤Ä¤â¤ê¤Ç¤¹¤Î¤Ç¤³¤¦¤´´üÂÔ¡ª
º£²ó¤Î¸¡¾Ú¤Ë»È¤Ã¤¿OpenOCD¤Ï¥Æ¥¹¥ÈÈǤʤΤǸø³«¤·¤Æ¤¤¤Þ¤»¤ó¤¬
Windows´Ä¶¤ò»ý¤Ã¤Æ¤ë¿Í¤Ç»î¤·¤Æ¤ß¤¿¤¤Êý¤ÏÏ¢Íí¤¯¤À¤µ¤¤¡£
¤µ¤é¤Ë¤Ä¤¤¤Ç¤Ç¤¹¤¬LM4FÍѤÎioview¤ÇGPIO¤Î½ÐÎϥ쥸¥¹¥¿¤ò¥Ó¥Ã¥Èñ°Ì¤Ç
ɽ¼¨½ÐÍè¤ë¤è¤¦¤Ë¹¹¿·¤·¤Þ¤·¤¿¡£
-
ÌÈÀÕ¡¦Ï¢ÍíÀè¤Ï¢¬¤Î¥ê¥ó¥¯¤ò
¢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)
- ÆüËܤμ«Á³ÊâÆ» (25)
- 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)
- 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.