Author Topic: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes  (Read 39244 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« on: January 18, 2016, 10:00:28 pm »
Dave and David2 battle to get an old Microchip PICkit 3 working with MPLAB X talking to Dave's new product.
A tale of misery, rabbit holes, Murphy, facepalms, and ultimately success. You get a warts and all journey.
A good example of how a tool that should have just worked, turned into a nightmare due to some bad luck and poor tool protocol and mode compatibility.

 

Offline DarkStar

  • Contributor
  • Posts: 20
  • Country: us
    • KU7PDX: Amateur Radio Station
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #1 on: January 18, 2016, 10:41:10 pm »
Can't wait to hear about this "new product!"
--Chris ^_^
 

Offline hamdi.tn

  • Frequent Contributor
  • **
  • Posts: 623
  • Country: tn
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #2 on: January 18, 2016, 10:48:41 pm »
Typical struggle to make things work  :-DD
At the same time i was trying to use pickit 2 after a year not used with 16F1824 and i couldn't cause not supported by Pk2.
i used both pk2 and pk3 i didn't like the pk3 at all.
for the problem you had , i had that too and i used the standalone application with pk3 (the one you used at the end of your the video) and not the API it was more reliable, sadly it crash for you, it could be an other version of the standalone app i didn't used pk3 for 2 years now. and if i remember correctly the one i used is a beta version i found in the microchip forum and not in the official product page.
 

Offline Herrbert

  • Newbie
  • Posts: 1
  • Country: de
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #3 on: January 18, 2016, 11:03:51 pm »
Avira prevented me from programming my cronusmax joypad adapter, it got recognized like yours. The programming just failed. Get rid of it for a second, reinstall it later if you need.
The guy who made the device was confused about this, too.
It worked month before with an older updater.
« Last Edit: January 18, 2016, 11:10:06 pm by Herrbert »
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #4 on: January 18, 2016, 11:08:48 pm »
Impressive that you have to use a separate tool to put it in the right "mode" so your other tool can talk to it. How could they afford bloody Atmel if they can't even afford developers who can figure out how to put that functionality directly into MPLAB? :-//
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #5 on: January 18, 2016, 11:09:48 pm »
Impressive that you have to use a separate tool to put it in the right "mode" so your other tool can talk to it. How could they afford bloody Atmel if they can't even afford developers who can figure out how to put that functionality directly into MPLAB? :-//

Yup, it's pretty retarded.
 

Offline jaromir

  • Supporter
  • ****
  • Posts: 337
  • Country: sk
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #6 on: January 18, 2016, 11:18:19 pm »
I assume the standalone PK3 application (used revert deaf PK3 into MPLAB mode) has to be used to put it into "non-MPLAB mode". AFAIK MPLABX IDE/IPE has no means to put the PK3 out of MPLAB mode.
No idea how Dave's PK3 got into non-MPLAB mode (=has different firmware than MPLABX expects).
 

Offline hamdi.tn

  • Frequent Contributor
  • **
  • Posts: 623
  • Country: tn
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #7 on: January 18, 2016, 11:35:16 pm »
I assume the standalone PK3 application (used revert deaf PK3 into MPLAB mode) has to be used to put it into "non-MPLAB mode". AFAIK MPLABX IDE/IPE has no means to put the PK3 out of MPLAB mode.
No idea how Dave's PK3 got into non-MPLAB mode (=has different firmware than MPLABX expects).

since i don't own pk3 anymore i can't test that, but i vaguely remember that it does. since it have to update its firmware everytime you change target family , it must have a way to change mode too.

check out this link, they talk about a "reset" option in the project property pane.
http://www.microchip.com/forums/m762080.aspx

 

Offline robertbaruch

  • Regular Contributor
  • *
  • Posts: 120
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #8 on: January 18, 2016, 11:45:20 pm »
About your sucky downloads, I had the exact same symptoms downloading other large programs (in my case, Mathematica). It would download a bit, then slow, then stop. Over and over. And I'm in Silicon Valley! Eventually I found out it was Kaspersky Antivirus that was causing this to happen, in addition to a bunch of other symptoms like just opening a folder and nothing happening for a few minutes until suddenly it pops up.

I switched to Avast and suddenly all my downloads work fine, no weird nonresponsive folders.

So maybe (cross fingers) turn off your antivirus to see what happens?
 

Offline TheCharels

  • Contributor
  • Posts: 12
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #9 on: January 18, 2016, 11:59:23 pm »
Dave,

You ain't done yet.

When the PICkit3 GUI tells you the device ID reads as (0)  then the ICD connections to the target are not working correctly.

You have still got some hardware debugging to do.

But then you know that as I just re-watched the last 8 minutes of your video and now I see a big red over-text  at about 35:02 that says your found a hardware issue.
« Last Edit: January 19, 2016, 12:38:18 am by TheCharels »
 

Offline piranha32

  • Supporter
  • ****
  • Posts: 151
  • Country: us
    • random ramblings of an engineer
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #10 on: January 19, 2016, 12:37:35 am »
Most of the problems must be some kind of Windows fuckery. I downloaded Mac version of MPLABX v3.15, set target to pic32, and... IPE did not work. Eventually MPLABX v1.95 recognized my PICKit3, but only after I switched target device to smaller device (dsPIC32). Uploaded firmware to the programmer, and worked fine. At this point I installed MPLAPX 3.15 again, and it worked with dsPIC32 (PIC32 requires connection to target device). Unfortunately I did not check with smaller devices before downgrading to v1.95, but I have a strong feeling that it was mostly PEBKAC error. I have no PIC processor to connect to, so I can't test communication with the device, but firmware uploads fine, and IPE connects to the programmer without problems.

EDIT: MPLABX installers for Mac are not as big as for Windows, but still, 250-350MB took only 2-3 minutes to download from Microchip's website.
« Last Edit: January 19, 2016, 12:40:44 am by piranha32 »
 

Offline TheCharels

  • Contributor
  • Posts: 12
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #11 on: January 19, 2016, 12:57:04 am »
In my experience MPLABX v3.20 does not play well with previous version of PICkit3 firmware.

The PICkit3 has three kinds of firmware in it.
1 - The bootloader. Seems solid, Works with all the GUIs I've needed.

2 - OS firmware. This is the problem.
The version loaded by MPLABX v3.20 does not play well with some of the previous MPLABX versions or MPLAB v8.92, but none of the IDE show a warning that the "new" OS firmware is not reliable.

3 - Target specific programming firmware.
This one does not play well when the OS firmware is not the same "vintage" as the target specific firmware.

This issue is likely unique to my situation. I have projects that for legacy reasons must be built with MPLAB v8.92 and new projects that build with MPLABX. When I fail to force an OS firmware and target specific programming firmware to update to the "current" version that the MPLAB IDE I am building with then the PICkit3 fails in strange an mysterious ways.

A good thing about the PICkit3 is that you do not need the MPLABX driver switcher to use it with MPLABX or MPLAB v8.92. The bad things is that as a debug tool it has problems that Microchip never seems able to fix.
« Last Edit: January 19, 2016, 01:14:06 am by TheCharels »
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #12 on: January 19, 2016, 01:07:58 am »
Congratulation, a day of work what needs a second with an Arduino IDE. Now the Microchip CEO has to make another funny answer video :-DD Would be better if they would fix the thing.

I like PICs, but PICkit 3 is terrible. PICkit 2 was fine, no problems with MPLAB. The new MPLABX is bloated and slow (it is based on Netbeans, written in Java, which itself is not that slow, but maybe all the custom Microchip plugins slow it down), and all these PICkit 3 target specific firmware is silly. The programmer itself should be dumb, they should put all the logic into the PC side. Recently I tested a new project I'm developing with a Lattice FPGA chip, which can be programmed with JTAG, and their programmer just uses a FT2232 chip, so you can build your own programmer easily. Yeah, I don't like the FTDI business practice, bricking fake devices, but they are the market leader and they do all the stuff for you like driver development, which is integrated in the Windows update etc. and you get an easy to use interface for low-level GPIO control, including some interesting high speed FIFO and JTAG modes, and UART.

For projects where I don't need the smallest, cheapest microcontroller, these days I just use a modern ARM microcontroller, like the nice LPC family microcontrollers from NXP. It has a USB port with a special boot mode. Just plug it into your PC, it is enumerated as a thumb drive, copy the new firmware to it (which the special boot loader will flash then very fast) and you are done.

Everything should be as easy as possible, like with the Arduino or the USB thumb drive firmware update process. Now the question is: Will this get more difficult with Atmel chips and more bug-ridden when Microchip buys Atmel? :popcorn:
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 
The following users thanked this post: xavier60

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #13 on: January 19, 2016, 01:16:11 am »
But then you know that as I just re-watched the last 8 minutes of your video and now I see a big red over-text  at about 35:02 that says your found a hardware issue.

It was more of a hardware PEBKAC  :palm:
 

Offline tindel

  • Newbie
  • Posts: 7
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #14 on: January 19, 2016, 02:06:07 am »
Jesus Christ!  Nearly 45 fucking minutes of dogging on Microchip.  How fucking boring.   :--

I certainly don't care for microchip - most practicing engineers agree, I think.  I always joke around saying "Microchip parts always work... sorta" or "Microchip parts always work... once you figure out how they work."

Microchip has published over and over again that the pickit3 isn't recommended for production programming.  Pony up and spend a couple more bucks for the ICD3 - and quit your bitching.

New drinking game. Take a drink every time Dave says  "Unbelievable"   :-+
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #15 on: January 19, 2016, 02:27:10 am »
Microchip has published over and over again that the pickit3 isn't recommended for production programming.  Pony up and spend a couple more bucks for the ICD3 - and quit your bitching.
But it should at least work out of the box, other manufacturers can do it better and even PICkit 2 was better. Lots of people are complaining about it. Imagine a student, trying to work with PICs. She'll give up and use instead an Arduino. Later as a CTO of big$ corp when she decides the next microcontroller for the million parts product: "I'll use Atmel, the software just works, I don't trust Microchip, even if it is a little bit cheaper".
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline rrinker

  • Super Contributor
  • ***
  • Posts: 2046
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #16 on: January 19, 2016, 03:26:42 am »
 True - years ago I bought a PICkit 2 starter kit that had the programmer and a small board with a 16F690, and I never had any issues with it, it all just worked out of the box, with multiple compilers - I tried a bunch besides the supplied stuff. Haven't messed with micros much since then - good thing it uses a standard micro-USB, I just pulled it out of the drawer and the cable's gone missing. Recently picked up some Arduino stuff, seem to be heading in that direction now - although I have a huge stash of 16F873 and 16F876 variations - 19 in all, acquired through Dave's most hated method, free samples. A model railroad control board I had been planning to use uses the 873 and with the chip being discontinued, I wanted to have enough to handle my future needs. Now, they just sit in my drawer gathering dust (on the outside of the box - they are in a box, all in anti-stat tubes)

 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #17 on: January 19, 2016, 03:30:19 am »
Microchip has published over and over again that the pickit3 isn't recommended for production programming.  Pony up and spend a couple more bucks for the ICD3 - and quit your bitching.

"Not recommended for production programming" is an excuse for not working now? Every product should work, you don't sell broken things, period.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #18 on: January 19, 2016, 05:02:23 am »
Jesus Christ!  Nearly 45 fucking minutes of dogging on Microchip.  How fucking boring.   :--

It was a blow-by-blow account of me solving a real problem with the tool I encountered.
If you find it boring, that's fine.

Quote
Microchip has published over and over again that the pickit3 isn't recommended for production programming.  Pony up and spend a couple more bucks for the ICD3 - and quit your bitching.

Are you serious?
I'm not doing production programming, I simply want to use the tool as intended to talk to a single device in my product.
It didn't work, I had every right to bitch.
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #19 on: January 19, 2016, 05:06:37 am »
I don't decry Dave for having presented his tortured exercise - as it is very relevant for the state of this segment of the industry AT THIS POINT OF ITS DEVELOPMENT.

Having to muck around with prior versions of software as he did is something I would expect from 10 years ago or more.
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #20 on: January 19, 2016, 06:04:48 am »
I don't decry Dave for having presented his tortured exercise - as it is very relevant for the state of this segment of the industry AT THIS POINT OF ITS DEVELOPMENT.

Having to muck around with prior versions of software as he did is something I would expect from 10 years ago or more.

I think a big part of this has to do with the fact that when microchip went to MPLABX they switched a lot of stuff from a proprietary USB driver/interface to a more standard one.   This required a change in the drivers in windows, and also changes to the firmware on the device itself.  Until you get the newer MPLABX drivers running on windows AND the firmware updated in the devices to be compatible with the newer drivers, things just act wonky.

BUT... once that is done, and you switch to using MPLABX exclusively these problems seem to go away and things work pretty consistently.

I would, however, recommend a ICD3 instead of the PICKit hardware.   The ICD3 just seems more stable.  I do multi-target work and I have had up to 3 of them attached to a single machine running 3 copies of MPLABX without any major issues.

 

Offline Dinsdale

  • Regular Contributor
  • *
  • Posts: 77
  • Country: us
    • pretzelogic
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #21 on: January 19, 2016, 07:16:28 am »
   Boy, was this timely for me. Just today I've played with my first bare metal AVR.
Getting SPI up. Hours to figure out I need to config all the SPI functionality first,
THEN set the SPE enable bit. Then everything was stupidity: "!" NOT, instead of "|" OR
in a few places, and the wrong SCK edge selected. Somehow it took most of the day.

   I took a break and your video reminded me that I'm not alone and made me laugh at myself.

   I've used older versions of MPLABX - mostly OK but I've had my share of weird behaviour.
It's really nice just to use vim, gcc, and avrdude. I know exactly what's going on, it
always works and I don't have to deal with any ones vision of an "environment".
This can't be happening.
 

Offline Alexei.Polkhanov

  • Frequent Contributor
  • **
  • Posts: 684
  • Country: ca
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #22 on: January 19, 2016, 07:48:09 am »
ICD3, MSP430 programmer, USB Blaster ... every time I need to connect to another bloody chip I need to spend $75 to $299 on programmer and they all essentially same - USB-to-serial or USB-to-JTAG interface with few tweeks! So much waste, why can't they use same hardware !? I know it never going to happen  ;D

Just now I have uninstalled all old Microchip software (ver 1...something) from my PC (Win 10) using Windows Control Panel, I downloaded latest version of MPLAB-X, I plugged in PickIt-3 from 2 years ago without pressing any buttons on it and voila, it just worked. Whole procedure took about 12-15 minutes including time to update firmware on PickIt after I have selected the target device (PIC16). I guess it was fast because I expected that it would not work, so it is like Murphy in reverse?
 

Offline Stonent

  • Super Contributor
  • ***
  • Posts: 3824
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #23 on: January 19, 2016, 07:55:15 am »
Just heard it a lot :)


