完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我在我的代码中创建了一个严重的错误来测试“泛型”异常Exchange():“IyGrimalAuthExpAutoLeLe())代码:我的板重新启动,但我没有看到Prtff消息:问题在哪里?
以上来自于百度翻译 以下为原文 Hello, I created a critical error in my code to test _general_exception_handler() : char * pttest = NULL; *pttest = 10; _general_exception_handler() code : void _general_exception_handler ( void ) { /* Mask off Mask of the ExcCode Field from the Cause Register Refer to the MIPs Software User's manual */ _excep_code = (_CP0_GET_CAUSE() & 0x0000007C) >> 2; _excep_addr = _CP0_GET_EPC(); _cause_str = cause[_excep_code]; // debug while(1){ printf("nGeneral Exception %s (cause=%d, addr=%x).n", _cause_str, _excep_code, _excep_addr); } } My board reboot but I don't see printf message : where is the problem ? |
|
相关推荐
4个回答
|
|
ApGrimalAuthExpExtApple()用这个错误操作:我使用PIC32 MZ2048 EFM064=&它不知道管理空指针错误吗?
以上来自于百度翻译 以下为原文 _general_exception_handler() operate with this error : char test = 2; char test2 = 0; segLoadLen = (test + segLoadLen) / test2; I use PIC32MZ2048EFM064 => it doesn't know manage NULL pointer error ? |
|
|
|
也许在使用PrTNF之后,堆栈不再可用了?
以上来自于百度翻译 以下为原文 Maybe the stack is no longer available after the exception to make use of printf ? |
|
|
|
这是因为你没有碰到一个普通的异常,你正在点击TLB填充异常。Microchip还没有更新Orthor的异常模板来包括TLB填充处理程序,所以您需要自己做这件事。复制AyGrimalAuthExpAutoLeLe()函数并命名副本SimeEyStByReFielyExabutyHooLeR()。
以上来自于百度翻译 以下为原文 It's because you are not hitting a General Exception, you are hitting the TLB Refill Exception. Microchip has yet to update Harmony's exception template to include a TLB Refill handler, so you need to do this yourself. Copy the _general_exception_handler() function and name the copy _simple_tlb_refill_exception_handler(). |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5362 浏览 9 评论
2093 浏览 8 评论
1995 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3274 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2306 浏览 5 评论
870浏览 1评论
758浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
699浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
750浏览 0评论
644浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 21:57 , Processed in 1.070469 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191