Microchip
直播中

李英灿

8年用户 174经验值
私信 关注
[问答]

如何将PIC32 USB入门工具包II(DM320003-2)连接到MPLAB X IDE V4.01

大家好,请帮助/建议我连接PIC32 USB启动器套件II到MPLAB X IDE V4.01。我想用MPLAB和谐IDE项目代码使用MPLAB X IDE V4.01编程和调试PIC32 MX795F512L微控制器。当我在MPLAB X IDE中选择编程选项时,没有检测到该板。当我指的是用户指南或PIC32 USB启动器套件II时,我发现起动器套件只支持MPLAB IDV44和以上。请告诉我如何连接PIC32 USB启动器工具包II到MPLAB X IDE V4.01以及如何编程。而且我有一个疑问,我们是否需要任何Digigg/程序员连接启动器套件与IDE,因为启动器套件有迷你USB端口在板上编程和调试。它没有任何其他端口来编程/调试。请帮助我算出它。

以上来自于百度翻译


      以下为原文

    Hi all, please help/suggest me to connect the PIC32 USB Starter kit II to MPLAB X IDE V4.01.

i want to program and debug the PIC32MX795F512L microcontroller with MPLAB HARMony project code using MPLAB X IDE V4.01. when i'm selecting programming options in the  MPLAB X IDE, the board is not detected. and when i'm referring the user guide or PIC32 USB Starter kit II, i found that the starter kit will support MPLAB IDE v8.44 and above only. please suggest me how to connect PIC32 USB Starter kit II to MPLAB X IDE V4.01 and how to program. and also i have a doubt like do we need any debigger/programmer to connect the starter kit with IDE because the starter kit is having mini USB port on board to program and debug. and it doesn't have the any other port to program/debug.

please help me to figure it out.


Regards
Krishna

回帖(6)

郑雅颖

2018-12-11 15:58:42
是的,你把USB电缆从你的PC连接到板上的迷你B连接器。它显示在硬件工具窗口下的传统启动工具包& & SDK PIC32。我已经附加了一个屏幕截图从我的Linux系统。它在我的Windows 7 PC上工作,但外观略有不同。在Windows系统上,它显示(在“设备和打印机”下)为“定制微芯片USB设备”在Linux上,LSUB报告“ID04D8:00 E0 Microchip技术公司PIC32启动板”,我还没有与任何其他PC开放测试。评级系统,但这些都符合预期:没有外部程序员需要。底线:一旦附加它的行为就像一个皮卡3。编程是完美的,但我不使用(即没有使用)调试功能。另一件事:我会说,对于一些版本的MPLABX,我注意到某些PKOB设备没有被识别,除非它们在启动MPLABX之前连接到PC。无论是在MPLABX版本4.01和4.05之前或之后插入它,似乎都没什么区别,但我想我会提到它。有时事情有点不一致。或者至少这是我不时听到的声音。戴夫,

以上来自于百度翻译


      以下为原文

   
Yes, you connect a USB cable from your PC to the Mini-B connector on the top of the board.  It shows up in the Hardware Tool window under Legacy Starter Kits->SDKE PIC32.
 
I have attached a screen shot from my Linux system.  It works the same on my Windows 7 PC, but the appearance is slightly different.
 
On the Windows system it shows up (under "Devices and Printers") as "Custom Microchip USB Device"
On Linux, lsu*** reports "ID 04d8:00e0 Microchip Technology, Inc. PIC32 Starter Board"
 
I haven't tested with any other PC operating systems, but with these it works as expected: No external programmer needed. 
 
Bottom line: Once attached it acts like a PICkit 3.  Programming has been perfect, but I don't use (i.e. haven't used) the debug functionality.
 
One other thing:
I will say that for some versions of MPLABX I noticed that certain PKOB devices aren't recognized unless they are connected to the PC before starting MPLABX.  It seems not to make a difference whether you plug it in before or after starting MPLABX version 4.01 and 4.05, but I thought I would mention it.  Sometimes things are a little inconsistent.  Or at least that's what I hear from time to time.
 
 
Regards,

Dave
 
   Attached Image(s)

举报

蓝静

2018-12-11 16:04:06
你好,戴夫,谢谢你的回复。正如你所建议的,我在打开MPLAB X IDE(V4.01)之前连接了USB启动器套件。IDE被检测到板,我可以编程。[MMKAPEX LCDUbjStruthKiTyth-DimoOx项目BuffrVIDES 编程。PNG[/Image ],但我的问题是在编程板之后,在MPLAB X IDE中,它显示为运行目标。(请检查附加图像)。但实际上它并没有运行我下载的程序,所有三个LED都被关闭了。请告诉我,我们如何确认编程的应用程序是否在电路板上运行。

以上来自于百度翻译


      以下为原文

    Hi Dave,
 
Thank you for your reply.
 
as you suggested, i have connected the USB starter kit before opening MPLAB X IDE(v4.01). IDE is detected the Board, i'm able to program it. 
[image]D:MMKApex LCDUSB_STR_KIT__DEMO_PROJECTSObeservationsprogramming.png[/image]
but my question is after programming the board, in MPLAB X IDE it is showing as running target.(please check the attached image). but actually it is not running the program which i have downloaded and all the three leds went to off state.
 
please tell me, how we can confirm whether the programmed application is running or not on the board.
 
   Attached Image(s)

举报

蓝静

2018-12-11 16:23:57
谢谢你,戴夫,我终于可以为初学者准备节目了。

以上来自于百度翻译


      以下为原文

    Thank you DAVE finally i'm able to program the Starter kit.
 
 
Regards
Krishna
举报

郑雅颖

2018-12-11 16:31:40
程序员验证字节,即上传到设备是成功的。我建议你从一个裸露的金属(即非和谐)应用开始,只是闪烁一个LED。我总是从底层做起,努力工作。(但那只是我,我很滑稽。)有一件事在我脑海中浮现:我不记得哪种版本的MPLABX,或者哪个程序板程序员在编程后没有自动重置目标有问题。在MPLABX窗口顶部有一个图标,用于重置和释放重置目标。你可以试试,只是为了踢球。如果它可以重置和释放,那么你必须假设它正在运行。也许代码中有些东西不起作用。(这很难让我承认,但有时我的程序确实有漏洞。总之,无论如何,在任何应用程序中:然后回到主程序的开头,然后介绍一些可视的(比如闪烁的LED)来显示一些进展。你不必一路回到协调器来用这样的东西来检测你的代码。写代码就行了!那么现在一切都好吗?还是运行代码有问题?问候,戴夫

以上来自于百度翻译


      以下为原文

   


The programmer verifies, byte by byte that the upload to the device was successful.
I suggest you start with a bare-metal (i.e. non-Harmony) app that just blinks an LED.  I always start at the bottom and work my way up.  (But that's just me; I'm funny that way.)
 
One thing crosses my mind:
I can't remember which version of MPLABX or which on-board programmer had a problem with not automatically resetting the target after programming.  There is an ICON at the top of the MPLABX window to Reset and Release From Reset the target.  You might try that, just for kicks.  If it can Reset and Release, then you have to assume it's running.  Maybe something in the code is not working.  (It's hard for me to admit, but it happens from time to time that my programs actually have bugs.  Really.)
 
Anyhow, with any application:
Then back up to the beginning of main() and introduce something visual (like a blinking LED) that shows some progress.  You don't have to go all the way back to the Harmony configurator to instrument your code with stuff like this.  Just write the code!
 

 
So: Is everything OK now?  Or are there still problems running code?
 
 
Regards,

Dave
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分