Skip to content

Xilinx jtag调试模式与jtag‐uart使用

minichao9901 edited this page Feb 22, 2024 · 2 revisions

框图

启动jtag-uart的方法 image image

mb_bsp的设置

选择mdm作为stdin/stdout image

程序

#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;
}

运行效果

image

附录:xsct的一些命令

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   //关于读的更多用法

image image

image

读取内存信息

Clone this wiki locally