完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我今天遇到了一个奇怪的错误与MPLAB X,我正在使用模拟器,而不是真正的硬件。所以我有MPLAB X V3.40和XC32 V1.43,当我简单地构建,我没有错误,但当我调试运行,构建是成功的再次,但在调试器控制台被写入,当我去调用堆栈D刷新我有错误的错误:我不知道这意味着什么,是因为我不使用真正的硬件,还是一个更大的问题?关于如何解决这个问题,你有什么建议吗?或许它不需要解决?在真正的硬件上,代码可以正常工作?顺便说一下,我的代码是简单的,正如你所看到的,第10行是我的主要的开始:提前感谢。
以上来自于百度翻译 以下为原文 Hello, I encountered a strange error today with MPLab X, I am using the simulator, not real hardware. So I have MPLab X v3.40 and XC32 v1.43, when I simply build, I have no error, but when I debug run the build is successfull again but in the debugger console is written PIC32 runtime exception detected. Select [Refresh] to resolve source line location. And when I go to call stack and refresh I have folowing error :Runtime exception @ PC address 0x9d00000c in function: main ( ) at c:/users/ersatz02/mplabxprojects/pic32tryout.x/main.c : 10 I have no clue what this means, is it because I don't use real hardware or is it a bigger problem? Do you have any hints on how to solve this? Or maybe it doesn't need to be solved? On real hardware the code may be working? By the way my code is simply this and as you can see line 10 is the begining of my main: #include #include #include /* * */ unsigned char CTC_array[2] = {0}; void main(void) { int i = 0; int j = 1; i++; for(i=0; i<5; i++) j++; if(j<100) i++; else i--; while(1); return; } Thanks in advance |
|
相关推荐
6个回答
|
|
你有一个例外。没有异常处理程序,因此无法看到发生了哪一个异常。
以上来自于百度翻译 以下为原文 You have an exception. You have no exception handler so you cannot see which exception happened. |
|
|
|
|
|
|
|
它对我不起作用,只是因为它是仿真器吗?顺便说一下,我有一个运行测试工具来修改.PRE文件。
以上来自于百度翻译 以下为原文 It doesn't work for me, is it only because it is with the simulator or not? By the way I have a test tool running that modifies the .pre file |
|
|
|
|
|
|
|
嗨,它确实运行没有TestDooT,奇怪的是,我尝试了一些事情与测试工具启用,它抱怨我进口[测试工具名称]。H 2次和下一次建设(没有任何变化)就好了,与TestToT执行和一切进展顺利。有什么线索吗?编辑:对不起,建立了一个错误的项目(一个用XC8),所以不,它不与TestDoT一起运行,并且当我包含头文件时,抱怨它被包含了2次,这是因为我在XC8和XC16上有完全相同的配置,而且它工作得很好,只有XC32有问题。
以上来自于百度翻译 以下为原文 Hi, It runs indeed without the testtool, strange thing is, I tried some things with the testtool enabled and it was complaining that I import [testtool name].h 2 times and next build (without any changes) went just fine with the testtool executing and everything going well. Any clue about this? Edit : Sorry, built the wrong project (one with xc8) so no, it doesn't run with the testtool, and when I include the header file it complains that it is included 2 times, the thing is that I have the exact same configuration on xc8 and xc16 and it works fine, only xc32 has a problem |
|
|
|
好了,问题现在解决了,我花了很多时间来找出这个问题的根本原因(一些混乱的GCC选项),这将是一个很好的特点,以实现微芯片知道错误发生在哪里,并有一个更清晰的错误信息比
以上来自于百度翻译 以下为原文 Well, problem is now solved, took me so many time to find the root cause of this (some messed up gcc options), it would be a nice feature for Microchip to implement to know where the error occured and have a clearer error message than Runtime exception @ PC address ... |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
772浏览 1评论
662浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
590浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
672浏览 0评论
572浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 11:12 , Processed in 1.362116 second(s), Total 85, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号