The larger the government, the smaller the citizen.
 

Online AndyC_772

  • Super Contributor
  • ***
  • Posts: 4223
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #24 on: January 19, 2016, 08:06:53 am »
I feel compelled to ask what it is I'm doing 'wrong'.

I use a PICKIT3 regularly, and it just works. For development, for production, in programmer-to-go mode which my customers love. It just works, every time, no problems at all. It works for me, and it works for the customers I have using boards with PICs in them.

I know it's a major PITA when equipment doesn't "just work", and long-term readers will know I have no tolerance for quirky lab gear. If you've found issues with the PICKIT3, I totally sympathise. But it does seem that the only time this particular device gets mentioned is when it goes wrong, and I think that's misleading. It's not that bad!

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5317
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #25 on: January 19, 2016, 08:29:38 am »
I use a PICKIT3 regularly, and it just works.

So do I, but one thing I am sure of regarding experiencing frustration with the PK3 (and pretty much any other hardware debugger) is that there are those who have, and those who will.
 

Offline jaromir

  • Supporter
  • ****
  • Posts: 337
  • Country: sk
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #26 on: January 19, 2016, 08:48:58 am »
I took one of my three PicKit3 debuggers and did a bit of torture to it.
The only way how to get it into funky state was via PK3 application (Tools->Download PicKit operating system), as seen on ss1 and ss2 attached to this post.
Then, IPE was really unable to connect to PK3, as seen on ss4.
I disconnected PK3, pushed button on it, reconnected and IPE downloaded correct firmware as expected. I noticed that Dave's error message while connecting IPE to "wrong" firmware was different to what I got.

