完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
背景:MPLAB X IDE 3.65、XC32 V1.43、和声V2.03B、定制板使用PIC32 MZ2064 DAH176、NEWAVEN NHD-4.3-48022EF-ASXNα-T显示(4.3,480X22像素,4线触摸触摸屏)关于定制板,我将其设计成PIC32 MZ DA家族初学者工具包用户指南。我很确定,我的设置是正确的,因为我能够控制与PIC32 MX470F512L芯片相同的LCD。我可以发布示意图,MHC文件,任何需要的。我遇到的问题是,它计划好,但然后重置。调试是奇怪的,因为它运行了一点点,然后失去了它的头脑。我已经尝试过一个指令,但是得到一条线索:“在当前的PC0x9D55BC4中没有找到源代码行。所以……我开始做断点洗牌,并且我可以在这里始终保持调试器为软管:静态GFxOffice Layer-BuffelDead(Uti32×It IDX),程序计数器转到0xBFC0。0000,就是这样。我正在尝试使用内部DDR内存来工作,我想知道我是否已经正确设置了。如果我运行我的程序,它将重置在20.4赫兹的频率,这是足够的时间看到其他信号(VSYNC,HSYNC,GCLK等),所有这些看起来不错。
以上来自于百度翻译 以下为原文 Background: MPLAB X IDE 3.65, XC32 v1.43, HARMony v2.03b, custom board using PIC32MZ2064DAH176, Newhaven NHD-4.3-480272EF-ASXN#-T display (4.3", 480x272 pixel, 4 wire resitive touchscreen) Regarding the custom board, I designed it to the PIC32MZ DA Family Starter Kit User's Guide. I'm pretty sure that my setup is correct, as I was able to control this same LCD with a PIC32MX470F512L chip. I can post schematics, mhc files, whatever is needed. The problem that I'm running into is that it programs fine, but then resets. Debugging is strange as it runs for a bit and then loses its mind. I have tried to step an instruction, but get the line: "No source code lines were found at current PC 0x9d005bc4". So...I started doing the breakpoint shuffle and I can consistently get the debugger to hose up here: static GFX_Result layerBufferAllocate(uint32_t idx) The program counter goes to 0xBFC00000 and that is that. I'm trying to use internal DDR memory to get this to work and am wondering if I have that set up correctly. If I run my program, it will reset at a frequency of 20.4 Hz, which is enough time to see the other signals (VSYNC, HSYNC, GCLK, etc) all of which look good. |
|
相关推荐
19个回答
|
|
|
有可能损坏DDR而不损坏芯片的其余部分吗?我是手工焊接这些家伙,虽然我有在暴露垫的通孔,以便我能得到它。
以上来自于百度翻译 以下为原文 Is it possible to damage the DDR without damaging the rest of the chip? I am handsoldering these guys, though I have vias in the exposed pad so that I can get at it. |
|
|
|
|
|
您好,首先,我假设您有一个新的板,并且您能够验证它是正确的和一致的,而不是图形。我的意思是,你做一些眨眼或等同的验证,你没有得到BOR或其他一些问题,导致重置。其次,假设它是图形调用具体,这听起来像堆问题给我。我们有许多来自不同客户的报告,堆很难预测,并导致很多奇怪的行为。有时这些创建异常,有时是随机重置,有时您只看到图形伪影。在任何情况下,修复都是相同的,这是为了增加项目的堆。记住在MHC中这样做(而不是写在MPLAX中的设置)。让我们知道你的调试结果如何。
以上来自于百度翻译 以下为原文 Hello, First, I assume you have a new board, and you were able to verify it works correctly and consistently other than graphics. I mean you do some blinky or equivalent to verify that you are not getting BOR or some other issue that is causing the reset. Next, assuming it is graphics calls specifically, it sounds like a heap issue to me. We have many reports from different customers that the heap is hard to predict and leads to a lot of odd behavior. Sometimes these create exceptions, sometimes random resets, sometimes you just see graphic artifacts. In any case, the fix is the same which is to increase the heap for the project. Remember to do this in MHC (and not the setting in MPLAB X which is over-written). Let us know how your debug turns out. |
|
|
|
|
|
我在我的BSP.HCONFIG文件中包含了下面的行:将XC32的堆设置为“104200”,我想这已经足够了。我来试一试,让你知道。
以上来自于百度翻译 以下为原文 I included the following line in my bsp.hconfig file: set XC32_HEAP to "104200" I would have thought that was enough. I'll give it a shot and let you know. |
|
|
|
|
|
我尝试了600000字节,但没有效果。我不能比那个高。DDR不能用作堆内存吗?
以上来自于百度翻译 以下为原文 I tried 600,000 bytes but to no avail. I couldn't go higher than that. Can't the DDR be used as heap memory? |
|
|
|
|
|
你可以创建一个LED闪光灯,然后写一些东西到DDR,然后读回来。这样你就会知道DDR是否工作。
以上来自于百度翻译 以下为原文 You can create a LED blinker and then write something to DDR and then read it back. This way you'll know if DDR is working or not. |
|
|
|
|
|
快速更新。所以我回到基础,验证我可以切换一个LED。使用计时器服务,我建立了一个简单的0.5Hz信号。一切都很完美。如果我简单地选择如下:使用内存系统服务,使用DDR,然后将DDR类型设置为内部,整个事情再次退出。图形、触摸等都关掉了。NorthGuy,我下次再试试你的建议。老实说,我不知道内部DDR控制器/内存的这些设置有多大。我今天要查看参考手册。
以上来自于百度翻译 以下为原文 Quick update. So I went back to basics and verified that I can toggle an LED. Using the Timer Service, I set up a simple 0.5Hz signal. Everything worked perfectly. If I simply select the following: Use Memory System Service, Use DDR, and then set DDR Type to Internal, the whole thing quits again. Graphics, Touch, etc is all turned off. NorthGuy, I will try your suggestion next. To be honest, though, I have no idea what a lot of these settings for the internal DDR controller/memory mean. I'll be looking over that reference manual today. |
|
|
|
|
|
|
|
|
|
|
|
您好,我不能确切地说,但是看来您的崩溃只是由DDR的启用引起的。您确实建立了一个项目(没有图形),但是否使用DDR来验证?现在我假设这是一个DDR设置问题。随机崩溃仍然有可能成为BOR。当你打开DDR,它也将吸引更多的力量,请确保你没有权力问题在你的新的董事会。我将有一个我的团队探索DDR设置与您,所以我们可以确保它遵循我们的指导方针。我们有几个例子,比如A莉亚快速入门,你也可以效仿。
以上来自于百度翻译 以下为原文 Hello, I cannot tell exactly, but it seems your crashing is just caused by enable of the DDR. Have you indeed set up a project (without graphics) but does use the DDR to verify? For now I will assume this is a DDR setup issue. The random crashing still has the possibility of being a BOR. When you turn on the DDR it will also draw more power, please make sure you do not have a power issue on your new board. I will have one of my team explore the DDR setup with you, so we can make sure it is following our guidelines. We have several examples like aria_quickstart you can also follow. |
|
|
|
|
|
嗨,当你使用内部DDR时,有几个地方你应该检查。1)确保时钟管理器中的内存PLL被启用。输出到200至220兆赫。(见附图)2)内存系统服务确实有很多开关和旋钮。我建议您参考AiaLaCuffiSmithPixPix32 MZ2DaSkgItDrDr.ME2BY遗留配置的设置。该配置的MHC文件与您的差异将突出任何差异。希望这有帮助。
以上来自于百度翻译 以下为原文 Hi, There are a couple of places you should inspect when using the internal DDR. 1) Make sure the Memory PLL in the Clock Manager is enabled. Output to 200 to 220 MHz. (See attached image) 2) The Memory System Service indeed does have a lot of switches and knobs. I suggest you reference the settings off of the pic32mz_da_sk_intddr_meb2_legacy configuration of aria_coffee_maker. A diff between the .mhc file of that configuration to yours should highlight any differences. Hope this helps. Attached Image(s) |
|
|
|
|
|
这正是我所做的,但我没有继承。有没有比传统的遗产更好的理由?换句话说,PIC32 MZZDAYSKIGIDEDRYMEB2有什么不对吗?
以上来自于百度翻译 以下为原文 That's exactly what I did, but I didn't go with legacy. Is there a reason that legacy is preferred over the regular one? In other words, what is wrong with pic32mz_da_sk_intddr_meb2? |
|
|
|
|
|
快速问题,如果你碰巧知道你的头,多少电流消耗的VDDR1V8引脚和VDDCIP引脚?处理器频率为200 MHz,存储器输出为220 MHz。IDDCULL的最大值是180毫安,但我不确定DDR内存消耗多少。我的1.8伏电源可能是300毫安最大供电电流的一个因素。问题是,我没有看到范围内的任何东西会显示出像电压骤降那样严重的问题。
以上来自于百度翻译 以下为原文 Quick question, if you happen to know off the top of your head, how much current is consumed by the VDDR1V8 pins and VDDCORE pins? Processor frequency is 200 MHz and the memory output is 220 MHz. The maximum for IDDCORE appears to be 180 mA, but I'm not sure how much the DDR memory consumes. My 1.8 V supply could be a factor at 300 mA maximum supply current. The thing is, I didn't see anything on the scope that would indicate a problem like the voltage dipping severely. |
|
|
|
|
|
所以另一个用户在这些下午告诉我,他们已经让咖啡机演示工作,但后来遇到了同样的问题,我所看到的,即重置问题。因此,浪费我的上午建立另一个委员会,并遇到同样的问题,我尝试了这个方法,并运行C。奥菲尔制造商演示。如果他们不正确的话。它并不完美,而且设置与我的不同,但是似乎没有任何重置。我需要进一步研究。
以上来自于百度翻译 以下为原文 So another user on these fora PM'd me that they had gotten the coffee maker demo to work, but then ran into the same problem that I have seen, namely the reset issue. So after wasting my morning building up another board and having that run into the same problems, I tried this approach and ran the coffee maker demo. D***ed if they weren't correct. It's not perfect, and the settings are different than mine, but there doesn't appear to be any resets. I will need to investigate this further. |
|
|
|
|
|
嗨,这是我B祝福;-我设计了一个定制板,基于MZDA初学者工具包是最简单的。使用3A和1V8的1A差分稳压器,测量了电源消耗,并注意到当内部DDR、4、3英寸LCD OEM具有电阻触控、背光升压调节器和MCU接近500毫安时,1V8稳压器是温暖的。ARI咖啡机工作正常(不允许触摸瞬间启用)还有飞溅屏幕。增加了一个新的屏幕,以一个图像序列,它也确实很好。问题是,当我开始一个新项目,所有的设置复制从飞溅屏幕,我创建一个新的屏幕与图像序列,然后我程序板开始重新启动在一个循环,闪烁的屏幕,没有图像,什么也没有。
以上来自于百度翻译 以下为原文 Hi, That´s me bblessing ;-) I designed a custom board too simplest as possible based on the MZDA starter kit. Used 1A dropout regulators for 3v3 and 1v8 , measured the power comsumption and noticed that when internal DDR, 4,3 inch LCD OEM with resistor touch, Backlight step up regulator and MCU is near 500 mA, the 1v8 regulator is warm. Aria coffee maker is working properly (no touch for the moment enabled) and splash screen too. Added a new screen to splash screen with an image sequence that really works fine too. The problem comes when I start a new project with all the settings copied from splash screen, I create a new screen with the image sequence and then I program the board it starts to reboot in a loop, flashing the screen, no image, nothing. Still working on it as bblessing. |
|
|
|
|
|
我注意到的一件事是,我不能运行PLL,使系统时钟是200兆赫。我能做的最好的是160兆赫。这对于我的目的来说是非常好的,但是要记住一些东西。有趣的是,HORANG的生成器试图在LIABARAYONCENTRONCE.C中去掉一些自定义代码,用于遗留项目。我会把它列入我的项目中,看看它是否有效,因为我找不到冒烟枪。哦,还有信用卡,因为信用卡是GigGyy:-)。找到这份工作很好。
以上来自于百度翻译 以下为原文 One thing that I have noticed is that I can't run the PLL up so that the system clock is 200 MHz. The best I can do is 160 MHz. This is perfectly fine for my purposes, but something to keep in mind. Interestingly enough, Harmony's generator tries to get rid of some custom code in libaria_harmony.c for the legacy project. I'll try including this into my project to see if it works, as I can't find the smoking gun otherwise. Oh, and credit where credit is due Jiggoly :-). Good job finding this. |
|
|
|
|
|
我已经能够用我的“零起点”项目在屏幕上找到一个按钮,虽然我不确定它是怎么做的(在恼怒中发生了很多变化)。这绝对不是我的配置位,因为我已经系统地还原它们回到我原来的集合。
以上来自于百度翻译 以下为原文 I have been able to get a button on the screen with my "from scratch" project, though I'm not sure what did it (lots of changes in a fit of exasperation). It's definitely not my configuration bits as I've systematically reverted them back to my original set. |
|
|
|
|
|
您好,谢谢您随时告知我们您的进展情况。看来我们提供的例子与你们的不同,功能也不同。然而,我们不能确切地说出这些差异是什么……所以很难帮助你。当你达到一个更稳定的点时,请告诉我们如果你对这些差异有什么疑问。我们会很乐意陪你走过它们。我们的文档可能在某种程度上受到限制,导致混乱。
以上来自于百度翻译 以下为原文 Hello, Thanks for keeping us informed about your progress. It seems that our supplied examples are different from yours, and the functionality is likewise different. However, we cannot tell exactly what these differences are... so it is difficult to assist you with them. When you get to a more stable point, please let us know if you have questions about these differences. We will be happy to walk you through them. It is likely that our documentation may be limited in some way, leading to confusion. |
|
|
|
|
|
我想我发现了我的问题:纽哈文展览。我不知道为什么我的司机曾经工作过,但是我在1/16/2017下载了数据表(NHD-4.3-48022EF-ASXN-T),当时我们正在考虑要做什么。我不记得我什么时候订购了LCD,但从那时起,他们改变了LCD驱动器IC(5/21/2017)。它从HX8257A到ST7222T2。在我精神上折磨Newhaven之后,我着手修复那些常数(后廊等)。之后我可以看到纽扣,但我看到了双人。我记得在图形作曲家管理编辑器选项中看到了一个叫做项目颜色模式的设置。这是为RGB565设置的。我把它换成了RGBA88,现在我有……卷筒……WYSIWYG!!!!我会指出,显示器,如果你砍掉咖啡机演示,是非常快的,现在的颜色是梦幻般的;梯度看起来可怕!我知道这还处于早期阶段,但现在它正在工作这个芯片岩石!!!!哦,芯片现在很酷。当然,这不是一吨,我有大量的散热,但这是非常令人鼓舞的。
以上来自于百度翻译 以下为原文 I think that I have found my issue: Newhaven display. I'm not sure why my driver ever worked, but I downloaded the datasheet (NHD-4.3-480272EF-ASXN#-T) on 1/16/2017 when we were mulling over what to work with. I can't remember when I ordered the LCDs, but between now and then they changed the LCD driver IC (5/21/2017). It went from a HX8257A to a ST7282T2. After I mentally torched Newhaven, I set out to fix those constants (back porch, etc). After that I could see buttons, but I was seeing double. I recalled seeing a setting on the Graphics Composer Management Editor Options called Project Color Mode. This was set for RGB565. I switched this to RGBA888 and now I have...drum roll...WYSIWYG!!! I would point out that the display, if you hack the coffee maker demo, is VERY fast and the colors are fantastic now; the gradients look awesome! I know this is still in the early stages, but now that it's working this chip rocks!!! Oh, and the chip is cool as a cucumber at the moment. Granted it's not doing a ton and I have lots of heat sinking, but this is very encouraging. |
|
|
|
|
|
很高兴听到事情已经解决了。我们不知道在显示器上有一个司机的变化,遗憾的是缺乏信息。我们创建的显示器确实是一段时间前的大量订单。这个特定的(咖啡机制造商)演示在即将推出的MPLAB和谐(V2.04)中有显著的性能提升。这包括对库的更新、GPU的启用(和用户控制)以及一些与触摸引擎的性能改进。所以,如果你现在满意了,我们只能从这里变得更好。
以上来自于百度翻译 以下为原文 Glad to hear things have worked out. We did not know there was a driver change in the display, sorry about that lack of information. The displays we have created are indeed from a lot order some time ago. This specific (coffee_maker) demo has significantly advanced performance in the upcoming release of MPLAB Harmony (v2.04). This includes updates to the library, enable (and user control) of the GPU, and some performance improvements with the touch engine. So if you are satisfied now, we only get better from here. |
|
|
|
|
|
目前,我只能运行所有演示与PIC32 MZ2064 DA176改变一些设置,但不能使一个新的项目使用MHC与所有相同的设置。从示例SpulHuffScript复制配置,也不起作用。我得到的是一个闪烁的白色屏幕在一个循环中。
以上来自于百度翻译 以下为原文 For the moment I can run only all demos with PIC32MZ2064DA176 changing some settings but can't make work a new project using MHC with all the same settings. Copied config from example splash_screen and doesn't work either. All I get is a blinking white screen in a loop. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1121浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 20:22 , Processed in 1.326451 second(s), Total 108, Slave 91 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
904