Xilinx jtag调试模式与jtag‐uart使用 - minichao9901/TangNano-20k-Zynq-7020 GitHub Wiki
启动jtag-uart的方法
选择mdm作为stdin/stdout
#include <stdio.h>
#include "platform.h"
#include "xil_printf.h"
#include "xparameters.h"
#include "sleep.h"
int main()
{
init_platform();
while(1){
print("hello\r\n");
sleep(1);
}
cleanup_platform();
return 0;
}
connect
ta //list all targets
ta 2 //选择targets 2
help
help ta
jtagterminal -start
mrd 0x00000000 4
mwr 0x50 0x11223344
mrd 0x50
help mwr //关于写的更多用法
help mrd //关于读的更多用法
读取内存信息