完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我有一个PIC32 MZ启动套件上的APIC32 MZ2064 DAG169。我正试图查看内部DDR RAM(甚至1字节)的内容:我正在尝试使用内置的GLCD外围设备。MPLAB和谐配置器为我的示例项目生成了一个配置文件。像素缓冲器被放置在定义为GFXGLCDLayLe0SerBaseDADR 0xA800的X上,这似乎是正确的。因为0xA800是在KSGE1内存映射中的内部DDR RAM开始的虚拟地址,所以我调用PLIbGLCDGLayLayBaseAddiSrSSET(GLCDSIDID0,0,(UIT32 32×t)0xA8800),这基本上结束了当我查看T时使用KVAYToPaPA(0xA8800)设置SFR GLCDL0BADDR寄存器。他使用调试器包含0x08000兆**的SFR GLCDL0BADDR,这是内部DDR开始的物理地址,所以看起来正确。问题是,我如何查看该地址中的数据内容。我有一个变量UtiT32×T*BP(2);**如果我将BP[0 ]设置为0xA8800或BP[0 ]到0x0800,调试器说它是一个无效的地址。我如何查看0xA8800的内容。是否需要编写一个函数来读取DDR中的数据,就好像它是外部的一样。我认为这是内存映射,并会显示任何其他部分的记忆。感谢在前进KNK53
以上来自于百度翻译 以下为原文 HI, I HAVE A PIC32MZ2064DAG169 ON A PIC32 MZ STARTER KIT. I AM TRYING TO VIEW THE CONTENTS OF THE INTERNAL DDR RAM (EVEN 1 BYTE) BACKGROUND: i AM TRYING TO USE THE BUILT IN GLCD PERIPHERAL. THE MPLAB HARMONY CONFIGURATOR PRODUCED A CONFIG.H FILE FOR MY SAMPLE PROJECT. THE PIXEL BUFFER WAS PLACED AT #define GFX_GLCD_LAYER0_BASEADDR 0xA8000000 THIS SEEMS CORRECT .. AS 0XA8000000 IS THE VIRTUAL ADDRESS OF THE BEGINNING OF THE INTERNAL DDR RAM IN THE MEMORY MAP FOR KSEG1 THEN I CALL PLIB_GLCD_LayerBaseAddressSet(GLCD_ID_0, 0, (uint32_t)0XA8000000); WHICH BASICALLY ENDS UP SETTING THE SFR GLCDL0BADDR REGISTER USING KVA_TO_PA(0XA8000000) WHEN I VIEW THE SFR GLCDL0BADDR WITH THE DEBUGGER IT CONTAINS 0X08000000 *** THIS IS THE PHYSICAL ADDRESS OF THE START OF THE INTERNAL DDR SO THAT SEEMS CORRECT. THE QUESTION IS HOW CAN I VIEW THE CONTENTS OF THE DATA AT THAT ADDRESS. i HAVE A VARIABLE uint32_t *bp[2]; *** IF I SET BP[0] TO EITHER 0XA8000000 OR BP[0] TO 0X08000000 THE DEBUGGER SAYS IT IS AN INVALID ADDRESS. HOW CAN I VIEW THE CONTENTS OF 0XA8000000. DO I NEED TO WRITE A FUNCTION TO READ DATA FROM THE DDR AS IF IT WAS EXTERNAL. I THOUGHT IT WAS MEMORY MAPPED AND WOULD DISPLAY LIKE ANY OTHER SECTION OF MEMORY. THANKS IN ADVANCE KNK53 |
|
相关推荐
1个回答
|
|
嗨,我能够设置一个可变的32位***bp(2);UTI32 32 t pDATA(5);BP[0 ]=0xA8800;然后是后来的pDATA(0)=*(UTIN 32×T*)(BP[0)];使用调试器查看pDATA。它确实有正确的价值。KNK53
以上来自于百度翻译 以下为原文 HI I WAS ABLE TO SET A VARIABLE uint32_t *bp[2]; uint32_t pdata[5]; bp[0] = 0xa8000000; then later pdata[0] = *(uint32_t *)(bp[0]); Use the debugger to view pdata. It does have the correct value. KNK53 |
|
|
|
只有小组成员才能发言,加入小组>>
5231 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3200 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
770浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
587浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
668浏览 0评论
570浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 07:53 , Processed in 1.158215 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号