动漫网站设计模板企业网站博客上如何推广
动漫网站设计模板,企业网站博客上如何推广,绿色食品网站模板.htm,上海网站制作上海网站制作使用JTAG模式下载程序报错“AP transaction error, DAP status f0000021” 参考了博客的方法#xff1a;https://blog.csdn.net/weixin_39673080/article/details/89047629
其实这个不能根本解决问题#xff0c;问题的根源的确是DDR的配置问题#xff0c;当然最终能够定位到…使用JTAG模式下载程序报错“AP transaction error, DAP status f0000021”参考了博客的方法https://blog.csdn.net/weixin_39673080/article/details/89047629其实这个不能根本解决问题问题的根源的确是DDR的配置问题当然最终能够定位到DDR的配置问题lscript.ld改为下面MEMORY{ps7_ram_0 : ORIGIN 0x00000000, LENGTH 0x30000}同时将使用的hello_world的代码改为如下#include stdio.h #include platform.h /* 最小测试程序 - 不使用标准库复杂功能 */ int main() { /* 初始化平台简单的UART初始化不影响OCM */ init_platform(); /* 测试OCM读写 */ volatile unsigned int *test (unsigned int *)0x00001000; printf(OCM Test Start...\r\n); /* 写入测试值 */ *test 0x12345678; printf(Write: 0x%08X to 0x%08X\r\n, 0x12345678, test); /* 读取验证 */ unsigned int read_val *test; printf(Read: 0x%08X from 0x%08X\r\n, read_val, test); if (read_val 0x12345678) { printf(SUCCESS: OCM read/write OK!\r\n); /* 成功 - 进入翻转循环 */ while(1) { *test *test ^ 0x00000001; /* 简单延时 */ for (volatile int i 0; i 100000; i); } } else { printf(FAIL: OCM read/write error!\r\n); /* 失败 - 死循环 */ while(1); } cleanup_platform(); return 0; }进行测试正常然后定位到DDR的配置问题可以参考如下配置正常可以继续其它调试了