完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,我有一个用PIC32 MZ2048 EFM144运行的GUI。最近我不得不向程序中添加一些新的按钮和菜单。现在,奇怪的事情不断发生在我身上。比如:1)我的函数工作了1年,已经停止在显示器上写文本了。2)当我开始我的程序并通过我的代码时,我的绿线通过一条代码行,行没有任何效果。i=1,在它执行静止i=0.3)之后,我对同一个C编程。OD:A)程序首先运行:一条显示的线路是:电源:0W,然后到电源:0W,然后到电源:0W,B)程序和运行+电源周期+清洁和构建-第二次:电源:-0W,然后到电源:0W,然后电源:-0W(似乎是第一次,而不是代码产生空的空间)C调试程序得到我:POWER:0W,然后是下一次更新电源:0W 0W(因为我只刷新屏幕上有数字的部分,但是程序经常写得远到0W,它永远不会刷新)4)程序有时会停止在屏幕上写东西。我在一起。我可以通过写在屏幕上的代码前进,但是什么也没有发生(就像2个例子)。但它不是一个GPU问题(看起来像),背景颜色仍然负载,有些东西仍然在屏幕上。大多数情况下,问题似乎是文本。我用ICD3编程,使用MPLAB X IDE V3.30,编译器XC32 V1.40,优化关闭,没有特殊的功能/ optin编译。这是我1年前编辑软件时的完全相同的配置。我不知道问题是什么,我只想在屏幕上加上几行文字。没什么大不了的,只是对一个已经存在的函数进行了更多的调用,这是经过充分测试的。我想到了太多的程序(内存损坏),但是我在这个论坛上发现了10000个程序周期的引用。我不认为我做了那么多。我怎么知道会是这样吗?这可能是一种优化吗?我知道在Atmel中,你必须选择所有的PrtTf都要被包含,这样它就省去了空间,通过释放浮点。MPLABX还是XC32做了任何无声的更新?Windows的更新能否为我改变?(运行Windows 10)有时候,100%感觉处理器正在跨过不同的代码,在我的屏幕上的步骤是什么?是否应该怪,我把我的所有项目都放在Git下?有什么想法吗?救命!最好的问候,马尔科
以上来自于百度翻译 以下为原文 Hi, I have a GUI running with PIC32MZ2048EFM144. I recently had to add some new buttons and menus to the program. Now weird thing keep happening to me. Like: 1) My functions that worked for 1 year, have stopped writing text on display. 2) When I debut my program and step thru my code, I the green line goes thru a code line and the line has no effect eg. i = 1, after it executes still i = 0. 3) I program the same code: a) program and run first: A line on display is eg. Power: 0W, then to Power: 0W, then to Power: 0W, b) program and run + power cycle + clean and build - second time: Power: -0W, then to Power: 0W, then to Power: -0W (seems as tho the first time instead of - code generates empty space) c) program for debug get me: Power: 0W and then next update Power: 0W 0W (because i refresh only the part of the screen that had the number on it, but every so often the program writes 0W so far away that it never refreshes) 4) Sometimes the program stops writing thing on the screen all together. I can step thru the code that writes on screen but nothing happens (like the 2 example). But its not a GPU problem (looks like), the background colour still loads, and the some thing are still on screen. Most of the time the problem seem to be with text. I'm programming it with ICD3, using MPLAB x IDE v3.30, with compiler XC32v1.40, optimization off, no special features/optins with compiling. The exact same configuration I had 1 year ago when I last edited the software. I'm lost to what could the problem be, all I wanted to add was a couple more lines of text on screen. Nothing major just a couple of more calls of a preexisting function, that was fully tested. I thought of maybe too many programs (memory damage) but I found referances on this forum to 10000+ program cycles. I don't think I did so many. How would I know if this would be the case? Could it be sprintf maybe - some optimization? I know in atmel you have to select for the whole printf to be included so that it saves space, by leaving out floats. Do MPLABX or XC32 do any silent updates? Could a update of windows change thing up for me? (-running windows 10) Sometimes it 100% feels like the processor is stepping thru different code that what in stepping thru on my screen. Could git be to blame, I put all my project under git? Any ideas? Help! Best regards, Marko |
|
相关推荐
3个回答
|
|
|
|
|
|
|
|
|
我怎么检查呢?在我的代码中有一个泛型异常处理器,但它并不存在。我的代码从来没有被卡住,只是不以怪异的方式工作。
以上来自于百度翻译 以下为原文 How can I check for that? I have the _general_exception_handler in my code, but it does not go there. My code never get stuck, just does not work in suck weird ways. |
|
|
|
|
|
它不容易。。。一些“技巧”或过程是可用的,但堆属性可以在项目属性中增加。根据需要自动使用堆栈,以便…你需要一些调查或检查。
以上来自于百度翻译 以下为原文 It's not easy... some "tricks" or procedures are available, but... Heap can be increased in the Project properties. Stack is automatically used as needed so... you need some Probe or check. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
495 浏览 0 评论
5808 浏览 9 评论
2347 浏览 8 评论
2237 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3542 浏览 3 评论
1154浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1118浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
887浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
500浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 00:07 , Processed in 0.839733 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2715