※ 引述《tester.bbs@bbs.csie.ncu.edu.tw (try or test)》之銘言:
> > ICE+開發板學習起來才是最有效率的,當然也可以自己銲,
> > 有一些 ARM7 就是做成單晶片,有內建 SRAM & FlashRom,
> > ICE 也可以省下來,對岸有人公布接 Printer 的 JTAG 小板
> > 線路,先從基礎練起、例如如何驅動TIMER,如何處理中斷,
> > 如何看示波器除錯,自己找個小專題練習,個人認為這才是
> > 正確學習的方式
> 請教個問題, JTAG 能讀出板子上或內建的 FlashRom 的內容嗎 ?
Why not...
1st : Write the host side JTAG slave or master monitor program, you may write
a console in PC to drive the UART or Parallel port or USB...etc.
Implement the pin assignment from serial port to JTAG.
2nd : Implement the JTAG R/W function of target processor
By TDO, TDI, TMS, TCK...etc.
3rd : Set the system clock via the R/W functions
4th : Trigger the processor to reset
5th : Initial the memory interface if your flash use memory interface.
( Or initial the serial interface controller if your flash is attached
to a serial bus like I2C or SPI...etc, sure, you need to pack the I2C
or SPI command to your payload via the JTAG protocol)
6th : Follow the flash chip specification to initialize the flash device.
6th : Read the flash just from the memory controller(or serial bus
controller)
...
Final: If you want to write the flash, read the flash chip specification,
usually you'll need a special procedure to program the flash.
PS. It's just my experience, maybe not suitable for everyone.
--
一株幸運草是由四顆心所構成的 m^_^m
--
※ Origin: 交大資管心靈小站 <bbs.iim.nctu.edu.tw>
◆ From: bbs.iim.nctu.edu.tw