ÀÌ ¸Å´º¾óÀº JKÀüÀÚ(JK Electronics) ¿¡ ÀÇÇؼ­ ¹ø¿ª, ¼öÁ¤, ÀÛ¼º µÇ¾ú°í ¼ÒÀ¯±Ç ¶ÇÇÑ
JKÀüÀÚ(JK Electronics)
ÀÇ °ÍÀÔ´Ï´Ù. ¼ÒÀ¯±ÇÀÚÀÇ Çã°¡¸¦ ¹ÞÁö ¾Ê°í ¹«´ÜÀ¸·Î ¼öÁ¤, »èÁ¦Çϰųª ¹èÆ÷ ÇÒ ¼ö ¾ø½À´Ï´Ù.

 

 

Cortex-M4 STM32F407IGT6 ¿µ»óó¸® °³¹ßº¸µå ¸Þ´º¾ó - USB


 
* Update history

- 2012.4.25 : Ãʱâ Release


 

4. S/W Å×½ºÆ® ¹æ¹ý
4.8 USB Mass Storage with internal RAM
4.9 USB HID
4.10 USB Mass Storage with SD Memory
4.11 USB Mass Storage with NAND Flash
4.12 USB HOST HID Å°º¸µå
4.13 USB HOST Storage



   
  4.8 USB Mass Storage with internal RAM
(1) /Examples/USB/Device/Memory -- RL-ARM ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÏÁö ¾ÊÀº ¿¹Á¦ ¼Ò½º
(2) /Examples/USB/Device/RTX/Memory -- RL-ARM ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÑ ¿¹Á¦ ¼Ò½º
(3) ³»ºÎ RAMÁß¿¡¼­ 30KB ¸¦ Mass Storage·Î ÀÎ½Ä Çϵµ·Ï ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(4) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB ¹Ì´ÏÆ÷Æ® J18(full-speed) or J19(high-speed) ¸¦ PCÀÇ USB Æ÷Æ®¿¡ ¿¬°á ÇÕ´Ï´Ù.
(5) USB Device Å×½ºÆ®½Ã¿¡´Â ¿ÜºÎ Àü¿øÀ¸·Î ºÎÆÃÀ» ÇÑ ÀÌÈÄ¿¡ USB ÄÉÀ̺íÀ» ¿¬°áÇϸé Á¤»óÀûÀ¸·Î µ¿ÀÛ ÇÏÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã J18 or J19 ¸¦ ÅëÇؼ­ °³¹ßº¸µå¸¦ ºÎÆà ÇØ¾ß ÇÕ´Ï´Ù.
(6) ÄÄÆÄÀÏ ½Ã¿¡ KEIL °³¹ßȯ°æ¿¡¼­ full-speed¿Í high-speed¸¦ ±¸ºÐÇؼ­ ÄÄÆÄÀÏ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â PC À©µµ¿¡¼­ Mass Storage·Î µ¿ÀÛÇÏ´Â È­¸é

stm32f407igt6

4.9 USB HID
(1) /Examples/USB/Device/HID -- RL-ARM ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÏÁö ¾ÊÀº ¿¹Á¦ ¼Ò½º
(2) /Examples/USB/Device/RTX/HID -- RL-ARM ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÑ ¿¹Á¦ ¼Ò½º
(3) USB ClassÁß HID class ÀÀ¿ë ¿¹Á¦
(4) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB ¹Ì´ÏÆ÷Æ® J18(full-speed) or J19(high-speed) ¸¦ PCÀÇ USB Æ÷Æ®¿¡ ¿¬°á ÇÕ´Ï´Ù.
(5) USB Device Å×½ºÆ®½Ã¿¡´Â ¿ÜºÎ Àü¿øÀ¸·Î ºÎÆÃÀ» ÇÑ ÀÌÈÄ¿¡ USB ÄÉÀ̺íÀ» ¿¬°áÇϸé Á¤»óÀûÀ¸·Î µ¿ÀÛ ÇÏÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã J18 or J19 ¸¦ ÅëÇؼ­ °³¹ßº¸µå¸¦ ºÎÆà ÇØ¾ß ÇÕ´Ï´Ù.
(6) ÄÄÆÄÀÏ ½Ã¿¡ KEIL °³¹ßȯ°æ¿¡¼­ full-speed¿Í high-speed¸¦ ±¸ºÐÇؼ­ ÄÄÆÄÀÏ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â PC À©µµ¿¡¼­ USB HID ÀåÄ¡·Î ÀÎ½ÄµÈ È­¸é

