完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,我希望这将是我的问题的正确论坛。问题很简单:当我在启动闪存应用程序中调试时,如何才能看到程序闪存的内存内容?描述:我正在为PIC32 MX795F512L编写自己的Bootloader,它应该将外部HEX映像文件复制到程序快闪存储器中。引导加载程序放置在引导闪存中。我想检查Bootloader写程序闪存的原因,因为有些地方出错了。当我在PIC32以太网启动器套件中处于调试模式时,我只在整个程序快闪存储器中看到0xFFFFFFF。我知道肯定有什么有效的。例如,如果我声明一个指向程序闪存的变量,那么就有一个有效的内容。为什么我看不到0xFFFFFFFF?是否有配置位集,不允许我在这部分查看,或者这是我的MPLAB X V4.01的问题吗?这里是我的配置位设置:
以上来自于百度翻译 以下为原文 Hi everyone, I hope this will be the right forum for my issue. The question is easy: How can I see the memory content of my program flash memory while I am debugging in a boot flash memory application? Description: I am writing my own bootloader for a PIC32MX795F512L which should copy an external hex image file into the program flash memory. The bootloader is placed into the boot flash memory. I want to check what the bootloader is writing to the program flash memory, because something went wrong. When I am in debugging mode at my PIC32 Ethernet Starter Kit, then I only see 0xFFFFFFFF at the whole program flash memory. I know that there must be anything valid. For example if I declare a variable which points to the program flash memory, then there is a valid content. Why I do not see only 0xFFFFFFFF? Is there a configuration bit set, which do not let me view at this sections or is this an issue with my MPLAB X v4.01? Here is my config bit setting: #pragma config UPLLEN = ON // USB PLL Enabled #pragma config FPLLMUL = MUL_20 // PLL Multiplier #pragma config UPLLIDIV = DIV_2 // USB PLL Input Divider #pragma config FPLLIDIV = DIV_2 // PLL Input Divider #pragma config FPLLODIV = DIV_1 // PLL Output Divider #pragma config FPBDIV = DIV_1 // Peripheral Clock divisor #pragma config FWDTEN = OFF // Watchdog Timer #pragma config WDTPS = PS1 // Watchdog Timer Postscale #pragma config FCKSM = CSDCMD // Clock Switching & Fail Safe Clock Monitor #pragma config OSCIOFNC = OFF // CLKO Enable #pragma config POSCMOD = HS // Primary Oscillator #pragma config IESO = OFF // Internal/External Switch-over #pragma config FSOSCEN = OFF // Secondary Oscillator Enable #pragma config FNOSC = PRIPLL // Oscillator Selection #pragma config CP = OFF // Code Protect #pragma config BWP = OFF // Boot Flash Write Protect #pragma config PWP = OFF // Program Flash Write Protect #pragma config ICESEL = ICS_PGx2 // ICE/ICD Comm Channel Select #pragma config DEBUG = OFF // Debugger Disabled for Starter Kit |
|
相关推荐
4个回答
|
|
|
在调试器中有一个读回闪存选项。看一看附近的其他按钮。可选的,可以使用IPE读取整个闪存到文件。然后可以将文件完成到原始文件的副本。
以上来自于百度翻译 以下为原文 There is a read back flash memory option in the debugger. Look at the other buttons near the start one. Optional one can use IPE to read the entire flash to a file. The file can then be completed to a copy of the original file. |
|
|
|
|
|
谢谢你的回答。我认为这是解决我问题的合适方法。但无论如何,有可能在“实时”中查看这个内存段吗?
以上来自于百度翻译 以下为原文 Thanks for this answer. I think that's a suitable solution for my problem. But anyway, it is possible to view this memory sections in "real time"? |
|
|
|
|
|
不,调试器不知道代码正在修改Flash。或者Flash的哪些区域被修改。它需要读取整个闪光灯,这将是非常缓慢的。
以上来自于百度翻译 以下为原文 No, the debugger has no idea that your code is modifying the flash. Or what areas of flash are modified. It would need to read back the entire flash and that would be very slow. |
|
|
|
|
|
我想知道“DMCI”插件是否可以用来查看“近实时”中的几个内存位置?
以上来自于百度翻译 以下为原文 I wonder if the "DMCI" plugin might be used to view a few of the memory locations in "near real time"? |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5795 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1125浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 18:12 , Processed in 1.022193 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1466