使用SAM-BA調試的初始步驟_第1頁
使用SAM-BA調試的初始步驟_第2頁
使用SAM-BA調試的初始步驟_第3頁
使用SAM-BA調試的初始步驟_第4頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、使用SAM-BA調試的初始步驟AT91SAM7S板可以使用SAM-BA?軟件通過DBGU或者USB口編譯。但是AT91SAM7S 系列芯片,出廠后并沒有將SAM-BA Boot 固件復制到FLASH 存儲器的頭兩個區(qū),所以當第一次通過USB 連接目標板和PC 機的時候,需要按照“以下的步驟來復制SAM-BA Boot 固件到FLASH 并運行。1. 1.關閉AT91SAM7S板電源; 2. 2.把板上的TST跳線連接; 3. 3.打開AT91SAM7S板電源; 4. 4.等10秒; 5. 5.關閉AT91SAM7S板電源; 6. 6.把板上的TST跳線斷開; 7. 7.打開AT91SAM7S板

2、電源; 8. 8.安裝USB驅動程序:插上USB線,將提示“無法識別的硬件”,此時可以安裝atm6124驅動程序 9. 9.打開“SAM-BA GUI”,就可以接著使用USB口下載文件到AT91SAM7S板。SAM-BA調試的硬件要求:-· DBGUG的硬件要求 o 使用320MHz的石英震晶(軟件自調適);· - USB的硬件要求 o 使用18.432MHz的石英震晶; o USB的PIOA16口需要上拉電阻;SAM-BA Notes V1.0 - May 2005The below procedure is applicable to: AT91SAM7S32 &

3、; AT91SAM7S64 starting from rev E (product ID: 58814E)AT91SAM7S128 & AT91SAM7S256 starting from rev C (product ID: 58818C) Getting Started with SAM-BA on the SAM7S-EK Evaluation KitThe AT91SAM7S-EK is ready to use the SAM-BA software through DBGU or USB. Before being able to use SAM-BA

4、, a recovery procedure which consists of copying the SAM-BA Boot Assistant into Flash must be performed as follows:1. Power down the SAM7S-EK 2. Close the Jumper JP5 named TST 3. Power up the SAM7S-EK 4. Wait 10s 5. Power down the SAM7S-EK 6. Remove the Jumper JP5 named TST 7. Power up the

5、 SAM7S-EKSAM-BA Boot Assistant is now available in the first two sectors of the on-chip flash and ready to use. Then, you can start using the SAM-BA GUI to interface with the SAM-BA Boot Assistant as described in the SAM-BA User Guide available in the "on-line" help.How to use SA

6、M-BA on your AT91SAM7S-based devices application ?The AT91SAM7S devices feature the System Recovery procedure which restores the SAM-BA Boot Assistant inside the Flash.System Recovery Procedure When the TST pin is set during power-up and PGMEN0, PGMEN1 and PGMEN2 are set, th

7、e device is entering is a specific test mode and performs a SAM-BA Boot System Recovery which consists in copying the SAM Boot Assistant (SAM-BA) in the first two sectors of the on-chip Flash memory. The system recovery procedure takes 10s.In normal mode, the TST pin can be left uncon

8、nected thanks to the internal pull down. Please note that on the SAM7S-EK, PGMEN0, PGMEN1 and PGMEN2 are set by using the internal pull-up resistors enabled by default after power-up. SAM-BA Boot Assistant is now available in the first two sectors of the on-chip flash and ready to use. Then, yo

9、u can start using the SAM-BA GUI to interface with the SAM-BA Boot Assistant as described in the SAM-BA User Guide available in the "on-line" help.SAM-BA hardware requirements:-· DBGU Requirements o Wide range of Quartz from 3 to 20MHz Quartz (software auto detection)· - USB Requ

10、irements o Limited to a 18.432MHz Quartz o PIOA16 dedicated for the USB Pull-up (refer to the AT91SAM7S-EK Board Schematics) 原文地址 SAM-BA BOOT (轉自芯藝)2008-05-29 16:08一.原理     AT91SAM7S64內部“隱藏”著一段程序叫SAM-BA BOOT, 它是在出廠時被固化的,不會被擦除,也不會被重寫。由于ATMEL沒有說明    這段程序在哪里所以叫“隱

11、藏”,哈哈      在特定的條件下它會被復制到內部FLASH首部,這個復制的過程叫恢復系統程序(System Recovery Procedure)      系統程序恢復后下一次上電或手動復位時SAM-BA BOOT 就會得到運行, 它使用片上集成的USB或DBGU(其實就是UART)與上位機通信    實現自編程。   二.恢復系統程序     1.TST PA0 PA1 PA1 四個引腳保持高的狀態(tài)

12、下復位并等待10秒,要注意的是復位時TST引腳內部下拉,為此要通過外部電路將此引腳拉高    在設計電路時這個引腳上通常外接一個跳線(請參考AT91SAM7S-EK板),PA0,PA1,PA2復位時內部上拉,為些這三個引腳可以懸空,外部電    路要保證不會在復位時將此三個引腳拉低。      2.再次復位系統,系統就會運行SAM-BA BOOT,即你的上位機SAM-BA才會與之成功連接。   三.ERASE引腳    

13、60; 要注意的是恢復系統程序的過程是在ERASE引腳懸空或拉低的情況下進行的,ERASE引腳內部有一下拉電阻為此可以懸空,在任意時刻上    電狀態(tài)下外部拉高ERASE引腳會擦除片內FLASH和NVM位,并且會在很短的時間內完成。      當你使用SAM-BA對器件編程后執(zhí)行了Enable Security Bit腳本,即編程了FLASH安全位,那么下一次恢復系統程序前必須拉高引腳ERASE    擦除這個安全位,不然恢復系統程序不會成功。四.SAM-BA軟件使用簡介 &

14、#160;  1.連接 USB連接需要一個USB驅動程序,但這已經在安裝SAM-BA時已經安裝到了系統,但第一次USB連接時還是會提示安裝驅動,這時只需              要系統自動查找并安裝即可,如果你運行SAM-BA 2.5時看到如下圖的界面說明你已經做好了所有準備工作,如果年不到原因可能             

15、有以下幾點:              (1)恢復系統程序未成功              (2)硬件連接存在問題              (3)USB驅動程序未被指定2.使用SAM-BA(1) AT91SA

16、M7xxx Memory Display         這是查看器件內FLASH或RAM內容的區(qū)域,指定開始地址(Start Address)查看區(qū)域的大?。⊿ize in byte)后按Refresh即可從下      邊列表中看到器件內部數據     (2) Download/Uploade File         這是我們主要使用欄,在Send File Name中選擇要寫入的程序文件,要注意的是這是個二進制格式,而不是HEX或其它格式,寫入前   &

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論