Did this a few times, including reverting to MPLAB mode via PK3 application and I kept the PK3 busy for around half of hour with no problems whatsoever - except of failing to close the PK3 application (access to file denied). I'm pretty sure it worked on this machine before, perhaps some bloody windows update?

By the way this is the first time I switched to non-MPLAB mode or used button to revert PK3 to its default state. I've never used that before and myself and my colleagues (including non-technical users) are using PK3 really a lot.
 

Offline mux

  • Regular Contributor
  • *
  • Posts: 119
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #27 on: January 19, 2016, 09:31:30 am »
I use a PICKIT3 regularly, and it just works.

So do I, but one thing I am sure of regarding experiencing frustration with the PK3 (and pretty much any other hardware debugger) is that there are those who have, and those who will.

Once anything Microchip doesn't work, it's been an endless struggle to get it working again. This has to do with a bunch of things, some of which are conscious design decisions and some of which are just legacy things:
- Probably by far the most important thing: Microchip is really fucking bad with their documentation. Like, it's one of the worst companies in this respect and only recently has it become significantly better. They used to have the 'locked behind glass doors' philosophy, where you had to become an authorized whatever to get access to full datasheets/manuals and the like. This also meant that support on forums was very limited. And they have a million different chips, so docs are important. A lot of upgrades were blind, especially IDE/programmer updates, meaning you had no comprehensive changelogs and no guide to tell you what has changed, how to upgrade and what to look out for. Errata were very late. Other companies have this problem too (see Atmel with their XMEGA introduction), but Microchip is one of the worst offenders. It's only really annoying when you consider that everything non-microcontroller that Microchip made had awesome, detailed datasheets and appnotes.
- As already stated many times before, PICKit uses an MCU that was just too small by design to fit in programming code for all parts. So you have to reprogram its flash memory every time, and for some people it gives out after a year or two (couple thousand P/E cycles).
- Microchip by design uses dozens of different programming protocols, whereas most competitors have unified programming interfaces even across chip series, which means more points of failure
- Microchip changed their mind on a few interfaces, most importantly on USB payload sizes, which fucks up a lot of version boundaries (requiring you to use the older version of programming software to flash a newer firmware which *is* compatible with the next version)
- Similarly, a bunch of programmers and software packages are simply not tested with all versions of windows, which leads to stuff like the recent issues with Windows 8 and 10 (which, by the way, haven't been fixed after 2 years)
- Microchip has a few programmers (among which PK2 and 3) that don't have any built-in mode switching. As to why - there seems to be no technical reason, they just didn't program it. Which means you can have it in the wrong mode and just not be able to use it. Yeah, it has a button but you don't have access to that in a remote ICSP situation (e.g. in a climate controlled chamber or anechoic chamber) - meaning those tools aren't even useful for prototyping.
- the list goes on, this is the stuff I'm familiar with + what came up with the video.

Combine bad design decisions, changing Windows APIs/requirements and poor documentation and you get a perfect legacy horror story. It's the same kind of situation you get with old LPKF milling routers that are essentially worthless without the accompanying 25 year old Windows 3.1 computer with strange ISA plug-in card. And that milling machine came out in 2002 :P

And you haven't even started me on PICBASIC...

This also very much explains why a lot of people say 'well I bought the Microchip XX and it worked just fine out of the box, no problems whatsoever' - yeah, it does when it first comes out, because all the duct tape has been applied in such a way to just barely work on the current version of Windows with the current product portfolio. But just you wait until the patching begins ;-)

