完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我正在调试.RealICE.PICDEM2 PLUS板:AC244064(PIC16F1789ME2),RJ45和跟踪电缆连接。MPLAB-X 3.61。Windows 10安装了一个小型汇编程序来验证我的问题,包括在下面。(测试程序按预期运行,LED亮起来,我可以打破/犯罪。在实际的ICE的项目配置中,我设置了一个时钟:125 KIPS(如我在缺省的500 kHz上运行):跟踪和剖析:数据收集选择=“指令跟踪”,(所有其他DEF)AOT)在“Goto主循环”中设置断点,假设我可以看到跟踪中执行到断点的所有指令。但是跟踪是空的。我在跟踪窗口中发现的是“空TraceFielsRes=SDYReultTyNOx错误0”。与MPLAB X 3.45在MAC和MPLAB X 2.35上在其他Windows 10计算机上的结果相同。(总是启用“使用最新的固件”,所以在切换时需要一些时间来处理真正的冰。)我错过了什么?
以上来自于百度翻译 以下为原文 Hi. I’m debugging with • Real ICE • PICDEM2 Plus board • AC244064 (PIC16F1789-ME2) with both RJ45 and trace cable connected. • MPLAB-X 3.61 • Windows 10 Crated a small assembler program to verify my problem, included below. (The test program runs as expected, LED lights up and I can break / single step the program, using Real ICE.) I have run the Real ICE self test program, no problems reported. In the project configuration for Real ICE I have set • Clock: 125 KIPS (as I'm running on default 500kHz) • Trace and Profiling: Data Collection Selection = “Instruction Trace”, (all else default) Setting a breakpoint at “goto main-loop” and assuming I can see all instructions executed, up to the breakpoint, in the Trace. But the trace is empty. All I find in the trace window is “Empty TraceFile res = SD_RESULT_NO_ERROR 0”. Same result with MPLAB X 3.45 on a Mac and MPLAB X 2.35 on other Windows 10 computer. (Always enabled “Use latest Firmware” so it takes some time to reprogam Real ICE when switching.) What am I missing? ;main_1789_RealICE_Trace_Test_A.asm #include "p16f1789.inc" __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF __CONFIG _CONFIG2, _WRT_OFF & _VCAPEN_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO & _LPBOR_OFF & _LVP_OFF RST code 0 pagesel start goto start INT CODE 4 retfie MAIN code start banksel ANSELB clrf ANSELB banksel TRISB bcf TRISB, 2 ;One of PICDEM2 Plus LEDs banksel LATB bsf LATB, 2 ;Turn on LED main_loop goto main_loop end |
|
相关推荐
7个回答
|
|
嗨,你应该发布一张票到Microchip的支持,因为你的问题是非常具体的(需要几个特定的工具)。我想很少有用户可以帮助有关仿真芯片(几年前我已经使用PIC16F1939模拟器适配器,它工作得很好,但是我记不起来了。也许您想检查一下:http://MyCHIPPrdult.com/EnHead:Stand也是模拟器芯片的手册:http://W.1.MICCHIP.COM/DeLoSs/En/DeVICECD/OC022243B.PDFRGAGARD
以上来自于百度翻译 以下为原文 Hi, you should probably post a ticket to Microchip support as your issue is very specific (need several specific tools). I think few users might be able to help regarding emulation chip (I already used the PIC16F1939 emulator adapter several years ago and it was working fine but I cannot remember the setup needed in the project properties). Maybe you want to check this : http://microchipdeveloper.com/emhead:start and also the manual for the emulator chips : http://ww1.microchip.com/downloads/en/DeviceDoc/50002243B.pdf Regards |
|
|
|
您好,我可以在我的系统上测试您的代码,它对我来说很好,时钟速度为125 KIPS。我找不到PICDEM2板,所以我连接了一个通用编程模块板。我也使用MPLABX V3.61,不过我使用的是Win 7系统。我可以和一个同事打赢10个系统,明天再来找你。谢谢,Bhavik。
以上来自于百度翻译 以下为原文 Hello, I was able to test your code on my system and it works fine for me with the clock speed as 125 KIPS. I was not able to find a PICDEM2 board so I wired up a Universal programming module board. I am using MPLABX v3.61 as well. I am using a WIN 7 system though.. I can check with a co-workers WIN 10 system and get back to you tomorrow. Thanks, Bhavik |
|
|
|
嗨,Stenakew,我们在Windows 10系统上也检查过了,并且没有发现任何指令跟踪的问题。“跟踪/剖析”有一个“默认”选项卡,每当使用Reice时,它就会自动显示出来,这可能是空的。你在检查跟踪数据吗?对于指令跟踪,您需要手动打开跟踪窗口。您可以从窗口-gt;调试-gt;跟踪。这应该打开一个新的跟踪窗口,这是当我在断点(代码中的GOTO语句)停机时在我的计算机上看到指令跟踪数据的地方。您能确认吗?谢谢,Bhavik
以上来自于百度翻译 以下为原文 Hi Stenakew, We checked this out on a Windows 10 system as well and did not see any problems with Instruction trace. There is a “default” tab for “trace/profiling” which shows up automatically whenever using the ReaICE, which will probably be blank. Are you checking that for Trace data? For Instruction trace you will need to open the Trace window manually. You can do it from Window->debugging->trace. This should open a new Trace window and this is where I see the Instruction Trace data on my computer when I halt at the breakpoint (goto statement in your code). Can you confirm this? Thanks, Bhavik |
|
|
|
谢谢你的建议。我已经像你所描述的那样手动打开了跟踪窗口,但是仍然没有痕迹。因为只有在微芯片论坛中附加图像,我才在一个下拉框文件夹中保存了我的屏幕记录。[Link=HTTPS://www-DropBx.COM/SHI/ZIP1E4AQQC6NV/AAAE6DYOKVBBN84JIWHuksa?DL=0:http://www. Doffbox…com / kvibn84jiiWukSA?DL=0(/Link)记录在Windows 10内置的函数中。(键盘赢+G)希望你能看到我做错了什么和我做错了什么。
以上来自于百度翻译 以下为原文 Hi Bhavik. Thanks for your suggestion. I have opened the Trace window “manually” as you described, but still no trace. As it is only possible to attach images in Microchip forums I saved my screen recordings in a drop-box folder. [link=https://www.dropbox.com/sh/zip1e49ozaqc6nv/AAAe6DYoKvIbbN84JUIwHuksa?dl=0]https://www.dropbox.com/s...KvIbbN84JUIwHuksa?dl=0[/link] Recorded with Windows 10 built in function. (Keyboard Win + G). Hopefully you can see how and what I’m doing wrong. |
|
|
|
嗨,Bhavik,又一次。因为Win + G没有显示“弹出窗口”属性。我尝试将它们附加为图像。如果您有问题查看Dropbox文件,也可以追查跟踪窗口的图像。编辑:上传附件。
以上来自于百度翻译 以下为原文 Hi Bhavik, again. As the Win + G did not show the Properties "pop up" window. I try to attach them as images. Also an image of the trace window if you have problem viewing Dropbox files. Edit: Uploading attachments. Attached Image(s) |
|
|
|
嗨!解决了!我把跟踪电缆从-ME2MeMead头换成了真正的ICE,然后一切都如愿以偿。(是的,我已经把电缆插入/插入了很多次,但直到现在才被替换。)谢谢你的建议。(你每天都会学到一些新东西。)
以上来自于百度翻译 以下为原文 Hi. Solved! I replaced the trace cable from the -ME2 emulation header to the Real ICE and then all worked as expected. (Yes, I have removed/inserted the cable a number of times, but not replaced it until now.) Thanks for your suggestions. (You always learn something new every day.) |
|
|
|
你好!哇,看来你的电缆坏了吗?我看了你的视频和图像,安装和我的完全一样。很高兴它现在对你有用。谢谢你告诉我们,谢谢,Bhavik
以上来自于百度翻译 以下为原文 Hi! Wow, so it looks like you had a faulty cable? I looked at your videos and images and the setup looked exactly same as mine. Glad it works for you now. Thanks for letting us know. Thanks, Bhavik |
|
|
|
只有小组成员才能发言,加入小组>>
5198 浏览 9 评论
2016 浏览 8 评论
1940 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3188 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2243 浏览 5 评论
753浏览 1评论
639浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
526浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
650浏览 0评论
552浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-3 05:22 , Processed in 1.500611 second(s), Total 80, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号