stm32f407igt6

°³¹ßº¸µå¿Í ÇÔ²² Á¦°øµÇ´Â "CD\PC-Software\HID_Client\Release\HIDClient.exe" ¸¦ ½ÇÇà ÇÕ´Ï´Ù. ½ÇÇàÆÄÀÏ°ú VC++ ¼Ò½º¿Í ÇÔ²² Á¦°ø ÇÏ°í ÀÖ½À´Ï´Ù.

- Output Å×½ºÆ® : OutputsÀÇ 0¹ø ºñÆ®¸¦ Check Çϸé CPU¸ðµâÀÇ LED1ÀÌ ONÀÌ µÇ°í Uncheck LED1ÀÌ OFF µË´Ï´Ù.

stm32f407igt6

- Input Å×½ºÆ® : °³¹ßº¸µåÀÇ USER, TEMPER, WKUP ¹öÆ°À» ´©¸£¸é Â÷·Ê´ë·Î Inputs ÀÇ ÇÏÀ§ ºñÆ®µéÀÌ Check, Uncheck µË´Ï´Ù.

stm32f407igt6


4.10 USB Mass Storage with SD Memory

(1) /Examples/USB/Device/Memory_FlashFS\SD_Memory
(2) °³¹ßº¸µåÀÇ SD¸Þ¸ð¸® ÀÎÅÍÆäÀ̽º¸¦ ÀÌ¿ëÇؼ­ PC¿¡¼­ °³¹ßº¸µå¸¦ Mass Storage·Î ÀÎ½Ä Çϵµ·Ï ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(3) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB ¹Ì´ÏÆ÷Æ® J19(high-speed) ¸¦ PCÀÇ USB Æ÷Æ®¿¡ ¿¬°á ÇÕ´Ï´Ù.
(4) USB Device Å×½ºÆ®½Ã¿¡´Â ¿ÜºÎ Àü¿øÀ¸·Î ºÎÆÃÀ» ÇÑ ÀÌÈÄ¿¡ USB ÄÉÀ̺íÀ» ¿¬°áÇϸé Á¤»óÀûÀ¸·Î µ¿ÀÛ ÇÏÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã J19 ¸¦ ÅëÇؼ­ °³¹ßº¸µå¸¦ ºÎÆà ÇØ¾ß ÇÕ´Ï´Ù.

- ¹Ýµå½Ã SW3, SW4 ¸¦ ¾Æ·¡ ±×¸²°ú °°ÀÌ SD ÂÊÀ¸·Î Á¡ÆÛ¸¦ Short ½ÃÄÑ¾ß SD¸Þ¸ð¸®¸¦ »ç¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â PC À©µµ¿¡¼­ Mass Storage·Î µ¿ÀÛÇÏ´Â È­¸é

stm32f407igt6

4.12 USB HOST HID Å°º¸µå

(1) /Examples/USB/Device/Memory_FlashFS\NAND_Memory
(2) °³¹ßº¸µåÀÇ NANDÇ÷¡½Ã¸¦ ÀÎÅÍÆäÀ̽º¸¦ ÀÌ¿ëÇؼ­ PC¿¡¼­ °³¹ßº¸µå¸¦ Mass Storage·Î ÀÎ½Ä Çϵµ·Ï ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(3) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB ¹Ì´ÏÆ÷Æ® J19(high-speed) ¸¦ PCÀÇ USB Æ÷Æ®¿¡ ¿¬°á ÇÕ´Ï´Ù.
(4) USB Device Å×½ºÆ®½Ã¿¡´Â ¿ÜºÎ Àü¿øÀ¸·Î ºÎÆÃÀ» ÇÑ ÀÌÈÄ¿¡ USB ÄÉÀ̺íÀ» ¿¬°áÇϸé Á¤»óÀûÀ¸·Î µ¿ÀÛ ÇÏÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã J19 ¸¦ ÅëÇؼ­ °³¹ßº¸µå¸¦ ºÎÆà ÇØ¾ß ÇÕ´Ï´Ù.

- ¹Ýµå½Ã SW5, SW6 ¸¦ ¾Æ·¡ ±×¸²°ú °°ÀÌ BL ÂÊÀ¸·Î Á¡ÆÛ¸¦ Short ½Ãŵ´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â PC À©µµ¿¡¼­ Mass Storage·Î µ¿ÀÛÇÏ´Â È­¸é

