精華區beta Programming 關於我們 聯絡資訊
> ==>發信人: Master.bbs@bbs.sayya.org (可愛的ASM), 信區: programming > > > 前者用在沒有 Console I/O Mornitor > > > Program 之下, 尤其是連硬體(RAM 或 I/O Interface) 都無法確保正確 > > > 工作之下. > > Console I/O monitor 只是一個 ethernet/serial interface service program > > 跟 ICE 或 ROM download 有很大的因果關係嗎? > > 頂多是透過這個 service program幫你從 host 一個一個 byte 放到 memory > > 就算沒有 monitor program, 要透過 ICE access micro-controller 的 register > > 或是 SRAM 或是 SDRAM 或是 peripherals I/O 已經是綽綽有餘了 > > 何來無法確保正確工作之說 ? > tester提到的Console I/O這個名詞怎麼來的?沒用過這個詞... > 我只聽過monitor而已,自己寫簡單的monitor及bootloader在玩MCU 的人來說應該 > 算是基本能力吧!讓monitor有單步執行及除錯並不是什麼很困難的事,尤其在ICE > 還是夢幻逸品的時候。 VLSI 的微處理機不同於大型或迷你電腦就是沒有能直通 processor register 的 console device (最老爺的就是 console switch 與 lamp) 可以隨時更改 rregister 的內容. 若要 single step 只要到 console 轉個 switch 就可以 一步一步執行, 也能在執行時, 做 emergency stop. 舊稱的 Mornitor ROM program 就是讓附有 I/O (如 series line) 及 RAM 的微電腦可以拿 console tty 當 console (主控台) 來使用. 有 console program 未必就附有 debug trace/inverse-ASM program , 而 single step 有些 CPU 也有外置訊號腳的 hardware support single step , 如果沒有這種訊號接腳, 就要用控制 IC clock 的 single cycle 來協助(如 JTAG 規範). Debug Mornitor ROM 通常是使用 software trap 來進行 single step 及 break point , 不依賴 hardware break , 因此需要 知道指令長度, 所以會附有 inverse ASM 於其上. 但使用 hardware break 的 ICE 通常附有外在接腳的 comparater 電路. 理論上, 能夠對 Access 的 外在 memory space 進行 address 或 data 比對, 然後用 stop clock 暫停 攔截. -- ◎ Origin: 中央松濤站□bbs.csie.ncu.edu.tw From: 140.115.6.234