我在 linux ubuntu 上,目标是 PIC18F47J53。我基本上想对芯片进行编程,然后让它运行,使用命令行和使用pickit4。使用 ipecmd(来自 mplab x ide v5.45),这是我的命令:
/opt/microchip/mplabx/v5.45/sys/java/zulu8.40.0.25-ca-fx-jre8.0.222-linux_x64/bin/java -jar /opt/microchip/mplabx/v5.45/mplab_platform/mplab_ipe/ipecmd.jar -TPPK4 /P18F47J53 -M -F"/path_to_myfile.hex" -W
这是我的输出
DFP Version Used : PIC18F-J_DFP,1.4.41,Microchip
*****************************************************
Connecting to MPLAB PICkit 4...
Currently loaded versions:
Application version............00.06.66
Boot version...................01.00.00
Script version.................00.04.17
Script build number............db473af2f4
Tool pack version .............1.6.961
PICkit 4 is supplying power to the target (3.25 volts).
Target device PIC18F47J53 found.
Device Revision Id = 0x1
*****************************************************
Calculating memory ranges for operation...
Erasing...
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
program memory: start address = 0x1fc00, end address = 0x1fff7
configuration memory
Programming/Verify complete
Program Report
30-Jan-2021, 12:54:41
Device Type:PIC18F47J53
Program Succeeded.
Operation Succeeded
一切都好,大约需要 12 秒,但是,在这之后 pickit4 关闭电源目标,并且 pickit LED 为蓝色(我猜状态“准备好”)
主要问题是如何让pickit4为电路板供电?有什么具体参数吗?(我在 readme.html 上找不到)
如果我使用 MPLAB X IPE GUI 进行编程,编程会快得多(3 或 4 秒),pickit LED 为黄色并且目标保持通电状态。(我选择了“从重置中释放”)我试图尽可能详细地注销日志,但我看不到发送到pickit4的命令。
任何想法?谢谢