完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我尝试使用MPLABX 5 +XC8 2 + PICtiT4来锻炼AVR设备,即ATMEGA328 P。我不是PIC设备及其生态系统中的新手,也不是AVR设备,但遇到了问题。首先,似乎没有明确的线索如何连接AVR到PACKIT4。在PK4用户指南中,除了PIC ISP、MIPS EJTAG、皮层SWD和两个数据流接口外,没有提到AVR ISP信号分配。其中一条线有MISO/MOSI/SCK/SS,但没有复位引脚的指示;也没有GND和VTG线路(!)?)我假设这是一个预期的AVR引脚(和猜测6是RST引脚)。我建立了一个主循环包含一个(1);循环,并试图运行编程在ISP和Debug GeDe.DW失败,并要求我回落到ISP,ISP结束挂在那里永远。我猜RST引脚是1,但运气也不好。我把示波器连接到ISP数据线上,在任何引脚上都没有明显的活动。我把电源移到目标板上,确保电源轨几乎为零,PK4仍然看到目标电压(?)如果有坏的连接,我希望MPLAB报告错误的设备ID。我知道AVR支持仍然是beta,但是这一个对我来说相当混乱。有没有更多的运气与MPLAB 5和AVR设备?
以上来自于百度翻译 以下为原文 Hello, I tried to use MPLABX 5.00 + XC8 2.00 + PicKit4 to exercise AVR device, namely Atmega328p. I'm not new into PIC devices and its ecosystem, nor into AVR devices, but ran into problem nonetheless. First of all, there seems to be no clear clue how to connect AVR to PicKit4. In PK4 user guide, there is no mention of AVR ISP signal assignment except of PIC ISP, MIPS EJTAG, CORTEX SWD and two data stream interfaces. One of them has lines marked MISO/MOSI/SCK/SS, but no indication of RESET pin; as well as no GND and VTG lines (!?). I assumed that this one could be expected pinout for AVR (and guessed 6 to be RST pin). I set up project with main loop containing one while (1); loop and tried to run programming in both ISP and debugWire modes. DW fails and asks me to fall back to ISP, ISP ends up with Currently loaded versions: Application version............0.14.227 Target voltage detected Erasing... hanging there forever. I re-guessed RST pin to be 1, but no luck with that either. I attached oscilloscope to ISP data lines and there is no apparent activity on any of the pins. I removed power to the target board, made sure there is almost zero on power rail, PK4 still sees target voltage (?) and performs the same action. If there was bad connection, I'd expect MPLAB to report wrong device ID. I understand AVR support is still beta, but this one is rather confusing to me. Did anyone had more luck with MPLAB 5 and AVR devices? |
|
相关推荐
5个回答
|
|
因为IPPE V5.00的发行说明实际上是从2017年开始的,我找不到任何地方的AvRISP注销的PK4……在数据流接口& GT;DGI列上,它看起来至少是AVR注脚命名约定最接近的,但是正如您所说,没有重置标记。由于引脚4和5也是所有其他接口上的数据线(而引脚5是所有接口上的软件驱动时钟),所以我猜想PK4上的引脚1实际上是“AVR ISP连接器*”(在较新的6引脚AVR头上的引脚5),因为PIC使用拉到地的“低电平”。对于大师明确…*或更可能…PICKit的“为未来目的保留”PIN 6?我先试试看!这可能是危险的其他车载组件尝试这个,因为可能有一个机会,完整的“PIC”12V的VPP被扔在AVR的复位引脚…如果PK4不禁用这个输出在AVR模式;我似乎记得一个高电压复位设置AVR到下载模式,并停止运行代码…因为没有文档,它真的是“吸吮和看”,你很幸运地尝试了巨型328 P,因为它实际上是支持PK4的少数AVR芯片之一!在MPLAX X中查看设备Puff.HTML,“黄色”列表是非常瘦的…目前我在安装失败后在Windows 7上重新安装MPLAB X V5.00(不留下任何卸载选项!)……在Linux MINT下玩……仍然没有SD卡的支持……我可以尝试使用我的BasARDUIO家用冲浪板,它是用AVR 6针头构建的,所以我可以用Bascom AVR编程MGA 8/88/168/328。
以上来自于百度翻译 以下为原文 As the release notes for IPE v5.00 are actually from 2017 and i can't find the PK4 for AVRISP pinouts anywhere... under the Data stream interfaces >DGI column it does seem the closest to the AVR pinouts naming convention at least, but as you say, no reset is marked. As pins 4 and 5 are also data lines on all the other interfaces (and pin 5 is software-driven clock on ALL the interfaces) I would guess that either pin 1 on the PK4 is actually 'reset' for the AVR ISP connector * (pin 5 on the newer 6-pin AVR header) as the PIC's use a pull to ground 'active low' for master clear... *OR more likely...the PICKit's 'reserved for future purposes' pin 6? i would try this first! It may be risky for other on-board components to try this; as there may be a chance of the full 'PIC' 12V VPP being thrown at the AVR's reset pin...if the PK4 doesn't disable this output in AVR mode;i seem to remember a high voltage reset sets the AVR into download mode and stops it running code...? As there is NO documentation its really is 'suck it and see' you're in luck trying the mega 328P; as its one of the few AVR chips the PK4 actually supports! looking in the device support.html in MPLAB X the 'yellow' list is mighty skinny... At the moment i am re-installing MPLAB x v5.00 on windows 7 after a failed install (leaving no uninstall option!)...and playing with it under Linux mint...still no support for the SD card though...i may try using my Bastarduino Home-brew board which was built with a AVR 6-pin header so i could program mega 8/88/168/328 using BASCOM AVR. |
|
|
|
在进一步的生根之后,我发现了一些用于PACKIT2的软件的引用,该程序是AVRS',该引脚是PICkit连接器到AVRISP(板上连接)按以下顺序:-1-VPP到5-RST,2-VDD到2-VTG,3-VSS/GND到6GND,4-ICSPDAT/PGD到1-MISO,5-ICSPLK/PGC到3-SCK,6AUX N/C到4-MOSI。这至少是有意义的…来微芯片溢出豆子…眨眼:更新…NHH..不工作;通过ISP头连接到ARDUINO UNO:消息只是:“……当前加载的版本:应用程序版本……0.14227目标电压检测”,这一切:-没有目标ID,程序,或读取可用…
以上来自于百度翻译 以下为原文 After further rooting about i found a reference to some software for the PICKit2 to hack it to program AVR's the pinout was PICkit connector to AVRISP (on-board connection) in the following order:- 1-VPP to 5-RST, 2-VDD to 2-VTG, 3-VSS/GND to 6-GND, 4-ICSPDAT/PGD to 1-MISO, 5-ICSPCLK/PGC to 3-SCK, 6-AUX N/C to 4-MOSI. which at least makes sense... come on microchip spill the beans...wink: Update... Nahh..doesn't work; connected to Arduino uno via ISP header: the message is just:- " ... Currently loaded versions: Application version............0.14.227 Target voltage detected " and thats all:- no target ID, PROGRAM, or READ available... |
|
|
|
BeZealDead我完全忘记了那个…所以习惯于2帝国分离!但是找不到任何关于PACKIT4的引用。
以上来自于百度翻译 以下为原文 Bizzarely i completely forgot that one...so used to the 2 empires being seperate! can't find ANY references to PICKit4 there though. |
|
|
|
这个问题是众所周知的和正在工作的。但是通过消息日志挖掘我看到的问题…所以有两个关键问题。结帐AC102015适配器。还有…有人看过自述文件吗?格林先生:
以上来自于百度翻译 以下为原文 The issue is known and being worked. But digging through the message log on the issue I see... So two key issues. Checkout AC102015 adaptor. And... has anyone looked at the readme? mr green: |
|
|
|
找到自述文件,它所说的都是AC102015。
以上来自于百度翻译 以下为原文 Found the readme, all it says is use AC102015. |
|
|
|
只有小组成员才能发言,加入小组>>
5159 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2224 浏览 5 评论
726浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
625浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 20:35 , Processed in 1.188464 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号