Cortex-M3 Application |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Update history - 2013.6.19 : Ãʱâ Release |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. STM32F10x Overview 1.1 STM32F10x Block Diagram 1.2 STM32F10x Memory Map 1.3 STM32F10x Boot Modes 2. STM32F103VC Dragon°³¹ßº¸µå ¼Ò°³ 2.1 Features 3. ÇÁ·Î±×·¥ ´Ù¿î·Îµå ¹æ¹ý 3.1 JTAGÀ» ÀÌ¿ëÇÑ ´Ù¿î·Îµå ¹æ¹ý 3.2 STM32F ½Ã¸®ÁîÀÇ internal ISP(UART0) ¸¦ ÀÌ¿ëÇÑ ¹æ¹ý |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3. ÇÁ·Î±×·¥ ´Ù¿î·Îµå ¹æ¹ý 3.1 JTAGÀ» ÀÌ¿ëÇÑ ´Ù¿î·Îµå ¹æ¹ý 3.1.1 ST-Link/V2 (1) ST-Link USB Driver Download and install - http://www.st.com/web/en/catalog/tools/PF258167 (2) ST-Link Utility Download and install - http://www.st.com/web/en/catalog/tools/PF258168 (3) ST-Link/V2 Utility Program ¼³Ä¡ - STM32 ST-LINK Utility_v2.5.0.exe (4) ST-Link/V2 USB µå¶óÀ̹ö ¼³Ä¡ - st-link_v2_usbdriver.exe - Windows7 ÀÇ °æ¿ì ÀåÄ¡ µå¶óÀ̹ö°¡ ÀÚµ¿À¸·Î ¼³Ä¡ µÇÁö ¾ÊÀ» °æ¿ì¿¡ µå¶óÀ̹ö ¼ÒÇÁÆ®¿þ¾î ¾÷µ¥ÀÌÆ®¸¦ ¼öÇà ÇÕ´Ï´Ù. (4) ST-Link/V2 Firmware upgrade (5) Program Fusing with ST-Link/V2 ST-Link/V2ÀÇ 20ÇÉ JTAG CableÀ» Dragon °³¹ßº¸µåÀÇ CPU ¸ðµâ¿¡ ÀÖ´Â 20ÇÉ JTAG ¹Ú½º Çì´õ¿¡ ¿¬°á ÇÏ°í ST-Link Utility ¿¡¼ "Mode Setting" ¸Þ´º¿¡¼ "SWD" ¸ðµå·Î ¼³Á¤ ÇÕ´Ï´Ù. ÀϹÝÀûÀ¸·Î´Â STM32F ½Ã¸®Áî¿¡¼ "JTAG" ¸ðµå·Î ¼³Á¤Çصµ µÇÁö¸¸ Dragon °³¹ßº¸µå¿¡¼´Â JTAG ÇÉÀÇ ÀϺθ¦ LCD Á¦¾î½Ã »ç¿ëÇÏ°í Àֱ⠶§¹®¿¡ ¹Ýµå½Ã "SWD" ¸ðµå·Î ¼³Á¤À» ÇØ¾ß ÇÕ´Ï´Ù. ±×¸®°í Connect Target À» ½ÇÇà ÇÕ´Ï´Ù. ´Ù¿î·Îµå ÇÒ bin ÆÄÀÏÀ» ¼±Åà ÇÕ´Ï´Ù. - Âü°í·Î IAR ÄÄÆÄÀÏ·¯ ȯ°æ¿¡¼´Â bin ÆÄÀÏÀ» »ý¼ºÇϱâ À§Çؼ´Â Ouput Converter ¿¡¼ ¾Æ·¡ ±×¸²°ú °°ÀÌ Binary ÆÄÀÏ »ý¼º ¿É¼ÇÀ» ¼³Á¤ÇØ ÁÖ¾î¾ß bin ÆÄÀÏÀÌ »ý¼ºÀÌ µË´Ï´Ù. - Dowload & Veriry ¸¦ ½ÇÇà ÇÕ´Ï´Ù. - IAR, KEIL µîÀÇ °³¹ßȯ°æ°ú Á÷Á¢ ¿¬µ¿À» ÇÏÁö ¾ÊÀ» °æ¿ì¿¡´Â ST-Link Utility ¸¦ ÀÌ¿ëÇؼ ½ÇÇà binary¸¦ ´Ù¿î·Îµå ¹ÞÀ» ¼ö ÀÖ½À´Ï´Ù. (6) EWARM Debug Environment - ST-Link/V2 - Debugger ¿¡¼ Driver¸¦ ST-Link ¸¦ ¼±Åà ÇÕ´Ï´Ù. - ST-Link ¼³Á¤¿¡¼ "SWD" ¸ðµå·Î ¼³Á¤À» ÇÕ´Ï´Ù. - ST-Link/V2 Á¦Ç°Àº IAR ¿¡¼ »ç¿ëÇÒ °æ¿ì 6.20 ÀÌ»óºÎÅÍ ¿¬µ¿À» ÇÒ¼ö ÀÖ½À´Ï´Ù. 3.1.2 ARM-JTAG (1) ARM-JTAG Utility ¼³Ä¡ (2) JICE Server ÇÁ·Î±×·¥ ½ÇÇà - ARM-JTAGÀÇ 20ÇÉ JTAG CableÀ» Dragon °³¹ßº¸µåÀÇ CPU ¸ðµâ¿¡ ÀÖ´Â 20ÇÉ JTAG ¹Ú½º Çì´õ¿¡ ¿¬°á ÇÏ°í JICE Server ÇÁ·Î±×·¥À» ½ÇÇà ÇÕ´Ï´Ù. - Windows 7ÀÇ °æ¿ì ¹Ýµå½Ã °ü¸®ÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàÇØ¾ß ÇÕ´Ï´Ù. - ¿¬°áÀÌ Á¤»óÀûÀ̶ó¸é Core ID ¸¦ ÀÐ¾î ¿É´Ï´Ù. - Core ID°¡ ÀоîÁöÁö ¾Ê´Â ´Ù¸é ¾Æ·¡¿Í °°ÀÌ JICE Server ¸¦ ¼³Á¤ÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù. (3) JICE Configuration - Debug Port Configuration - Tap Configuration (4) JICE Commander (5) Easy Flashloader ¼³Á¤ STM32F103VC(STM32F10xxC) or STM32F103ZE(STM32F10xxE) Áß¿¡¼ ¼±Åà ÇÕ´Ï´Ù. - ´Ù¿î·ÎµåÇÒ Binary ¼³Á¤ - Start Download ¸¦ ½ÇÇàÇÏ¸é ¸ÕÀú Flash¸¦ EraseÇÏ°í ³ª¼ ¼±ÅÃÇÑ ¹ÙÀ̳ʸ® ÆÄÀÏÀ» ´Ù¿î·Îµå ÇÕ´Ï´Ù. (6) EWARM Debug Environment - ARM-JTAG - Debugger ¿¡¼ Driver¸¦ RDI À» ¼±Åà ÇÕ´Ï´Ù. - RDI µå¶óÀ̹ö¸¦ ¼³Á¤ ÇÕ´Ï´Ù. - Easy Flashloader ¿¡¼ "Flash Download Before Debugging" À» üũ ÇÕ´Ï´Ù. - IAR °³¹ßȯ°æ¿¡¼ "Download and Debugging" À» ½ÃÀÛÇϸé "Check Flash Download State!" ½ÇÇàâÀÌ ³ª¿À°Ô µÇ°í JICE Commander¿¡¼ ´Ù¿î·Îµå°¡ Á¤»óÀûÀ¸·Î ÀÌ·ç¾î Á³´Ù¸é "PASS" ¹öÆ°À» Ŭ¸¯ ÇÕ´Ï´Ù. - IAR °³¹ßȯ°æ¿¡¼ Debugging ȸé ARM-JTAG ÀÇ »ç¿ëÀÇ °æ¿ì Windows7 ȯ°æ¿¡¼ÀÇ º¸´Ù ÀÚ¼¼ÇÑ È¯°æ ¼³Á¤Àº ¾Æ·¡ URLÀ» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù. http://www.jkelec.co.kr/http://www.jkelec.co.kr/img/lecture/cortex_app/img/jtag/arm/armjtag/arm_jtag_manual.html 3.2 STM32F ½Ã¸®ÁîÀÇ internal ISP(UART0) ¸¦ ÀÌ¿ëÇÑ ¹æ¹ý STM32F ½Ã¸®ÁîÀÇ CPUµéÀº º°µµÀÇ JTAG Àåºñ¾øÀÌ ³»Àå ISP ±â´ÉÀ» ÀÌ¿ëÇؼ bin ÆÄÀÏÀ» ´Ù¿î·Îµå ÇÒ¼ö ÀÖ½À´Ï´Ù. (1) ISP ¸ðµå·Î ÁøÀÔ ´Ù¿î·Îµå ¸ðµå·Î ÁøÀÔÇϱâ À§Çؼ´Â ¾Æ·¡ ±×¸²°ú °°ÀÌ Boot0 Á¡ÆÛ¸¦ ISP ¶ó°í µÇ¾î ÀÖ´Â À§Ä¡ ¼¼ÆÃÇÏ°í PC¿Í ¿¬°á ÇÕ´Ï´Ù. Dragon Bottom º¸µå°¡ ÀÖÀ»°æ¿ì¿¡´Â Bottom º¸µåÀÇ UART Æ÷Æ®¿¡ ¿¬°áÀ» ÇÏ¸é µË´Ï´Ù. Drgon Bottom º¸µå¿¡´Â PL2303 USB to Serial Æ÷Æ®°¡ ³»Àå µÇ¾î ÀÖ½À´Ï´Ù. (2) PL2303 USB to Serial µå¶óÀ̹ö ¼³Ä¡ - PL2303_Prolific_DriverInstaller_v1210.exe (3) "STMicroelectronics flash loader.exe" ÇÁ·Î±×·¥À» ¼³Ä¡ÇÏ°í ½ÇÇà ÇÕ´Ï´Ù. - Parity : "Even" , Baud Rate : "115200" À¸·Î ¼³Á¤ - Binary or Hex ÆÄÀÏÀ» ¼±Åà ÇÏ°í º¸ÅëÀº "Erase necessary pages" ¸¦ ¼±Åà ÇÏ¸é µË´Ï´Ù. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||