|
1. WindowsCE 6.0 development environment
1.1 Installation Windows Embedded CE 6.0
ÀÚ¼¼ÇÑ ¼³Ä¡ °úÁ¤Àº
¿©±â Installation Windows CE Install Guide À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.
1.2 Install BSP- °³¹ßº¸µå¸¦ ±¸¸ÅÇÑ ³¯Â¥°¡ 2012³â 2¿ù ÀÌÀüÀÎ °æ¿ì
(1) Á¦°øÇÏ´Â CD-ROM¿¡¼ "\WindowsCE6\SMDK6410" µð·ºÅ丮¸¦ "C:\WINCE600\PLATFORM\" ¿¡ º¹»ç ÇÕ´Ï´Ù. (2) Á¦°øÇÏ´Â CD-ROM¿¡¼ "\WindowsCE6\S3C6410_SEC_V1" µð·ºÅ丮¸¦ "C:\WINCE600\PLATFORM\COMMON\SRC\SOC\" ¿¡ º¹»ç ÇÕ´Ï´Ù.
- °³¹ßº¸µå¸¦ ±¸¸ÅÇÑ ³¯Â¥°¡ 2012³â 2¿ù ÀÌÈÄÀÎ °æ¿ì (1) Á¦°øÇÏ´Â CD-ROM¿¡¼ "\WindowsCE6\Mini6410-WinCE6-Suite-1146.zip" ÆÄÀÏÀ» ¾ÐÃà ÇØÁ¦ ÈÄ ½ÇÇàÇϸé À§ÀÇ (1), (2) ´Ü°è°¡ ÀÚµ¿À¸·Î ½ÇÇà µË´Ï´Ù.
- °³¹ßº¸µå¸¦ ±¸¸ÅÇÑ ³¯Â¥¿Í »ó°ü¾øÀÌ µ¿ÀÏÇÏ°Ô ÁøÇà
(3) Á¦°øÇÏ´Â CD-ROM¿¡¼ "WindowsCE6\Project" ¾ÈÀÇ ¸ðµç ÆÄÀϵéÀ» "C:\WinCE600\OSDesigns\" ¿¡ º¹»ç ÇÕ´Ï´Ù. (4) "C:\WINCE600\PLATFORM\COMMON\SRC\SOC\" Æú´õÀÇ "dirs" ÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ ÇÕ´Ï´Ù.
"C:\WINCE600\PLATFORM\COMMON\SRC\SOC\dirs" ÆÄÀÏ ³»¿ë
ÇÁ·ÎÁ§Æ®ÀÇ ±âº» ¾ð¾î ¼³Á¤Àº "ÇѱÛ" ·Î ¼³Á¤ µÇ¾î ÀÖ½À´Ï´Ù. º¹ ÀÌÈÄÀÇ µð·ºÅ丮 ±¸Á¶ ÀÔ´Ï´Ù.
1.3 Ä¿³Î ÄÄÆÄÀÏ
Windows CE Ä¿³Î ÄÄÆÄÀÏÀº ÀÌÀü 1.2Àý¿¡¼ ¼³Ä¡Çß´ø BSP¸¦ ÀÌ¿ëÇؼ ÄÄÆÄÀÏ ÇÕ´Ï´Ù.
Windows ½ÃÀÛ¸Þ´º¿¡¼ "Program" > "Microsoft Visual Studio 2005" ¸¦ ½ÇÇà ÇÕ´Ï´Ù. À̶§ ÇÁ·Î±×·¥À» °ü¸®ÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàÇØ¾ß ÇÑ´Ù´Â ¸Þ¼¼Áö âÀÌ ³ª¿É´Ï´Ù.
ÇÁ·Î±×·¥ ½ÇÇà½Ã °ü¸®ÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàÇØ ÁÖ±â À§Çؼ VS2005 ´ÜÃà ¾ÆÀÌÄÜ È¤Àº ½ÃÀÛ¸Þ´ºÀÇ ÇÁ·Î±×·¥¿¡¼ µî·Ï Á¤º¸¿¡¼ ȣȯ¼º üũ¸¦ ÇÏ°í ½ÇÇà ÇÕ´Ï´Ù.
File-> Open-> Project/Solution ¸¦ ½ÇÇà ÇÕ´Ï´Ù.
"C:\WINCE600\OSDesigns\Mini6410-en" ÇÁ·ÎÁ§Æ® ¼Ö·ç¼Ç ÆÄÀÏÀ» ¼±Åà ÇÏ°í
"Build-> Advanced Build Commands-> Clean Sysgen" ¸¦ ½ÇÇàÇÏ¿© Ä¿³Î ÄÄÆÄÀÏÀ»
½ÃÀÛ ÇÕ´Ï´Ù. ÀÌ°ÍÀº ¾ð¾î¸¦ ¿µ¾î·Î ¼³Á¤Çؼ ±âº»À¸·Î ÄÄÆÄÀÏ ÇÏ´Â °ÍÀÔ´Ï´Ù. ¾ð¾î¸¦ Çѱ¹¾î µîÀ¸·Î ¼öÁ¤Çϱâ À§Çؼ´Â 1.4 Ä¿³Î
Ä¿½ºÅ͸¶ÀÌ¡À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.
Ä¿³Î ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é C:\WINCE600\OSDesigns\Mini6410\Mini6410\RelDir\Mini6410_ARMV4I_Release µð·ºÅ丮¿¡ NK.bin, NK.nb0 ÆÄÀÏÀÌ »ý¼º µË´Ï´Ù.
1.4 Ä¿³Î Ä¿½ºÅ͸¶ÀÌ¡
1.4.1 ¾ð¾î¼³Á¤°ú ±¹°¡ ÄÚµå ¼öÁ¤
"Project" > "Properties" ¿¡¼ "Locales", "Default locale" À» Çѱ¹¾î·Î ¼öÁ¤ ÇÕ´Ï´Ù.
"Catalog Items View" ¿¡¼ Çѱ¹¾î ÆùÆ®¿Í ÀԷ±⸦ Ãß°¡ ÇÕ´Ï´Ù.
1.4.2 LCD Type¿¡ µû¸¥ BSP ÄÚµå ¼öÁ¤
°³¹ßº¸µåÀÇ Windows CE BSP¿¡¼´Â ¾Æ·¡¿Í °°Àº LCD¸¦ Áö¿øÇÏ°í ÀÖ½À´Ï´Ù.
- NEC 4.3 "LCD with touch
- Toppoly 3.5 "LCD with touch
- Innolux 7 "LCD with touch
- Sharp 8 "LCD (or compatible) with touch
- LCD2VGA adapter modules: the respective 1024x768, 800x600, 640x480 resolution, three
- EZVGA: A Simple VGA adapter plate to support the 800x600 (or less) resolution output
LCDÁ¾·ù°¡ ¿©·¯°¡ÁöÀ̱⠶§¹®¿¡ ÄÄÆÄÀÏ ÇÒ¶§ LCDÁ¾·ù¿¡ µû¶ó¼ "\SMDK6410\SRC\INC\options.h" ÆÄÀÏÀ» ¼öÁ¤ ÇØ¾ß ÇÕ´Ï´Ù.
//#define LCD_T35 - the default for NEC4.3 "LCD
//#define LCD_L80
//#define LCD_A70
//#define LCD_VGA1024768
//#define LCD_VGA800600
//#define LCD_VGA640480
//#define LCD_EZVGA
½Ã¸®¾ó Æ÷Æ® ±â´ÉµîÀ» »ç¿ëÀÚ°¡ ¼±Åà ÇÒ ¼ö ÀÖ½À´Ï´Ù.
// --- by customer
#define KITL_NONE - default
//#define KITL_SERIAL_UART0
//#define KITL_SERIAL_UART1
1.4.3 ÅÍÄ¡ ¹æ½Ä¿¡ µû¸¥ BSP ÄÚµå ¼öÁ¤
LCDÅÍÄ¡¸¦ °³¼±Çϱâ À§Çؼ ¿ì¸®´Â LCDÄÁÆ®·Ñ·¯ ¸ðµâ¿¡ touch screen controller chip ADS7843¸¦
»ç¿ë Çß½À´Ï´Ù. ÀÌ°ÍÀº PWM1(GPF15)¿¡ ¿¬°áµÇ¾î ÀÖ½À´Ï´Ù. ¶ÇÇÑ ÀÌ ÀåÄ¡¸¦ À§ÇÑ µå¶óÀ̹ö(touch_1wire.dll)¸¦
ÄÄÆÄÀÏ Çϱâ À§Çؼ´Â ¾Æ·¡°ú °°Àº ¼öÁ¤ ÀÛ¾÷ÀÌ ÇÊ¿ä ÇÕ´Ï´Ù.
¡°C:\WINCE600\PLATFORM\SMDK6410\SMDK6410.bat" ÆÄÀÏÀ» ¼öÁ¤ ÇÕ´Ï´Ù.
set BSP_NOTOUCH=
set BSP_NOTOUCH_ADC=1
set BSP_NOTOUCHCOM=1
set BSP_NOTOUCH_1WIRE=
serial port touch screen controls¸¦ »ç¿ëÇÑ´Ù¸é ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ Çϼ¼¿ä. serial port
touch screen controls ¸¦ ÀÌ¿ëÇϱâ À§Çؼ´Â º°µµÀÇ ¿ÜºÎ ÅÍÄ¡ ÄÁÆ®·Ñ·¯¸¦ ¿¬°áÇØ¾ß ÇÕ´Ï´Ù.
set BSP_NOTOUCH=
set BSP_NOTOUCH_ADC=1
set BSP_NOTOUCHCOM=
set BSP_NOTOUCH_1WIRE=1
1.4.4 About bootloader
Nboot(À̸§¸¸ Nboot¶ó´Â À̸§À» »ç¿ëÇÏ°í ÀÖ°í, ½ÇÁ¦·Î´Â Eboot ÀÔ´Ï´Ù.)¼Ò½ºÄÚµå À§Ä¡´Â
C:\WINCE600\PLATFORM\SMDK6410\SRC\BOOTLOADER ¿¡ÀÖ°í ¿©±â¿¡´Â 2°³ÀÇ ¼Ò½º µð·ºÅ丮°¡
ÀÖ½À´Ï´Ù. ¶ÇÇÑ Nboot.nb0 ÆÄÀÏÀÇ Çü½ÄÀº ADS compiler¿¡¼ »ý¼ºÇÑ bin Æ÷¸Ë°ú µ¿ÀÏ ÇÕ´Ï´Ù.
- nbootRAM128 : 128MB DDR RAM¿ë ¼Ò½º
- nbootRAM256 : 256MB DDR RAM¿ë ¼Ò½º
À§ÀÇ 2°³ÀÇ ºÎÆ®·Î´õ´Â Ä¿³Î ÄÄÆÄÀϽà °°ÀÌ ÄÄÆÄÀÏÀÌ µË´Ï´Ù. NBoot´Â ÀϹÝÀûÀ¸·Î NANDÇ÷¡½ÃÀÇ Block 0 ¿¡
Write°¡ µÇ°í ºÎÆýà ½ÇÇàµÇ°í, WinCE Ä¿³ÎÀ» ·ÎµùÇÏ¿© ½ÇÇà ÇÕ´Ï´Ù. »ï¼ºÀüÀÚ¿¡¼ ±âº»ÀûÀ¸·Î ÀÌ Äڵ带 Á¦°ø ÇÏ¿´°í
¿ì¸®´Â ¸¹Àº °³¼±À» ÇÏ¿´½À´Ï´Ù.
- Support for fast display boot screen
- Load WinCE kernel to support dynamic progress bar
- Quick Start WinCE
SMDK6410\SRC\IN\options.h ÆÄÀÏÀ» ¼öÁ¤Çؼ NbootÀÇ ¿©·¯°¡Áö »çÇ×À» ¼öÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
// Background color setting
#define BACKGROUND_R 0x00
#define BACKGROUND_G 0x00
#define BACKGROUND_B 0x7F
// Progress bar color setting
#define PROGRESS_BAR_R 0xFF
#define PROGRESS_BAR_G 0xFF
#define PROGRESS_BAR_B 0x00
// Boot logo position
#define LOGO_POS_TOP 0
#define LOGO_POS_LEFT 0
// Progress bar position
#define PROGRESS_BAR_TOP 240
#define PROGRESS_BAR_LEFT 50
#define PROGRESS_BAR_WIDTH 400
#define PROGRESS_BAR_HEIGHT 4
CEºÎÆ®·Î´õ¸¦ Ä¿³Î°ú ÇÔ²² ÄÄÆÄÀÏÀ» ÇÏ¸é ¸¹Àº ½Ã°£ÀÌ ¼Ò¿ä µÇ¹Ç·Î Nboot ¸¸ µû·Î ÄÄÆÄÀÏ ÇÏ¸é ½Ã°£À» Àý¾à ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Nboot ¼Ò½ºµð·ºÅ丮¿¡¼ ¿À¸¥ÂÊ ¸¶¿ì½º¸¦ Ŭ¸¯ ÇÑ´ÙÀ½ "Build" ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù.
1.4.5 Build SDK
ÀϹÝÀûÀ¸·Î WinCE¿ë ÀÀ¿ë ¾îÇø®ÄÉÀÌ¼Ç °³¹ßÀÚµéÀº Ÿ°Ù °³¹ßº¸µå¿¡ ¸Â´Â SDK°¡ ÇÊ¿ä ÇÕ´Ï´Ù. À§¿¡¼ ÄÄÆÄÀÏÇÑ Ä¿³Î¿¡ ¸Â´Â SDK¸¦ »ý¼ºÇØ º¸µµ·Ï ÇÕ´Ï´Ù.
SDKºôµå°¡ ¿Ï·áµÇ¸é "C:\WINCE600\OSDesigns\mini6410\mini6410\SDKs\mini6410sdk" µð·ºÅ丮¿¡ "Mini6410-CE6-SDK.msi" ÆÄÀÏÀÌ »ý¼º µË´Ï´Ù.
1.4.6 Install SDK
1.4.5¿¡¼Ã³·³ SDK¸¦ ´Ù½Ã ºôµåÇÑ SDK¸¦ ¼³Ä¡ Çϰųª CD ROM¿¡ ÀÖ´Â ÆÄÀÏÀ» »ç¿ëÇصµ µË´Ï´Ù. SDK¼³Ä¡´Â ¾ÆÁÖ °£´Ü ÇÕ´Ï´Ù. ´ÜÁö "Mini6410-SDK.msi" ¸¦ ½ÇÇà Çϱ⸸ ÇÏ¸é µË´Ï´Ù.
"Next" ÁøÇà
"Accept" ¼±ÅÃÇÏ°í "Next" ÁøÇà
Á¤º¸ ÀÔ·ÂÇÏ°í "Next" ÁøÇà
"complete" ¸¦ ¼±ÅÃÇؼ ÁøÇà
"Next" ¼±ÅÃÇؼ ¼³Ä¡ ½ÃÀÛ
SDK ¼³Ä¡°¡ ¿Ï·á µÇ¾ú½À´Ï´Ù. º¸Åë Windows CE 6.0ÀÇ SDKÀÇ ¼³Ä¡ µð·ºÅ丮´Â "C:\Program Files\Windows CE Tools\wce600" ¿¡ ¼³Ä¡°¡ µË´Ï´Ù.
CE 5.0ÀÇ SDK ¼³Ä¡ µð·ºÅ丮´Â "C:\Program Files\Windows CE Tools\wce500" ÀÔ´Ï´Ù.
|