1 / 74

Introduction to Holtek HT-ICE/HT-IDE3000

Introduction to Holtek HT-ICE/HT-IDE3000. 大綱. HT-ICE/IDE3000 簡介 HT-IDE3000 的安裝 快速瀏覽專案的建立 HT-IDE3000 的視窗 Debug Commands Breakpoints & Trace conditions LCD simulator Simulator & VPM. HT-ICE. HT-ICE Features. Real-time emulation Support data-sensitive breakpoints

zanna
Télécharger la présentation

Introduction to Holtek HT-ICE/HT-IDE3000

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to HoltekHT-ICE/HT-IDE3000

  2. 大綱 • HT-ICE/IDE3000 簡介 • HT-IDE3000 的安裝 • 快速瀏覽專案的建立 • HT-IDE3000 的視窗 • Debug Commands • Breakpoints & Trace conditions • LCD simulator • Simulator & VPM

  3. HT-ICE

  4. HT-ICE Features • Real-time emulation • Support data-sensitive breakpoints • Support real-time conditional tracing • External signals for breakpoints and tracing • Allow internal/external oscillator

  5. HT-IDE3000 Features • Support multiple source files • Mixed language programming (C & ASM) • Source level debugging • Support Library management • VFD/LCD Simulator integrated • MCU simulator integrated • Work for all windows 98/2000/ME/XP…

  6. HT-IDE3000 安裝(一) • 從 CD • 點選 ‘Setup HT-IDE3000’按鈕 • 若要安裝 HT-IDE3000 主系統 • 點選 ‘HT-IDE3000’按鈕 • 若要安裝最新之 Service Pack • 點選 ‘Service Pack’按鈕

  7. CD Title

  8. HT-IDE3000 安裝(二) • 從盛群公司網站 • 連線到 http://www.holtek.com.tw/chinese/tech/updates/ht-ide.htm • 下載 HT-IDE3KV66(SP7).EXE後直接執行即可

  9. 安裝流程(1)

  10. 安裝流程(2)

  11. 安裝流程(3)

  12. 安裝流程(4)

  13. 安裝流程(5)

  14. 安裝流程(6)

  15. 安裝流程(7)

  16. 快速瀏覽專案的建立 • Step 1. 啟動 HT-IDE3000 • Step 2. 開新專案 • Step 3. 撰寫程式 • Step 4. 將程式檔加入專案中 • Step 5. 程式的編譯 • Step 6. 專案的偵錯 • Step 7. 專案完成

  17. Step 1. 啟動 HT-IDE3000 • 在 windows 作業系統環境下, • 點選開始/程式集/Holtek Development System/HT-IDE3000

  18. Windows 98 下的啟動

  19. 設定區域碼 當你是第一次使用HT-IDE3000 時, 系統會出現一個Dialog要求你輸入一些基本資訊

  20. HT-IDE3000商標畫面 • 每一次重新啟動 HT-IDE3000時, 系統會顯示以下的商標畫面 • 你可以點一下滑鼠跳過該畫面, 或者等待約2秒的時間, 系統會自動跳過

  21. Welcome LOGO

  22. 連線失敗 • 此時若你的 HT-ICE 未接上 PC, 系統會出現一個Dialog 提醒你 • 在整個使用的過程當中, 一旦系統發現連線失敗, 也會立刻出現該訊息

  23. 連線成功 • 若是正常連線, 系統會出現以下 Dialog, 告訴你連線成功, 你可以開始使用 HT-IDE3000/HT-ICE • 盛群對於各系列的 MCU 有不同的 ICE

  24. Step 2. 開新專案 • Select Project/New

  25. New Project Dialog • 選定此 project 要儲存的目錄與名稱,並選定你要採用那一個 MCU。

  26. Project Option Dialog • 讓你對 Assembler 與 Linker 的一些選項作設定

  27. Configuration Options Dialog • 設定一些與 MCU及ICE有關的選項

  28. Step 3. 撰寫程式 • HT-IDE3000 內建有文字編輯器(Text Editor) • Select File/New • Select File/Save As

  29. Step 4. 將程式檔加入專案中 • HT-IDE3000 的 project 可以由一個或兩個以上的程式檔所組成 • Select Project/Edit

  30. Edit Project Dialog

  31. Step 5. 程式的編譯(1/3) • Select Project/Build 或 Project/Rebuild All

  32. 程式的編譯(2/3) • Build 與 Rebuild All 的差別在於 • Rebuild All 會編譯project中所有的程式檔 • Build 則只會編譯自上次的編譯動作後, 有修改過的程式檔 • Select Project Assemble/Compile • 對編輯視窗中的程式檔作編譯的動作

  33. 程式的編譯(3/3) • 在編譯的過程中, 若程式有語法上的錯誤,系統會將錯誤訊息顯示在底下的 Output window • 你可以用滑鼠雙擊錯誤訊息處, 系統會自動標處該錯誤的程式所在位置

  34. Step 6. 專案的偵錯(1/2) • 若所有的程式都無語法上的錯誤, 則系統會在完成編譯後, 會自動將程式下載到 HT-ICE 或 Simulator 中, 讓你開始進行 debug 的動作 • Emulation (HT-ICE) 與 Simulation (Simulator) 的切換, 在 Debug Option Dialog.

  35. Step 6. 專案的偵錯(2/2)

  36. Step 7. 專案完成 • 對於 Mask type MCU (eg. HT48C10-1),在 Build OK 時, 系統會產生 .COD (eg. EX1.COD)供你將檔案傳回Holtek 生產 • 對於 OTP type MCU (eg. HT48R10A-1),在 Build OK 時, 系統會產生 .OTP (eg. EX1.OTP)供你使用燒錄器燒錄

  37. HT-IDE3000的視窗 • RAM • ROM • Trace List • Register • Watch • Stack • Program • Output

  38. ROM Window

  39. RAM Window

  40. Trace List Window

  41. Register Window • Register window is dockable

  42. Watch Window • Watch window is dockable

  43. Stack Window • Stack window is dockable

  44. Program Window • Program window is dockable

  45. Output Window • Output window is dockable

  46. Debug Commands(0/2)

  47. Debug Commands(1/2) • Go: 開始執行程式 • Go to Cursor: 執行程式至目前游標所在之指令行位置 • Jump to Cursor: 將 Program counter設成目前游標所在行的address • Stop: 停止執行程式 • Stop Trace: 停止追縱程式 • Reset: 執行軟體的 Reset 動作

  48. Debug Commands(2/2) • Power-on Reset: 執行軟體的 Power-on Reset 動作 • Reset Trace: 清除Trace buffer 中的資料 • Step Into: 單步執行一行程式, 若是函式呼叫的指令則進入該函式 • Step Over: 單步執行一行程式, 若是函式呼叫的指令則執行完該函式後停在下一行指令行 • Step Out: 執行程式至最上層Stack所含之 Program Counter的位置 • Stepping: 自動以單步的方式執行程式

  49. Breakpoint(1/2) • Code breakpoints • 例如, 將第21行的程式設為斷點, • Step1. 用滑鼠或鍵盤將游標移至程式的第21行位置 • Step2. 開啟 Breakpoint Dialog • 你會發現在 location 的欄位出現 .21, 表示將把第21行設成斷點, 至於斷點的 space 則選擇 code • Step 3. 接著按下 Add, 你會發現下方的 Breakpoint ListBox 出現了一筆資料 • Step 4. 請記得按OK 完成此次設定

  50. Breakpoint Dialog (Code)

More Related