stm32f407igt6

4.11 USB Mass Storage with NAND Flash

(1) /Examples/USB/Device/Memory_FlashFS\NAND_Memory
(2) °³¹ßº¸µåÀÇ NANDÇ÷¡½Ã¸¦ ÀÎÅÍÆäÀ̽º¸¦ ÀÌ¿ëÇؼ­ PC¿¡¼­ °³¹ßº¸µå¸¦ Mass Storage·Î ÀÎ½Ä Çϵµ·Ï ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(3) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB ¹Ì´ÏÆ÷Æ® J19(high-speed) ¸¦ PCÀÇ USB Æ÷Æ®¿¡ ¿¬°á ÇÕ´Ï´Ù.
(4) USB Device Å×½ºÆ®½Ã¿¡´Â ¿ÜºÎ Àü¿øÀ¸·Î ºÎÆÃÀ» ÇÑ ÀÌÈÄ¿¡ USB ÄÉÀ̺íÀ» ¿¬°áÇϸé Á¤»óÀûÀ¸·Î µ¿ÀÛ ÇÏÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã J19 ¸¦ ÅëÇؼ­ °³¹ßº¸µå¸¦ ºÎÆà ÇØ¾ß ÇÕ´Ï´Ù.

- ¹Ýµå½Ã SW5, SW6 ¸¦ ¾Æ·¡ ±×¸²°ú °°ÀÌ BL ÂÊÀ¸·Î Á¡ÆÛ¸¦ Short ½Ãŵ´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â PC À©µµ¿¡¼­ Mass Storage·Î µ¿ÀÛÇÏ´Â È­¸é

stm32f407igt6

4.12 USB HOST HID Å°º¸µå

(1) /Examples/USB/Host/HID_Kb
(2) °³¹ßº¸µåÀÇ USB È£½ºÆ® ÀÎÅÍÆäÀ̽º¸¦ Å×½ºÆ® ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(3) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB È£½º½º Æ÷Æ® J20(full-speed) ¿¡ USB Å°º¸µå¸¦ ¿¬°á ÇÏ°í °³¹ßº¸µåÀÇ LCD â¿¡ º¸¿©Áö´Â ¸í·ÉÀ» ÀÔ·Â ÇÕ´Ï´Ù.
(4) USB Å°º¸µå Å×½ºÆ®¸¦ Á¾·áÇÏ´Â ¹æ¹ýÀº USB Å°º¸µå¿¡¼­ ESC Å°¸¦ ÀÔ·Â ÇÕ´Ï´Ù.

¾Æ·¡´Â °³¹ßº¸µåÀÇ LCDâ¿¡ ³ªÅ¸³­ USB HID Å°º¸µå ±¸µ¿ ¿¹Á¦ ÀÔ´Ï´Ù.

stm32f407igt6

4.13 USB HOST Storage

(1) /Examples/USB/Host/MSD_File
(2) °³¹ßº¸µåÀÇ USB È£½ºÆ® ÀÎÅÍÆäÀ̽º¸¦ Å×½ºÆ® ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.
(3) Å×½ºÆ® ¹æ¹ýÀº °³¹ßº¸µåÀÇ USB È£½º½º Æ÷Æ® J20(full-speed) ¿¡ USB ¸Þ¸ð¸® ½ºÆ½ µîÀ» ¿¬°á ÇÕ´Ï´Ù.
(4) PC¿Í °³¹ßº¸µåÀÇ UART3À» ¿¬°áÇÏ°í ÇÏÀÌÆÛ Å͹̳ÎÀ» 115200bps ·Î ¿¬°á ÇÕ´Ï´Ù.

- °³¹ßº¸µåÀÇ UART3À» »ç¿ëÇϱâ À§Çؼ­´Â ¹Ýµå½Ã SW3, SW4 ¸¦ ¾Æ·¡ ±×¸²°ú °°ÀÌ UART ÂÊÀ¸·Î Á¡ÆÛ¸¦ Short ½Ãŵ´Ï´Ù.

stm32f407igt6

¾Æ·¡´Â ÇÏÀÌÆÛ Å͹̳ο¡ °³¹ßº¸µå¿¡ ¿¬°áµÈ USB ¸Þ¸ð¸® ½ºÆ½ÀÇ ÆÄÀÏ ³»¿ëÀ» º¸¿© ÁÖ´Â È­¸é ÀÔ´Ï´Ù.

stm32f407igt6