最便宜的AVR調(diào)試工具
AvrMon 是一種交互式的調(diào)試工具。程序執(zhí)行時(shí),他處于等待狀態(tài):
------------------------------------------------------------------
Waiting for uC to send break token; hit ESC to interrupt.
Break token received: 1, 0x01, B00000001; program count 0x0085
----------------------------------------------------------------
avrMon>
在你需要調(diào)試的地方,加一句斷點(diǎn)(匯編為rcall avrmon ,c為avrmon()),它就會(huì)中斷程序的執(zhí)行,通過(guò)LPT1交互式的對(duì)話,如:
查看地址:
avrMon> cout $63-->0xf0, B11110000, decimal 240
或寄存器:
avrMon> cout r16-->0x01, B00000001, decimal 1
或IO:
avrMon> cout PORTD-->0x02, B00000010, decimal 2
評(píng)論