Keep in mind that these stories are also slightly fueled by many lost weeks to Microchip tools.
 

Offline LazyJack

  • Frequent Contributor
  • **
  • Posts: 252
  • Country: hu
  • Yeah, cool.
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #28 on: January 19, 2016, 09:50:14 am »
I just can't wait Microchip buying Atmel and use MPlab on AVR. :P
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #29 on: January 19, 2016, 09:55:25 am »
I just can't wait Microchip buying Atmel and use MPlab on AVR. :P

They did it a couple of years back:
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #30 on: January 19, 2016, 10:01:09 am »
   Boy, was this timely for me. Just today I've played with my first bare metal AVR.
Getting SPI up. Hours to figure out I need to config all the SPI functionality first,
THEN set the SPE enable bit. Then everything was stupidity: "!" NOT, instead of "|" OR
in a few places, and the wrong SCK edge selected. Somehow it took most of the day.

Careful you don't brick your AVR chip by playing with those config bits!
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #31 on: January 19, 2016, 10:29:24 am »
But it does seem that the only time this particular device gets mentioned is when it goes wrong, and I think that's misleading. It's not that bad!

You must be young.  This is the way of the world for most things  - PICkits included.
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 9926
  • Country: nz
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #32 on: January 19, 2016, 12:17:20 pm »
Need to rename the video "A typical day in the life of a PIC software engineer"
 :-DD
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline philn

  • Newbie
  • Posts: 3
  • Country: de
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #33 on: January 19, 2016, 01:56:34 pm »
Hey Dave,

About your new product: I think it would be far more interesting if you showed what you're actually developing/working on instead of always keeping it a secret. It's so often that I hear you saying "I'm working on this, I'm doing that... but I can't talk about it." Why is that? I think that's what a vlog should actually be about, and what the term "video blog" implies, a video web log of your daily life as an engineer.
 

Offline Supercharged

  • Regular Contributor
  • *
  • Posts: 61
  • Country: ch
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #34 on: January 19, 2016, 05:19:47 pm »
Hey Dave,

About your new product: I think it would be far more interesting if you showed what you're actually developing/working on instead of always keeping it a secret. It's so often that I hear you saying "I'm working on this, I'm doing that... but I can't talk about it." Why is that? I think that's what a vlog should actually be about, and what the term "video blog" implies, a video web log of your daily life as an engineer.

He said he is developing it with another company so maybe they don't want him to talk about it
Science is about what is, engeneering is about what can be.
-Neil Armstrong
 

Offline ercapoccia

  • Regular Contributor
  • *
  • Posts: 79
  • Country: it
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #35 on: January 19, 2016, 06:23:23 pm »
Just tried my PicKit3 i got from banggood with MPLAB IPE and it worked like a charm.

 

Offline roli

  • Regular Contributor
  • *
  • Posts: 69
  • Country: si
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #36 on: January 19, 2016, 06:51:30 pm »
This is why I love working with ARMs. At least the ARM SWD debugging interface is pretty standard. I've been programming my Nordic nrf51 chips with my STM 32f4 discovery board (that includes the STLink debugger) without any issues. I did that because I can get an STM board for 10€ while the Nordic dev kit costs around 80€. Yes the Nordic dev kit has a debugger from Segger but as a student I really have no need for that.
 

Offline Alexei.Polkhanov

  • Frequent Contributor
  • **
  • Posts: 684
  • Country: ca
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #37 on: January 19, 2016, 06:54:18 pm »
It looks like most of people who have problems did not UNINSTALL previous versions of all Microchip software from their workstations prior to installing latest version. As simple as that.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #38 on: January 19, 2016, 07:23:18 pm »
Yes, as simple as doing something the installer should have figured out for itself. If running multiple versions simultaneous doesn't work, the installer should refuse to do it.

I've yet to see anyone give an explanation that doesn't translate to "Microchip developers are incompetent".
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline VinzC

  • Regular Contributor
  • *
  • Posts: 227
  • Country: be
  • See you later, oscillator.
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #39 on: January 19, 2016, 07:25:51 pm »
I completely understand Dave's rant here. That reminds me of other struggling (long) moments and I also have gone through such rants over and over. This journey honestly should remind designers, *all* of them — including us — how and why retro-compatibility matters. Clearly Microchip suck at it one way or another.

