完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我似乎无法克服这个Bootloader问题,当设备试图跳转时会遇到异常。这是我所拥有的…PIC32 MM00 64 GPL036例外发生在2904I线发现人们说要向跳转地址添加1,但我不能告诉任何改变任何东西。
以上来自于百度翻译 以下为原文 I can't seem to get over this bootloader issue where the device gets an exception when it tries to jump. Here is what I have.. PIC32MM0064GPL036 static void Enter_Application(void) { void (*fptr)(void); /* Set default to APP_RESET_ADDRESS */ fptr = (void (*)(void))(0x9D002001);//Also have tried 0x9D002000 and 0x1D.. /* Disable Global Interrupts and Jump to Application*/ __builtin_disable_interrupts(); fptr(); } The exception happens at line 2,904 I find where folks say to add a 1 to the jump address, but I can't tell that changes anything. Attached Image(s) |
|
相关推荐
3个回答
|
|
你是怎么确定的?由于突出显示的指令不能引起异常,所以我认为它更可能是实际的跳转指令。目的地地址是什么?在只实现微MIPS的设备上并不重要,但是在实现MIPS32和MICMIPS的设备上,源地址的LSB用于指示目标地址的指令集。
以上来自于百度翻译 以下为原文 How did you determine that? Since the highlighted instruction can't cause an exception I think it's much more likely that it's the actual jump instruction. What's at the destination address? On devices that only implement microMIPS it shouldn't matter, but on devices that implement both MIPS32 and microMIPS the LSB of the source address is used to indicate the instruction set of the target address. |
|
|
|
您需要将跳转地址的低位设置为“1”。这是因为他们想让它与MIPS和MiMIPS一起生活的CPU(比如MZ)兼容。然而,你强调的那条线是良性的,在跳跃之前就发生了。
以上来自于百度翻译 以下为原文 You do need to have the lower bit of the jump address to be set to "1". This is because they wanted to make it compatible with CPUs where MIPS and MicroMIPS live together (such as MZ). However, the line you highlighted is benign and happens long before the jump. |
|
|
|
好吧,我想现在可能吧。这是由于误译调试器等。真正的原因似乎是一个错误的向量表在应用程序。由于设备在0x800大小的边界上被擦除,所以我假设向量表不需要在0x1000上对齐。我不知道为什么它不首先进入向量设置区域。
以上来自于百度翻译 以下为原文 Ok, I think its right now, maybe. It was due to misinterpreting the debugger, etc. The real cause seemed to be a misaligned vector table in the application. Since the device is erased on a 0x800 sized boundary, I assumed that the vector table didn't need alignment on 0x1000. Why it didn't step into the vector setup area first I don't know. |
|
|
|
只有小组成员才能发言,加入小组>>
5150 浏览 9 评论
1994 浏览 8 评论
1924 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3165 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2221 浏览 5 评论
716浏览 1评论
602浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
488浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
617浏览 0评论
515浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-15 16:24 , Processed in 1.166622 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号