• AVR Freaks

AnsweredHot!Is there a PC project that can upgrade firmware for PIC32MZ?

Author
RodoPIC
Senior Member
  • Total Posts : 173
  • Reward points : 0
  • Status: offline
2019/03/27 16:00:26 (permalink)
0

Is there a PC project that can upgrade firmware for PIC32MZ?

Hi all,
I'm interested in upgrading the firmware of a PIC32MZ project via USB from a PC. I'm aware that I need a bootloader app to start but that's on the PIC32MZ side. What about in the PC side: Is there a project (ideally Visual Studio) available? 
Thanks
#1
nigelwright7557
Super Member
  • Total Posts : 213
  • Reward points : 0
  • Joined: 2006/11/06 08:15:51
  • Location: 0
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/27 16:04:00 (permalink)
1 (1)
I use a PICKIT 3 for all my PIC work.
Had one for a few years now and its been 95% reliable.
I did buy a PICKIT 4 but it packed up after 2 weeks !
So gone back to PICKIT 3.
 
#2
campbellCustom
Starting Member
  • Total Posts : 65
  • Reward points : 0
  • Joined: 2014/08/30 14:35:35
  • Location: 0
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/27 16:42:23 (permalink)
0
Yeah, a Visual Studio example would be great. (this is where I wink in an unsubtle way at Microchip). I remember a MPLAB X plugin, that may or may not have been removed. And may or may not have supported USB.
 
I decided not to implement a bootloader based on the odd jumble of information concerning AN1388 and whatever else was in Harmony.
 
I still have gear out there that uses the MLA bootloader on the MX. It's possible the ChipKIT people have something for the MZ?
#3
NKurzman
A Guy on the Net
  • Total Posts : 17340
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/27 17:18:01 (permalink)
0
Did you get your pickit4 replaced?
#4
NKurzman
A Guy on the Net
  • Total Posts : 17340
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/27 17:19:54 (permalink)
5 (1)
USB what? If it is CDC you can use until serial port software. Or write your own.
Did you look at the harmony USB bootloader example?
#5
nigelwright7557
Super Member
  • Total Posts : 213
  • Reward points : 0
  • Joined: 2006/11/06 08:15:51
  • Location: 0
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/28 04:40:26 (permalink)
0
NKurzman
Did you get your pickit4 replaced?

If the PICKIT4 broke once then it would probably break again so I just got my money back.
The PICKIT3 is ok for now.
The only thing better about the PICKIT4 was debugging mode.
PICKIT3 kept crashing out when debugging.
I bought the PICKIT4 to debug some USB code but then it turned out the bug was in Harmony and not my code.
#6
sskr
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/02/07 06:20:27
  • Location: 0
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/28 04:55:11 (permalink) ☼ Best Answerby RodoPIC 2019/03/28 09:20:08
0
Hi, Rodo!
 
I'm on the bootloader as well at the moment. Take a look at this:
https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en554836
 
Application for uploading hex files is included, as well as its source code (i think it's written in C++). I have tested it with Harmony 2.06 generated bootloader drivers and PIC32MZ and it works!
 
 
#7
friesen
Super Member
  • Total Posts : 2051
  • Reward points : 0
  • Joined: 2008/05/08 05:23:35
  • Location: Indiana, USA
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/28 09:11:05 (permalink)
0
With a capable device like the MZ, any particular reason you are using a cord?
 
I personally prefer host USB or ethernet where possible.  So my workflow is this:
 
1. My release build runs a command line process that builds an encrypted bin file.
2. User upgrades the device from the ethernet gui.
3. If #2 doesn't work, update from USB thumb drive.
 
Of course for #2 to work you have to have some flash space available somewhere for buffering, like an sst26 or similar.

Erik Friesen
#8
RodoPIC
Senior Member
  • Total Posts : 173
  • Reward points : 0
  • Status: offline
Re: Is there a PC project that can upgrade firmware for PIC32MZ? 2019/03/28 09:26:52 (permalink)
0
@friesen: I'll be posting another question on the encryption/validation of the hex file. Thanks.
#9
Jump to:
© 2019 APG vNext Commercial Version 4.5