We're too much used to things being temporary and ditching them as we buy anew. Of course not every industry behaves carelessly like this and there are who care for long lasting products. There should be no such struggle through upgrading and no one should accept that. This is not evolution, this is slavery. Maybe that implies a change of attitude about obsolescence...
« Last Edit: January 19, 2016, 08:54:47 pm by VinzC »
 

Offline TheCharels

  • Contributor
  • Posts: 12
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #40 on: January 19, 2016, 11:15:54 pm »
After watching the video again I would like to say that Dave has as much if not more responsibility for the problems encountered than Microchip. Granted that the PICkit3 has multiple opportunities to cause problems but this rant seems to me to be more shrill with regard to Microchips contribution to his problems than his own past actions.

This is like blaming the hole in the wall on how Browning makes their 12 bores but not bothering to mention you forgot you stored it loaded.

It's a lot of fun to watch Dave whinge on about the marginal tools giant companies foist on their customers.

Come on Dave you set yourself up for this problem. :)
 

Offline artag

  • Super Contributor
  • ***
  • Posts: 1064
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #41 on: January 19, 2016, 11:33:46 pm »
Dave does like to rant .. but badly documented introductory tools deserve it. How would you have had him handle it ?
 

Offline MT

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: aq
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #42 on: January 20, 2016, 12:44:12 am »
Impressive that you have to use a separate tool to put it in the right "mode" so your other tool can talk to it. How could they afford bloody Atmel if they can't even afford developers who can figure out how to put that functionality directly into MPLAB? :-//

That's similar to the question: the meaning of life! :)
The 2 sec of silence just before and the following ahhhhhhhhhh moment in the video was great! ^-^
I have had numerous of those!
« Last Edit: January 20, 2016, 01:40:16 am by MT »
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #43 on: January 20, 2016, 01:18:14 am »
Hey Dave,

About your new product: I think it would be far more interesting if you showed what you're actually developing/working on instead of always keeping it a secret. It's so often that I hear you saying "I'm working on this, I'm doing that... but I can't talk about it." Why is that? I think that's what a vlog should actually be about, and what the term "video blog" implies, a video web log of your daily life as an engineer.

Some phrases for you:

- Commercial-in-confidence
- Industrial secret
- Non-disclosure agreement

These are just a few pointers to one of the most important rules of product development - not letting your competition know what you're working on!!  There can be multiple reasons for this - the first is the absolute need for confidentiality if you are working on a development for a patent application.  The second is to get your product into the market before anyone else.  Being first to market means you establish your product as the leader and start getting sales while your competitors play 'catch up'.

Then there's the possibility of military applications.  Say no more.

As it is, if Dave says he "can't talk about it" and still presents a blog, you can rest assured that those details of any given project he might be working on are not required for the objective of the blog.  Yes, it might well be a really interesting subject, but they are off limits for a public blog.  Also, don't think asking him or visiting his lab will get you any info either.  The reasons for him not sharing publicly will likely cover those situations as well.


The bottom line is that if Dave doesn't tell you something - it's because it's not his place to say.

As for:
Quote
a video web log of your daily life as an engineer.

Please.  Let's not get into this argument.  But I will tell you now that if Dave ever turns into a Kardashian - I'm outta here!!
 

Offline pciebiera

  • Newbie
  • Posts: 4
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #44 on: January 20, 2016, 03:44:41 am »
Holding the button down while connecting the PK3's USB will cause the bootloader to trigger.
You don't really need the 3.10 stand alone tool.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #45 on: January 20, 2016, 03:50:55 am »
Holding the button down while connecting the PK3's USB will cause the bootloader to trigger.
You don't really need the 3.10 stand alone tool.

And you shouldn't need to do that much to get the damned thing to talk with the current software which is meant to use it.
 

Offline nixfu

  • Supporter
  • ****
  • Posts: 346
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #46 on: January 20, 2016, 04:36:44 am »
Well, I had been considering trying out PIC at some point....but I think I will stick with AVR and ARM programming.

I want nothing of that mess of a product stack.

« Last Edit: January 20, 2016, 04:41:49 am by nixfu »
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #47 on: January 20, 2016, 05:17:45 am »
Well, I had been considering trying out PIC at some point....but I think I will stick with AVR and ARM programming.
Depends on your product, but you should think about it again. There is a reason that there are PICs in many commercial products. I don't know if this is official company policy, but looks like you can still get any PIC ever produced, e.g. PIC12C508, introduced 20 years ago (says archive.org). And usually for the same performance they are cheaper than competitors, and reasonable low power (but I think something like the MSP430 is better for extreme low power, but more expensive). And as mentioned before, once it works, it works. The chips itself are very good (albeit the architecture of the peripherals are strange sometimes), it is just the development environment and documentation which could be better.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #48 on: January 20, 2016, 05:59:22 am »
Holding the button down while connecting the PK3's USB will cause the bootloader to trigger.
You don't really need the 3.10 stand alone tool.

Something that's not even mentioned in the PICkit3 user guide IIRC.
And even then you have to know you need to do this in the first place, and that wasn't the least bit obvious.
The point is you shouldn't even have to do this.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #49 on: January 20, 2016, 06:02:08 am »
After watching the video again I would like to say that Dave has as much if not more responsibility for the problems encountered than Microchip. Granted that the PICkit3 has multiple opportunities to cause problems but this rant seems to me to be more shrill with regard to Microchips contribution to his problems than his own past actions.

Rubbish, the tool should have worked. Or handled it better.

Quote
Come on Dave you set yourself up for this problem. :)

It's not like I hacked the tool in the past, I simply used it as it was intended to be used, with their tool. Then when I go to use it a few years later it doesn't work, and it's completely non-obvious why that is the case.
How is that my fault?
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #50 on: January 20, 2016, 06:07:12 am »
About your new product: I think it would be far more interesting if you showed what you're actually developing/working on instead of always keeping it a secret. It's so often that I hear you saying "I'm working on this, I'm doing that... but I can't talk about it." Why is that?

