Wednesday, June 23, 2010

ARM SAM3U-EK F.W. Download, 2010/06/23

昨天將 Atmel SAM3U-EK Board Firmware Upgrade To 1.1 (原 1.0) 後, MP3 Player 似乎還是不能 Play SD 的 Media File(Flash 的 Media 可以 Play), 不過用 USB 連線後 PC Side 倒是可以認到 SAM3U-EK 有兩個 Partition, 而且都可以 Access (R/W), 經由 Uart 也可以 Run DM Code(Unstable! Just Runnable Only),Atmel 原廠的 DM Code 實在是太過精簡了, 除了 Thermal, Back-light, 幾乎沒啥可玩.
Upgrade F.W. 方式記錄一下 :
1. PC Side 要先安裝 SAM-BA (目前裝的是 v2.9)
2. SAM3U-EK Side Power Up 前 Short JP1, Then Power Up(此時 LCD Panel 不會 Show 東西), Power Up 後再 Open JP1.
3. 接上 USB (PC<->SAM3U-EK), PC Side 會自動 Identify USB Device And Install Driver.
4. 開啟 SAM-BA Program, Then Follow Instruction 就可以了 (就是要 Access Flash 前要 Select Enable Access Flash And Run Once)
5. Select 要燒錄的 F.W. (.bin Format), Then Send To Flash.
6. Plug Out USB And Power Off Then Power On Again.
就這樣囉, 不過 DM Code 要燒兩塊 Flash, Follow F.W. 中的 Readme File 操作就行了.

今天一直找 SAM3U-EK 的 Bootstrap Document, 喵了一下, 和之前用的 Mxx 公司的有點像, 一樣是 Init USB And Then Wait Download And...., 接下來就是要驗證了, 要找個 sample Code And Tool Build 一下看能不能 Run.

1. Sample Code : 基於 Atmel SAM3U4E 的 CoOS 示例, 有 IAR / MDK / GCC 三種版本, 實在不想再裝 Realview, IAR 之前玩過, Gilbert And Checko 都說是非主流, 就剩 GCC Ver 囉.
Link : http://www.coocox.org/CN/EXAMPLE/ATMEL_GCC.htm

2. Compiler : 嘗鮮一下, 用 coocox 提供的 CoBuilder.
Link : http://www.coocox.org/CN/CooCox_Builder.htm

用 CoBuilder Build Sample Code 可以直接 Build 過, Build 完後會生成一個 xxx.bin, 然後用 Upgrade SAM3U-EK F.W. 方式將 Build 出的 Binary File 燒到 Flash 0, 可以正常執行.

目前對 Atmel SAM3U-EK Survey 結果 :
1. H.W. : 目前還欠些 Component, Ex : Ethernet, Keyboard, 要自己兜的話要得花時間, 而且這顆是 Cortex M3 Only, 沒有 MMU, MPU Only.
2. S.W. : 沒有 MMU 加上 RAM 又不大, Task Switch 又不想自己搞, 剩下就是要找個夠小又夠穩的 OS 了, coocox / uCOS / FreeRTOS.

Monday, June 21, 2010

AVR32 Studio 2.5 安裝

在 http://www.atmel.com/dyn/products/tools_card_v2.asp?tool_id=4116 Link 中提到 AVR32 Studio 2.5 是 "Built on Eclipse"..., Download Unzip 後 Install 說要 Java 才可以 Install, 又是 Java..., Java 的老爸都離開 sun 了...., 無奈的到 java.sun.com download j2sdk, 已經到 JDK6 Update 20 了, 抓抓抓....., 真的是像 Checko 說的, EClipse 變成 Embedded Developer Tools Standard 了, 那ㄟ安ㄋㄟ...., Embedded 為了 Cross Platform 還真的是給他 Java 用下去.

J2SDK 安裝沒什麼變, 一樣是 JDK 先 Then JRE, 接著回頭裝 AVR Studio 2.5, Java 裝了之後可以 Install 了,

若 Download :
AVR32 Studio 2.5 for Windows (205 MB, revision 2.5, updated 2/10)
AVR32 Studio for Windows.
的話 Unzip 後就可以直接 Run(Green version).

AVR32 Studio Installer :
AVR32 Studio 2.5 for Windows (installer) (203 MB, revision 2.5, updated 2/10)
AVR32 Studio installer for Windows.
無論是用 Installer Or Green Version, AVR32 Studio 一開始 Run 就會問 Default Workspace Path,

不過若沒有裝 AVR32 Toolchain 直接執行的話會有 Error Message :
Error Message 1:
Cannot determine search path for executable. Is the AVR32/GNU Toolchain installed?
See 'Details' for more information.

Error Message 2:
avr32program: (Need version 4.1 or newer)
avr32gdbproxy: (Need version 4.1 or newer)
avr32-gdb: (Need version 6.7 or newer)
avr32-g++: (Need version 4.3 or newer)
avr32-gcc: (Need version 4.3 or newer)
avr32-as: (Need version 2.19 or newer)
avr32-nm: (Need version 2.19 or newer)
avrfwupgrade: (Need version 2.0 or newer)

There are multiple problems with dependent executables or path settings. Please consult the user guide for details.

AVR32 Studio could not locate a AVR32/GNU Toolchain on your host. Please make sure that a compatible version is installed and restart AVR32 Studio.


補裝上 AVR32 GNU Toolcain 2.4.2
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4118
(這個 Package 會裝個 USB 的 Driver.) 然後再啟動 AVR32 Studio 後就會出現 :

Message :

AVR32 Studio has checked your system to ensure the proper versions of required utilities are in place.

avr32program: Found version 4.1.0
avr32gdbproxy: Found version 4.1.0
avr32-gdb: Found version 6.7.1.atmel.1.0.4
avr32-g++: Found version 4.3.2
avr32-gcc: Found version 4.3.2
avr32-as: Found version 2.19.20081016
avr32-nm: Found version 2.19.20081016
avrfwupgrade: Found version 2.0.0

You are using the MinGW version of the AVR32 Utilities and AVR32/GNU Toolchain.

Have fun!

以上 Information Version List 和原先所 show 的 Error Message 的 Version Requirement 核對後是 Match 的.

Sunday, June 20, 2010

There is no SDK with the name or path 'macosx10.6'

原本 Build And Run OK 的 Xcode Sample Code "Hello" 今天 Build 卻出現 Error :
There is no SDK with the name or path 'macosx10.6'

google 到這篇 : http://forums.pragprog.com/forums/132/topics/3790
so : 依照 Project > Set Active SDK > Mac OS X 10.5 設定 Build..., OK.

但為何之前會 Build 過呢? 應該是之前用的是 Xcode 3.2.3, 今天開到了 Xcdoe 3.1.3 了, 在今天所開的 Xcode 的 Menu Xcode->Abuot Xcode..., 果然是 3.1.3.

我負責

 ... + ...........  政策 我負責. 負責推卸責任. (阿不然你以為哩...) 聽說 記錯了 請見諒 深感抱歉.... 抗(國外)疫(苗)中...