完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,我使用的是PIC24FJ256GB110,它根据我的需要很好地工作了一段时间,但是我的设备因为AdSerServer和StaskError中断重新启动了很多次。有谁能帮我解决问题或找出原因?谢谢。
以上来自于百度翻译 以下为原文 hi everyone, I am using PIC24FJ256GB110 and it works great according to my needs for sometime but my device is restarting many times because of AddressERROR and StackERROR interrupt. is there any one who can help me for resolving it or finding reason for it? Thanks. |
|
相关推荐
3个回答
|
|
|
许多原因,所以尝试设置一个断点在陷阱的ISR和单步退出。我应该把你带到陷阱发生的地方。堆栈错误通常是参数如何传递的问题,其中函数最终通过“引用”写入堆栈区域,而不是写入其他地方。(例如,调用方将引用传递给一个数组,该数组在指针的堆栈上占据一个位置,但是函数代码将变量视为堆栈上的‘值’,并将其写入堆栈空间。)地址错误很容易是指针,允许在任何地方写入值。不存在的记忆。当然,这些都可以混合在一起。苏珊
以上来自于百度翻译 以下为原文 Many reasons so try setting a breakpoint in the trap's ISR and single step back out of that. I should take you to where the trap originated. Stack error is normally problems with how parameters are passed where a function ends up writing into the stack area rather than to somewhere else via a 'reference'. (e.g. the caller passes a reference to an array which takes one location on the stack for the pointer, but the function code treats the variable as a 'value' on the stack and therefore writes to the stack space.) Address errors can easily be pointers allowing values to be written anywhere - including non-existant memory. Of course these can both be mixed up together. Susan |
|
|
|
|
|
为异常陷阱编写处理程序,检查违规地址是什么。相应地调试。/ Ruben
以上来自于百度翻译 以下为原文 Write handlers for the exception traps and check what the offending address is. Debug accordingly. /Ruben |
|
|
|
|
|
感谢苏珊和Ruben的宝贵答复,但我找不到地址错误提供点,因为错误调用堆栈不支持。你能告诉我还有别的办法吗?
以上来自于百度翻译 以下为原文 Thanks susan and Ruben for your valuable reply but i can't find address error offering point because of an error call stack not supported. can you please tell me that is there any other way to find it? |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 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 04:32 , Processed in 1.175603 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2636