สามารถเข้าเยี่ยมชมได้ที่
ใช้ Drupal 6.4 + ธีม Four Seasons ที่ทำการปรับแต่งเล็กน้อย
Technology, Computer, Open Source, Linux, Electronics, Embedded Systems, RTOS, Microcontroller
ใช้ Drupal 6.4 + ธีม Four Seasons ที่ทำการปรับแต่งเล็กน้อย
http://www.standardics.nxp.com/support/design/microcontrollers/
มีที่น่าสนใจคือ
- Li-ion Battery Charger
- LCD Controller
แต่เบื้องหลังการทำงานจริงๆ การแปลงดังกล่าวถูกกระทำโดยโปรแกรม
Ghostscript ซึ่งเราสามารถทำการแปลงด้วยบรรทัดคำสั่งง่ายๆ ดังนี้
gswin32c -r100 -g826x1170 -sOutputFile=OCR_%03d.jpg -sDEVICE=jpeg
-dBATCH -dNOPAUSE
myfile.pdf
โดยที่ -r100 คือ Resolution 100 pixels/inch และ -g826x1170 คือขนาด
826x1170 pixels ซึ่งในทีนี้ก็คือขนาดประมาณหน้าขนาด A4
ถ้าต้องการได้ภาพที่ละเอียดขึ้นก็สามารถแก้เป็น -r200 -g1652x2340 เป็นต้น
บทความนี้จะเน้นสำหรับ STM32 (ARM Cortex-M3) จากค่าย ST นะครับ
http://www.paintyourdragon.com/uc/osxstm32/index.html
ยกเว้นขั้นตอนการ Build และ Install GCC และ Newlib
สามารถหลีกเลี่ยงไม่ให้เกิดปัญหาตามที่ระบุในข้อที่ 3
โดยการสร้างไดเรกทอรีใหม่สำหรับ Build แทนที่จะทำการ Build
ภายในไดเรกทอรีซอร์สโค้ดโดยตรง ดังนั้นในขั้นตอนที่ 2 ให้แก้เป็น
cd ~/Desktop/stm32/gcc-4.3.1 (or present GCC version)
ln -s ../newlib-1.16.0/newlib . (ditto, and note there's a
space before the period)
mkdir -p ~/Desktop/stm32/gcc-4.3.1-build (make build directory for GCC)
cd ~/ Desktop/stm32/gcc-4.3.1-build
../gcc-4.3.1/configure --prefix=/usr/local/stm32 --target=arm-none-eabi \
--enable-languages=c --enable-multilib \
--disable-libgomp --disable-libmudflap --disable-libssp \
--disable-libstdcxx-pch --disable-nls --disable-shared \
--disable-threads --with-gnu-as --with-gnu-ld \
--with-float=soft --with-newlib
(The entire "configure" block needs to be entered as a single
command. The end-of-line backslashes should allow you to copy and
paste the text from this page to the Terminal window.)
make (This will take a bit longer than the others…have a
sandwich or walk the dog or something.)
sudo make install
อย่างไรก็ตาม คนที่ใช้ Linux อยู่ แทนที่จะใช้ CodeSourcery G++ Lite
Edition เข้าใจว่าเป็นตัวเดียวในตอนนี้ (2008/08/22) ที่ฟรีและรองรับ ARM
Cortex ก็สามารถคอมไพล์ตามขั้นตอนดังกล่าวได้เช่นเดียวกัน (ผมลองกับ
Debian Etch)
ส่วนใครที่ใช้ Windows ก็อาจจะลองนำไปคอมไพล์ดูได้นะครับ