Because the company who is actually developing it is paying for that development. Agreements are in place. It is understandable they do not want me talking about every aspect of the development with the public.

Quote
I think that's what a vlog should actually be about, and what the term "video blog" implies, a video web log of your daily life as an engineer.

That has never has been the case for my "Video Blog".
There are some others that do that if that's what you are after.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #51 on: January 20, 2016, 06:13:32 am »
The bottom line is that if Dave doesn't tell you something - it's because it's not his place to say.

Yes, I'm usually open to a fault. If I say I can't show something then there are good reasons for that. Sometimes it might be a legal reason, sometimes it might just be personal preference (e.g. to avoid a flood of "why didn't you do this or that" bitching comments, or I simply don't think its worthwhile shooting and releasing something on it) or anything in between.

As for the product in question, I would love to blog the development of it, but I legally can't do that.
 

Offline mux

  • Regular Contributor
  • *
  • Posts: 119
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #52 on: January 20, 2016, 09:04:04 am »
Don't get too worked up about this, Dave :P it's absolutely impossible to satiate everyone.
 

Offline philn

  • Newbie
  • Posts: 3
  • Country: de
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #53 on: January 20, 2016, 11:48:30 am »
Because the company who is actually developing it is paying for that development. Agreements are in place. It is understandable they do not want me talking about every aspect of the development with the public.
Okay, I get that. I thought you were talking about the uCurrent or other EEVBlog products you are currently developing, because that's what I think would be great to see more of on the blog.
 

Offline TheCharels

  • Contributor
  • Posts: 12
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #54 on: January 20, 2016, 01:23:01 pm »
It's not like I hacked the tool in the past, I simply used it as it was intended to be used, with their tool. Then when I go to use it a few years later it doesn't work, and it's completely non-obvious why that is the case.
How is that my fault?
What appears in your video shows that latest versions of MPLAB (X and v8.92) are used to attempt to connect to the PICkit3. Then the oldest version of the PICkit3 standalone GUI, then the final PICkit3 standalone GUI. This is the one that seems to have gotten it sane enough to work with MPLAB.

That you needed to use all these steps to get MPLAB to connect suggests that when you last used the PICkit3 you left it in a mode where only the standalone GUI could connect to it. Your fault? No. Contributory negligence maybe.

I agree that this is an awful lot of fiddling around. Microchip tools must have better messages to inform casual users that the ICD tool needs updated firmware. Coughing up a "cannot connect" message is just BS.
 

Offline Tek_TDS220

  • Regular Contributor
  • *
  • Posts: 74
  • Country: 00
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #55 on: January 20, 2016, 04:18:11 pm »
I've used both the AVR IDE and MPLAB X (with an ICD3).  I much prefer the MPLAB X environment, and I mostly use Microchip parts as a consequence.  I know this is a matter of taste.  MPLAB X is incredibly powerful, the editor is wonderful, and it is free!  Dave's complaints are mostly legitimate, but he goes way overboard in my opinion. 

Why is not downloading the compiler at the same time a problem?  I think Dave is underestimating the problem of translating source code to new compiler versions.

As for problems with downloading, I've never had a problem from my relatively slow connection.
 

Offline D3f1ant

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: nz
  • Doing as little as possible, but no less.
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #56 on: January 20, 2016, 07:15:41 pm »
I prefer the MplabX IDE too. If you disabled all the plugins you don't use/need/want it loads a bit faster. A feature of the  pickit3 I really like is the program to go function, saves so much time when you have load firmware into a large batches of prototype devices. They say not use it for 'production programming' but from what I understand that is only because the pickit can't verify over a wide enough voltage range. I don't see that being a problem if your running the mcu on a regulated supply.
ICD3 is better/faster/more capable tool, and you can pick them up for a discount during E14 sales, or during Microchips own sales.
 

Offline mux

  • Regular Contributor
  • *
  • Posts: 119
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #57 on: January 21, 2016, 10:48:31 am »
Tek/Defiant: do you prefer MPLAB X to Atmel Studio (the Visual Studio fork) or to AVR Studio? Because I can understand the latter, but I can't see how anything trumps visual studio. It's a programmer's dream, maybe aside from Sublime. If you're already accustomed to C#/C++ programming in VS2012+, it's also very easy to get into.
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #58 on: January 22, 2016, 11:51:06 am »
Tek/Defiant: do you prefer MPLAB X to Atmel Studio (the Visual Studio fork) or to AVR Studio? Because I can understand the latter, but I can't see how anything trumps visual studio. It's a programmer's dream, maybe aside from Sublime. If you're already accustomed to C#/C++ programming in VS2012+, it's also very easy to get into.

I can't compare with the AVR, but I will mention that MPLABX is Netbeans underneath.  It even handles netbeans plugins which are for the underlying version of netbeans.

For me, this is awesome since I do a lot of embedded web server work on the PIC's.  As a result, I can actually do the web development for the web pages which live in the embedded system right on the box.   It's also GCC and a pretty standard make under the surface for PIC32's, so you can do some of the customization you'd expect.

-forrest

 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #59 on: January 22, 2016, 09:54:47 pm »
God help atmel if they sell out to microchip, or rather god help those of us who will want to use the parts that actually do whjat we want. The equivalent AVR programmers do not do all this bollocks where to have to set it to differrent modes and download new firmware to the programmer every time you change device category. it's nuts.
 

Offline TheCharels

  • Contributor
  • Posts: 12
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #60 on: January 23, 2016, 07:39:06 am »
After a 40 minute rant on using the PICkit3 with MPLABX how long will the rant on MPLABX be when Dave has used it to develop code?

MPLAB v8.92 is old, feature poor but at least it has behaved consistently. MPLABX is moody. At times these advanced "features" of the editor fail to work as expected.  I've been using v3.10 for a while now and know about most of the issues. I am wary of upgrading to v3.20 until more users have reported on its behavior.

I just hope Dave have a boring productive experience so I can move on to MPLABX v3.20 confident that Microchip has done a good job.
 

Online bitwelder

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: fi
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #61 on: January 23, 2016, 09:20:29 am »
As for the product in question, I would love to blog the development of it, but I legally can't do that.
Do you think you will be (legally) able to walk through the product development, once the product will be out?
(If so, please remember to collect some clips while you're developing on it)
 

Offline vloki

  • Newbie
  • Posts: 2
  • Country: de
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #62 on: January 23, 2016, 11:50:31 am »
A good example of how a tool that should have just worked, turned into a nightmare ...
Just another "good example" of what can happen if users don't read the readme
and forget all the hints they get when switching the PK3 OS.
Anyway very entertaining :-DD
« Last Edit: January 23, 2016, 11:55:06 am by vloki »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5317
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #63 on: January 23, 2016, 01:36:30 pm »
A good example of how a tool that should have just worked, turned into a nightmare ...
Just another "good example" of what can happen if users don't read the readme
and forget all the hints they get when switching the PK3 OS.

Riiiight. There speaks the voice of experience. Not! Not a week goes by without something not working on a hardware debugger. Debugging the debugger is regrettably an accepted tax on development time, indeed it's a rare but pleasant surprise when it does work as expected.
 

Offline vloki

  • Newbie
  • Posts: 2
  • Country: de
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #64 on: January 23, 2016, 01:39:53 pm »
The equivalent AVR programmers do not do all this bollocks where to have to set it to differrent modes ...
Guess the devellopers of these products have been clever enough not to budge to the customers
complains and did not give them what they want. It's more easy to service if there is only one mode...
 

Offline Feynman

  • Regular Contributor
  • *
  • Posts: 192
  • Country: ch
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #65 on: January 23, 2016, 02:12:29 pm »
I rather use a good IDE with shit tools, than a shit IDE with shit tools. So I use MPLAB X  ;D
 

Offline Drazn

  • Newbie
  • Posts: 4
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #66 on: January 23, 2016, 03:35:53 pm »
I'm with MC for some 15 years, MC Design House and ex Distributor. Only what I can say MC software is crap. X is enormous, slow Java crap. MC is NOT for professional use! Even today X has problems with breakpoints (all MC IDEs have this problem) and very slim functionality compared to ARM tools. Compilers, even they are GCC (x16 and x32), have problems (eg breakpoins again). Expensive RealICE could not be compared to cheaper and more powerful Segger.
For last two years I'm on ARM and thats totally different story, software and hardware. Debuggers are more expensive than RealICE (Lauterbach 5000Eur, DSStream 3000Eur, Segger 500-900Eur) but what you get and what you could do is light years ahead of MC. Java crap Eclipse is faster than X with identical functionality.
ARM (M3) is more powerful than PIC32 (MX series)- various features like FBP, DWT, etc. My JTAG speed is 25MHz! with 30cm cable and NEVER any problem during debugging. As different to RealICE where communications error are normal. Not to mention Performance Pack  where for 150Eur you do not even get plastic box! Or 70 USD trace cable for PIC32 with 20 cm flat cable, few resistors, PCB and connector!
Identical story for MC libraries, not to mention crap called Harmony.

And now Atmel is going to become software disaster! I'm sure MC is not going to support Visual Studio for PICs!
 

Offline VK3DRB

  • Super Contributor
  • ***
  • Posts: 2252
  • Country: au
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #67 on: January 24, 2016, 11:43:33 am »
Microchip is nowhere near as bad as Microsoft. Installing the super-bloatware Visual Studio Community Edition produces strange errors come up on the PC. I spent 2 days frigging around with trying to install this rubbish and in the end gave up. Based upon the many bugs and bad UI in recent versions of MS Word, I can only conclude Microsoft is not funding their R & D properly, or are outsourcing the R & D to India. Maybe Gates and Bullmer hand back some of their loot for hiring decent project managers, programmers and test people. I work with a Visual Studio guru who agrees Microsoft has seriously gone downhill in the last few years. I noticed when the MPLAB crashed, Microsoft's error message inviting you to check for a solution on-line. Why didn't Dave click on that option? Because he, like everyone else, knows Microsoft will just waste their time with some answer aimed at old age pensioners.

At least with the PICkit 3, once it is working it is pretty rock solid. It is a little slow though and the ICD 3 is much faster. And at least it is a genuine PICkit 3 and not an pirated device made by some comrade in China. Good luck with the project. The 24 series are pretty good chips.
 

Offline mux

  • Regular Contributor
  • *
  • Posts: 119
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #68 on: January 24, 2016, 06:53:00 pm »
That must be some serious grudge against Microsoft, because basically the one and only reason they're so successful is because they've always been such a good platform for developers, developers, developers. Visual Studio is the bomb and VSCE is no exception. It's one of those tools, like IntelliJ IDEA, where the tool really does so much for you that you don't even consider it until you have to switch to something else and suddenly realize how much unnecessary typing and searching you have to do all of the sudden.

Doesn't mean they're perfect, but they're far from buggy and bloatware. If that was your experience, you've probably done something wrong on your end?

Also... Neither Gates nor Ballmer have anything to do with this and haven't had for over 10 years now :P
 

Offline Len

  • Frequent Contributor
  • **
  • Posts: 547
  • Country: ca
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #69 on: January 24, 2016, 09:33:55 pm »
Installing the super-bloatware Visual Studio Community Edition produces strange errors come up on the PC. I spent 2 days frigging around with trying to install this rubbish and in the end gave up.

I use Visual Studio Community and Pro editions on several PCs and I haven't had any strange errors. (Except in my own code of course.)
DIY Eurorack Synth: https://lenp.net/synth/
 

Offline VK3DRB

  • Super Contributor
  • ***
  • Posts: 2252
  • Country: au
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #70 on: January 24, 2016, 09:50:48 pm »
... Neither Gates nor Ballmer have anything to do with this and haven't had for over 10 years now :P

Sounds like Dick Smith.

Thinking about Dave's PICkit in the wrong mode, smart software would have told him it in the wrong mode - like a warning message when it could not connect. No fault by Dave at all. Good software design would have save Dave a day's work.
 

Offline Drazn

  • Newbie
  • Posts: 4
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #71 on: January 25, 2016, 07:14:42 pm »
Microchip is nowhere near as bad as Microsoft. Installing the super-bloatware Visual Studio Community Edition produces strange errors come up on the PC. I spent 2 days frigging around with trying to install this rubbish and in the end gave up. Based upon the many bugs and bad UI in recent versions of MS Word, I can only conclude Microsoft is not funding their R & D properly, or are outsourcing the R & D to India. Maybe Gates and Bullmer hand back some of their loot for hiring decent project managers, programmers and test people. I work with a Visual Studio guru who agrees Microsoft has seriously gone downhill in the last few years. I noticed when the MPLAB crashed, Microsoft's error message inviting you to check for a solution on-line. Why didn't Dave click on that option? Because he, like everyone else, knows Microsoft will just waste their time with some answer aimed at old age pensioners.

At least with the PICkit 3, once it is working it is pretty rock solid. It is a little slow though and the ICD 3 is much faster. And at least it is a genuine PICkit 3 and not an pirated device made by some comrade in China. Good luck with the project. The 24 series are pretty good chips.

There is a BIG difference between MC and MS, VS is complete Windows (x86, x64 and ARM) development suite with compilers, SDKs, various editors (eg graphics) and help system for all of above. In VS are included SEVERAL (one of the best) compilers - C/C++, C#, F#, etc. Not to mention resource "compiler", help, installation.
X is ONLY IDE, buggy IDE and awfully slow! Did you tried to press F1 in source file with caret on some C function or PIC register? What about InteliSense? I can just ha ha ha  :-DD

I agree with one: VS is getting worse! It started with VS.net, than disaster VS10. Latest VS2015 is big speed improvement to 2013.

 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #72 on: February 09, 2016, 02:18:39 pm »
Another interesting problem: Don't press the black button of the PICkit3 (program-to-go function), it can brick your PIC and the programmer:
http://www.microchip.com/forums/m635420.aspx
Might be releated to the comment later in the thread last year, that the PICkit3 can only provide 30 mA if you power your board from it, and behaves undefined if your board needs more. A bit more current would have been nice, or at least one more dollar worrth of parts for over current protection.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline mux

  • Regular Contributor
  • *
  • Posts: 119
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #73 on: February 11, 2016, 11:35:21 am »
I like this concept of a 'DO NOT PRESS THIS'-button. Adds a bit of spice to an otherwise dull life.
 

Offline cezar

  • Contributor
  • Posts: 39
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #74 on: February 15, 2016, 03:05:13 pm »
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5317
  • Country: gb
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #75 on: February 16, 2016, 10:27:06 am »
Did anyone notice that?

https://www.microchip.com/mplab/mplab-xpress

No but I have now. All was going well... until I tried to make it work with the ****ing debugger.
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #76 on: November 04, 2017, 11:27:27 pm »
Posting it here, because someone here might know a solution, but looks like it is another annoying unfixed problem with PICKit 3: They removed the possibility to recalibrate the OSCCAL word for the older devices, if I didn't miss something:

https://www.eevblog.com/forum/beginners/pic-12f509-the-target-has-invalid-calibration-data-(0x00)/

Glad I still have my PICKit 2 as well.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #77 on: November 05, 2017, 01:43:57 am »
Posting it here, because someone here might know a solution, but looks like it is another annoying unfixed problem with PICKit 3: They removed the possibility to recalibrate the OSCCAL word for the older devices, if I didn't miss something:

https://www.eevblog.com/forum/beginners/pic-12f509-the-target-has-invalid-calibration-data-(0x00)/

Glad I still have my PICKit 2 as well.

According to the datasheet for these devices:

Quote
In addition, a calibration instruction is programmed into the last address of memory, which contains the calibration value for the internal RC oscillator. This location is always uncode protected, regardless of the code-protect settings. This value is
programmed as a MOVLW XX instruction where XX is the calibration value, and is placed at the Reset vector. This will load the W register with the calibration value upon Reset and the PC will then roll over to the users program at address 0x000. The user then has the option of writing the value to the OSCCAL Register (05h) or ignoring it.

All you should need to do is ensure an appropriate MOVLW instruction is in the last word of program memory, preferably based on reading what was placed there from the factory.   I haven't tested this to see if it works.  But I also haven't used the internal oscillator in years (crystals are too inexpensive not to use, and I'm not space sensitive).



 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #78 on: November 05, 2017, 02:48:42 am »
Yes, but the value can get deleted, as the other thread I linked showed (and other people on the Microchip forum had the same problem), and it might be more accurate if it is possible to do the calibration again.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #79 on: November 05, 2017, 05:08:44 am »
Yes, but the value can get deleted, as the other thread I linked showed (and other people on the Microchip forum had the same problem), and it might be more accurate if it is possible to do the calibration again.

Ahh, I missed the 'auto regenerate' option....

I'm surprised someone hasn't written a chunk of code to deal with this particular issue (i.e. output a squarewave on a pin, then adjust per measurement).

 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2365
  • Country: de
    • Frank Buss
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #80 on: November 15, 2017, 06:08:19 am »
Finally I got a response from Microchip support: "I got a response from our development team. As of the moment, there is no plan in supporting OSCCAL feature in PICkit 3.". So now it is official: PICkit 3 is worse than PICkit 2.
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 

Offline bloguetronica

  • Frequent Contributor
  • **
  • !
  • Posts: 354
  • Country: pt
Re: EEVblog #841 - Microchip MPLAB X PICkit 3 Woes
« Reply #81 on: November 15, 2017, 11:33:38 am »
Talking about nightmares. PICkit 3 is an absolute nightmare and sometimes it just doesn't work. Both the software and hardware are too complicated and prone to fail. I almost bricked the thing once. I ceased to use PICs a long time ago, because the programming tool is garbage and you need to pay just to optimize the code.

Now I use the Parallax Propeller with an FTDI UART (but any kind of USB to UART converter will do). The software tool SimpleIDE works on Linux as well as on Windows. It works every time, provided I don't mess up the definitions. It supports all configurations you can think of, clock rates, baud rates, you name it. Never had any problems with it. Bricking it is pretty much impossible.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf