STM32 Primer2¤òBARE-METAL¤Ç»È¤Ã¤Æ¤ß¤ë5 -FatFs¤Î¼ÂÁõ-

¤â¤È¤â¤ÈBARE-METAL¤Ç¼è¤êÁȤà¤Î¤ò·è¤á¤¿¤¤¤­¤µ¤Ä¤Ï¡¢Chan»á¤ÎLPC2388¸þ¤±¤Î
OLEDɽ¼¨¥×¥í¥°¥é¥à¤ò"STM32¤ÇºÆ¸½¤Ç¤­¤¿¤éÁÇŨ¤¸¤ã¤Ê¤¤¤«"¤Ã¤Æ¹½ÁÛ¤«¤é
»Ï¤Þ¤Ã¤Æ¾¯¤·¤º¤Ä¼Â¸½¤·¤ÆÍ褿¤ï¤±¤Ç¤¹¤¬,STM32Primer2¤Ç¤âºÆ¸½¤·¤Æ¤ß¤¿¤¤¡ª
¤È¤¤¤¦»×ÏǤ«¤é¤Ï¤¸¤Þ¤Ã¤Æ¤Þ¤¹¡Ä¡£

º£²ó¤½¤ÎÍפǤ¢¤ëFatFs¤Î¼ÂÁõ¤Ë¤È¤ê³Ý¤ê¤Þ¤·¤¿¡£STM32F107VCT6¤Ç¤ÏSD¥«¡¼¥É¤Î
¥¢¥¯¥»¥¹¤ËSPI¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤·¤¿¤¬STM32Primer2(STM32F103VET6)¤Ç¤ÏSDIO
¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬ÅëºÜ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¤³¤Á¤é¤ò»È¤¤¤Þ¤¹¡£
¤Þ¤¿SDIO¤Î¥É¥é¥¤¥Ð¤ÏST¥Þ¥¤¥¯¥í¤µ¤óËܲȤ«¤éMassStorageClass¤Î¥Ç¥â¤Î·Á¤Ç
Ä󶡤µ¤ì¤Æ¤¤¤ë¤Î¤ÇRowley¤Î¥µ¥¤¥È¤Ë¤¢¤ë°Ü¿¢Îã¤ò¼êËÜni
"¥²¥¿"¹ç¤ï¤»¤ò¹Ô¤¤¤Þ¤·¤¿¡£(¥Ù¡¼¥¹¤ÏSTM32F107VCT6¤ÎFatFs)

LCD¤Î»þ¤è¤ê¤«¤Ï¼ê¤³¤º¤é¤º¤Ë°Ü¿¢¤Ï´°Î»¤·¤Þ¤·¤¿¡£¤¬¡¢¤¤¤¯¤Ä¤«°ú¤Ã¤«¤«¤ëÅÀ¤¬¡Ä

­¡³ä¤ê¹þ¤ßÈǤÎUART-Tx¤ò»È¤¦¤Èxprintf´Ø¿ô¤ò¼Â¹Ô¤·¤¿¤È¤­¤¦¤Þ¤¯É½¼¨¤Ç¤­¤Ê¤¤
¡¡¤¤¤í¤¤¤í¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¤¬Ê¸»ú¤ÎÁ÷¿®¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤«¤Ã¤¿¤Î¤ÇÀ޳ѳä¤ê¹þ¤ßÈǤò¤³¤µ
¡¡¤¨¤¿¤Î¤Ë¥Ý¡¼¥ê¥ó¥°ÈǤËÌᤷ¤¿orz(Rx¤Ï³ä¤ê¹þ¤ß¤Ç¤âÌäÂê¤Ê¤·)
»ä¤Î·Ð¸³¤ÈÃ챤Î̵¤µ¤Ï¤³¤¦¤¤¤¦·Á¤Çɽ¤ì¤Æ¤¯¤ëorz

20100317:FIFO¥Ð¥Ã¥Õ¥¡¤Î½èÍý¤¬ÉÔ´°Á´¤Ê¤À¤±¤Ç¤·¤¿orz

­¢RTC¤Î½é´ü²½¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤¤
¡¡STM32Primer2¤ÏÅÅÎϾÃÈñ¤òÍÞ¤¨¤ë¤¿¤á¤ËVbat¼þÊդβóÏ©¤âƱ¤¸¤¯Äã¾ÃÈñÅÅÎϲ½¤µ¤ì¤Æ
¡¡¤¤¤Þ¤¹¡£°ÊÁ°¤Î²óÏ©¤Ç¤Ï¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¿¥Ð¥Ã¥¯¥¢¥Ã¥×ÊýË¡¤Ïº£²ó¤ÏÆ°¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
¡¡¶ñÂÎŪ¤Ë¸À¤¦¤È¥Ð¥Ã¥¯¥¢¥Ã¥×¥ì¥¸¥¹¥¿¤Ë¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¤ò½ñ¤¤¤Æ¤ª¤¤¤Æ¤½¤Î̵ͭ¤Ç¥Ð¥Ã
¡¡¥¯¥¢¥Ã¥×¤µ¤ì¤Æ¤¤¤ë¤«È½Äꤷ¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢STM32Primer2¤Î²óÏ©¤À¤È¤½¤³¤¬Àµ¤·¤¯
¡¡Æɤá¤Ê¤¤¡Ä»ÅÊý¤Ê¤¤¤Î¤Ç¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¤¬½ñ¤«¤ì¤Æ¤¤¤ë¤«¤ÎȽÄêÉôʬ¤Ïºï½ü¤·¤Æ¤ª¤¯
¡¡¤È»þ¹ï¾ðÊó¤Ï¤«¤í¤¦¤¸¤ÆÊÝ»ý¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¤Ò¤È¤Þ¤º¤³¤ì¤Ç¿Ê¤á¤ë¤³¤È¤Ë¡Ä

³«È¯¤¬Íî¤ÁÃ夤¤¿¤é¥Ð¥°½Ð¤·¤Ä¤¤¤Ç¤Ë¾åµ­2ÅÀ¤ÎÌäÂꤪ¤Ã¤«¤±¤Þ¤¹¡£ÆäËÂ礭¤Ê»Ù¾ã¤Ï
¤Ê¤¤¤Î¤Çº£¤ÏÂкö¤òÊÝα¡Ä¡£

20100317¡§RTC¤Î½é´ü²½¤ËÌäÂ꤬¤¢¤Ã¤Æ¥Ð¥Ã¥¯¥¢¥Ã¥×¥ì¥¸¥¹¥¿¤Ø¤Î½ñ¤­¹þ¤ß¤ò
¡¡¡¡¡¡¡¡¡¡ ¶Ø¤¸¤¿¾õÂ֤ǽñ¤³¤¦¤È¤·¤Æ¤Þ¤·¤¿orz



¤È¤ê¤¢¤¨¤ºFatFs¤¬Æ°¤¤¤¿¤Î¤ÇÆɤ߹þ¤ßžÁ÷®ÅÙ¤ÎÈæ³Ó¤ò¹Ô¤Ã¤Æ¤ß¤Þ¤·¤¿¡£»ÈÍѤ·¤¿
SD¥«¡¼¥É¤ÏATPÀ½¤Î4GBSDHC¥«¡¼¥É¡£Class6¤Î¤â¤Î¤Ç¤¹¡£Èæ³Ó¸¡¾ÚÍѤΥե¡¥¤¥ë¤Ï
L»á¤Îweb¥é¥¸¥ª¡¢"L¤ÎÆú΢¥Ô¥¢¥Î¥é¥¸¥ª"¤òÏ¿²»¤·¤¿mp3¥Õ¥¡¥¤¥ë(132MByte)¤ò
»ÈÍѤ·¤Þ¤·¤¿¡£

un
¢¬¤Þ¤ºSTM32F107VCT6¤Î(SPI,18MHz,DMA»ÈÍÑ)¤Ç¡Ä¤Þ¤º¤Þ¤º¤Ç¤¹¡£

un
¢¬¼¡¤Ëº£²óSTM32 Primer2¤Ë¼ÂÁõ¤·¤¿¤Î(SDIO,4bitmode,24MHz,DMA»ÈÍÑ)¡Ä¤¢¤ì¤ì¡¢»×¤Ã¤¿¤Û¤É¿­¤Ó¤Þ¤»¤ó¤Ç¤·¤¿¤Í¡Ä¡£
º£¤¹¤°²¼¤ÎÊý¸«¤í¡ª¡ª¡ª£±£±¡ª

un
¢¬ºÇ¸å¤ËChan»á¤ÎLPC2388ÍÑMCI¥¢¥¯¥»¥¹¥×¥í¥°¥é¥à(MCI,4bitmode,18MHz,DMA)
¤¦¤¦¤à¡Ä¤Ö¤Ã¤Á¤®¤ê¤Ç¤¹¤Ê¤¡¡Ä¡£

STM32¤ÎSDIO¤Ï¤â¤Ã¤È¿­¤Ó¤ë¤È¤ª¤â¤¦¤ó¤Ç¤¹¤±¤É¤É¤Ã¤«¤Ç¥Õ¥óµÍ¤Þ¤ê¤Ë¤Ê¤Ã¤Æ
¤¤¤ë¤è¤¦¤Ç¤¹¤ÍŽ¥Ž¥Ž¥¤Þ¤¡¸½¾õ¤Ç¤â½½Ê¬¤¹¤®¤ë¤Î¤Ç¤³¤Á¤é¤Î·ï¤Ï°Ê¸å¤Î²þÁ±²ÝÂê
¤È¤·¤Æ¤ª¤­¤Þ¤¹¡£




¤È¤¤¤¦¤ï¤±¤Ç¥Þ¥ë¥Á¥»¥¯¥¿Å¾Á÷¤Ë¤Á¤ã¤ì¤ó¤Â¤·¤Æ¤ß¤Þ¤·¤¿¡Ä


¡Á¾®°ì»þ´Ö¸å¡Á

un
¢¬
¤ä¤Ð¤¤Ä¶Áᤤ♥


20111111ÄÉ¡§
»þ¤Ïή¤ì¡¢STM32F4¤Ç¤Ï48MHz¤ÎSDIO¥¯¥í¥Ã¥¯¤Ç¤â°ÂÄꤷ¤ÆÆ°¤«¤»¤é¤ì¤ë
¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¢Ìó21Mbyte/Sec¤ÎÆɤ߽Ф·Â®ÅÙ¤ò¾ï¤Ë¤¿¤¿¤­½Ð¤·¤Æ¤Þ¤¹¡ª


¼¡²ó¤Ïº£¤Þ¤Ç¸¡¾Ú¤·¤Æ¤­¤¿À®²Ì¤ò¤¹¤Ù¤ÆÁȤ߹ç¤ï¤»¡¢BARE-METAL¤Ê¥×¥í¥¸¥§¥¯¥È¤Î
ÅþãÌÜɸ¤È¤·¤Æ¤¤¤¿Primer2ÍÑ¥Õ¥©¥È¥Õ¥ì¡¼¥à¤ÎÀ©ºî¤ËÄ©¤ß¤Þ¤¹¡£

Comments

]¦Ø¡¦¡Ë¡¡¤Á¤é¤Ã

]¢Þ¡¡¤µ¤Ã

  • 2009/11/18 12:41 PM

>]¢Þ¡¡¤µ¤Ã
¤¢!¿ʬÆÚ¤µ¤ó¤Á¤ç¤¦¤É¤¤¤¤½ê¤Ë¡Á¡ª¤¢¤Î¤Í¡¢¤¦¤Á¤Î¥³¥Ä¥á¤Á¤ã¤ó¤¬
¡È¤Þ¤µ¤«ËÜÅö¤Ë¾ÆÆڽФ¹¤È¤Ï»×¤ï¤Ê¤«¤Ã¤¿¡¢¤Ç¤âÆÚÆùŽµŽ²Ž¼Ž²ŽÃŽÞŽ½!¡É
¤Ã¤ÆÆÚ¤µ¤ó¤ËÅÁ¤¨¤Æ¤Û¤·¤¤¤Ã¤Æ¡ª

¤³¤ó¤Ë¤Á¤ï¡ª
¤¤¤Ä¤â³Ú¤·¤¯¸«¤»¤Æ夤¤Æ¤Þ¤¹¡£
£È£Ð¤ò¸«¤Æ夤¤Æ¤¢¤ê¤¬¤È¡¼¤´¤¶¤¤¤Þ¤¹¡ª
10MB/SEC¤Ï»ä¤Ç¤Ï½Ð¤»¤Þ¤»¤ó¤Ç¤·¤¿£÷
ËÜÅö²¿¤Ë»È¤¦¤ó¤À¤Ã¤Æ°Ì¤ËĶÁᤤ¤Ç¤¹¤Í£÷

¥¢¥·¥Ã¥ÉÍÍ¡¡¤Ï¤¸¤á¤Þ¤·¤Æ¡¢¤Í¤à¤¤¤Ç¤¹¡£
»ä¤â¤¤¤í¤¤¤í»²¹Í¤Ë¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡ª

Æ°²è¤Ë¼ê¤ò½Ð¤¹¤ÈSD¥«¡¼¥É¤Î¥¢¥¯¥»¥¹¥¹¥Ô¡¼¥É¤âÈó¾ï¤Ë
½ÅÍפʥե¡¥¯¥¿¡¼¤Ë¤Ê¤ê¤Þ¤¹¤Í¡£
»ä¤¬¤³¤Îµ­»ö¤ÇÈæ³Ó¤Ë»ÈÍѤ·¤¿¤Î¤ÏATPÀ½¤Î¡ÖAF4GUD¡×
¤È¤¤¤¦MicroSDHC¤Ç¤¹¡£¤³¤ì¤ÏClass10¤¬ºöÄꤵ¤ì¤ë°ÊÁ°
¤ËÈÎÇ䤵¤ì¤¿Class6¤ÊÂåʪ¤Ç¤¹¤¬¡¢¤´Í÷¤Î¤È¤ª¤êClass10
Ê¤Υ¹¥Ô¡¼¥É¤ò᤭¤À¤»¤ë¤Î¤Çµ¤¤Ë¤¤¤Ã¤Æ¤Þ¤¹¡£¡£

Post a Comment








Go to top of page