完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我们的远程软件工程师想让我们在我们的受控照明系统上运行一些调试代码。有一个问题,他说如果我们使用调试器,它将帮助我们诊断软件在哪里出错。Micro是PIC18F26K20。他说我们应该连接到PIN 14(TX)。GND在MICE。我们应该从这些引脚到笔记本电脑的USB端口运行电线。他说,我们还需要一个“串行数据到文件”程序,他说他使用“酷术语”,所以我想我们必须购买/下载它。你知道我们需要用什么程序来捕获调试数据吗?……是MPLAB IPE V3.26吗?……他给我们写了我们需要加载的代码……我们用PACKIT3把十六进制文件加载到微问题中。但是,接下来我们该怎么办?我们需要在调试模式下设置MPLAB IPE吗?
以上来自于百度翻译 以下为原文 Hello, Our remote software engineer wants us to run some debug code on our controlled lighting system. There is a problem with it and he says if we use the debugger it will help us diagnose where in the software its going wrong. The micro is PIC18F26K20. He says we should connect up to pin 14 (TX) and gnd at the micro. We should then run wires from these pins to the USB port of a laptop. He says we will also need a “serial data to file” program, and he says he uses “coolterm, so i guess we have to buy/download that? Do you know what program we need to use to capture the debug data?...is it MPLAB IPE v3.26? ...he has written us the code that we need to load for the purpose....we loaded the hex file into the micro no problem, using pickit3. However, what do we do next? Do we need to set up MPLAB IPE in debug mode or something? |
|
相关推荐
2个回答
|
|
我想试试看,你已经无法回答了,我不理解PIN 14和CouthTalk的用法。我也不理解直接运行到笔记本电脑的USB端口。这将完全满足我,如果这被称为PIN 17,这是“TX”针在18F26K20。Coolterm是一个或多个免费软件程序,是“哑巴终端仿真器”。我认为Coolterm打算在Mac OS下执行。还有其他类型的程序在Windows下执行,即TeraTerm、PuTTY、PROCOMM。他们期望通过OS连接到“COM”端口(或者,在某些情况下,TCP/IP“套接字”)。这些用于调试小微电路的典型用途是使用USB串行转换器。有很多这些可用的,我最喜欢的是AdfRuIT 954。它带有一个电缆,在一个模压的外壳,并有一个良好的设置Offelle引脚,方便连接到目标。我知道它是针对树莓Pi的,但是它在功能上非常通用,并且提供了与任何芯片的UART有用的标准数据传输。
以上来自于百度翻译 以下为原文 I'll take a shot at this, it seems unimaginable that you don't have replies already. I don't understand the use of pin 14 in conjunction with coolterm. I also don't understand running wires directly to the USB port of the laptop. It would satisfy me completely if this were stated to be pin 17, which is the "TX" pin on the 18F26K20. Coolterm is one of a dozen or more freeware programs which are "dumb terminal emulators". I think Coolterm is intended to execute under MAC OS. There are other programs of this type which execute under Windows, namely, TeraTerm, PuTTY, ProComm. They expect connectivity through the OS to "COM" ports (or, in some cases, TCP/IP "sockets"). The typical usage of these for debugging small micros is to use a USB-serial converter. There are many of these available, my favorite is Adafruit 954. It comes with a cable, in a molded housing, and has a nice set of female pins for easy connection to the target. I know it says it is for Raspberry PI but it is very generic in function and provides standard data transfer useful with any chip's UART. |
|
|
|
它是DIP包上的PIN 17,但是QFN包上的PIN 14。这个设计者看起来非常懒惰,或者对硬件的知识很差,或者你把他们所说的都简化了。你不能把Tx PIN直接连接到USB端口。首先,你需要一个“USB到串行”适配器,你不能连接DI。直通到USB,它必须是一个带有“TTL输出”的适配器,而不是RS232版本。记录串行输出是调试程序的一种粗略方式。它将需要修改固件来实际输出Tx PIN的信息。一个更强大的技术是将一个调试器像一个PICTIT3或ICD3连接到芯片上的编程端口。
以上来自于百度翻译 以下为原文 It's pin 17 on the DIP package, but pin 14 on the QFN package. This designer seems either very lazy, or has a very poor knowledge of hardware, or you are over-simplifying what they said. You cannot connect a Tx pin directly to a USB port. First, you need a "USB to serial" adaptor, you can't connect directly to USB, and it must be an adaptor with a "TTL output", not an RS232 version. Logging serial output is a crude way to debug a program. It will require the firmware to be modified to actually output information on the Tx pin. A far more powerful technique would be to connect a debugger like a PICkit3 or an ICD3 to the programming port on the chip. |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
772浏览 1评论
660浏览 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 08:28 , Processed in 1.221323 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号