完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,我一直在尝试用PIC24FJ256GB406创建一个Bootloader,它大部分都在那里,但是我在闪存上有很多问题。首先,我不得不手动添加:因为否则我检查FBOOT时,它会返回双保护配置。现在我可以验证当运行时,情况不再是这样。我可以读取擦除应用程序代码存储器范围(0x00 f400直到0x02AC00),但是当写入时,我只能走到0x015C00,当试图写在该位置上时,设备复位。没有代码保护被启用,而且我已经看过论坛上所有与此相关的帖子,包括那些谈论双模闪存的文章,没有一个修复看起来有用。有什么线索吗?
以上来自于百度翻译 以下为原文 Hi everyone, I've been trying to create a bootloader with a PIC24FJ256GB406, and it's mostly there, but I've been having a lot of issues with the Flash memory. Firstly, I've had to manually add: #pragma config BTMODE = SINGLE Because otherwise when I checked FBOOT, it would return the DUAL_PROTECTED configuration. Now I can verify when running that this is no longer the case. I can read an erase the application code memory range (0x00F400 up to 0x02AC00), but when writing, I can only go as far as 0x015C00, when trying to write above that location, the devices resets. No code protection is enabled, and I've already looked all the posts on the forum that relate to this, including those talking about dual mode flash writing, none of the fixes seem to work. Any clues to what's happening? |
|
相关推荐
1个回答
|
|
|
实际上,在帖子被接受之前,我已经解决了这个问题,所以对于任何寻找类似问题的人来说,一定不要把你的地址值存储为:而是使用:它看起来像某种编译器错误或者什么。
以上来自于百度翻译 以下为原文 I actually solved this before the post was accepted, so for anyone looking for similar issues, be sure to not store your address value as: uint32_t address = 0xBADA55; but instead use: unsigned long address = 0xBADA55; It looks like some kind of compiler bug or something. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1122浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 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 00:02 , Processed in 0.780229 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1510