U2 programmer problem - Saleae Logic Probe measurements, SOLVED


Closed Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588

    Question U2 programmer problem - Saleae Logic Probe measurements, SOLVED

    This started while completing a school project with my daughter:

    - U2 USB programmer on Core2Quad-2600 PC.
    - problems started after a few days of normal operation.
    - 16F877 seems to program properly according to MeLabs pgmer messages.
    - mcu fails to run properly on circuit.

    - moved to old MeLabs Serial programmer on AMD-1800 PC.
    - no problems at all using same mcu and circuit.

    - tried U2 USB programmer on AMD-1800 PC.
    - no problems at all using same mcu and circuit.

    I have no clue what's going on. I've used many USB devices on the C2Q, the programmer had worked properly for several days. I tried front and rear USB jacks, no difference.

    So I decided to connect the Saleae Probe using identical settings and see what's going on. MCLR has apparent differences right away at end of programming cycle. PGC and PCD also have differences but I didn't bother trying to get pics of those.

    I would have liked to get faster sample rates, but there's a limit to the buffer size; the faster you go, the less time you can collect.

    Name:  U2 pgm 16F877 Easy Quiz - Compare labelled.JPG
Views: 1677
Size:  203.2 KB

    Identical PIC environment on both PCs:
    Windows XP Home SP3
    PIC Basic Pro v2.60c
    Microcode Studio Plus v3.0.0.5
    MeLabs U2 Programmer v4.32
    Saleae Logic Probe v1.1.8
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Hi Robert,
    I'm afraid I currently have no idea what your actual problem is and I don't see any apparent difference between the two screenshots, what is the problem that you see on the trace? Anyway, I thought I'd write you a line about LOGIC.

    Yes, there's a limited amount of samples but surely you can have more than 1M AND higher samplig frequency. On a slow(ish) computer you might not be able to reach 24MHz but you should be able to go WAY up from where you are now. Just select, say 10M samples at 500kHz instead. Or does that not work for you for some reason?

    You can give each channel a name in the software, just click on the text Channel 1, Channel 2 etc and punch in your name. That way you don't have to photoshop that in later.

    I don't see you have any trigger set up, did you capture it "on the fly"?

    /Henrik.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Yup, no trigger. I just watched the programmer messages and started the sampling as soon as the Verification step finished.

    I started at 1M but the sampling ended quickly. The slower the speed, the more time the sampling lasted. The programming step lasts over 10 seconds so I had to go all the way down to get it all.

    Thanks for the labelling idea, didn't read the manual yet. I just wanted to try something with my new toy and thought that it might help figure what is wrong with the U2 on only 1 PC.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Quote Originally Posted by HenrikOlsson View Post
    Hi Robert,
    I'm afraid I currently have no idea what your actual problem is and I don't see any apparent difference between the two screenshots, what is the problem that you see on the trace? ...
    Here's a zoom of the end of the programming cycle (sorry, I inverted the PCs from the pervious pic).
    Name:  U2 pgm 16F877 Easy Quiz - Compare zoom.jpg
Views: 1059
Size:  258.3 KB

    EDIT: There's a bit more activity on the bottom chart from 14.7s, and that's the PC that programs properly.
    Last edited by Demon; - 15th May 2011 at 16:48.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Hi,
    OK, now I see the difference, I still have no idea what the problem might be though.

    To the left of the sampling frequency drop down box you have another dropdown where you select how many samples to take at your currently selected sampling frequency. You can take as much at 10G samples which, at your current rate of 50kHz would last 55h. Even at the highest sampling frequency, 24Mhz (if you computer can keep up) 10G samples will last almost 7 minutes(!).

    /Henrik.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    There's also activity on PGC on the AMD PC after 13.6s. I went back for a better pic in case it was an issue with the zoom not yet picking up a short signal:

    Name:  U2 pgm 16F877 Easy Quiz - Compare zoom max.jpg
Views: 1027
Size:  198.3 KB

    I'm definitely missing pulses on the C2Q PC and have no clue why that would be.

    Either something is wrong with the USB ports, which is unlikely 'cause every other device works properly; gaming wheel/yoke/thrust quadrant/joystick, mouse, keyboard, digital camera, logic probe, etc.

    Or something is wrong with the U2 programmer at the driver level, 'cause the hardware works properly on the other PC.

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Quote Originally Posted by HenrikOlsson View Post
    ...Even at the highest sampling frequency, 24Mhz (if you computer can keep up) 10G samples will last almost 7 minutes(!)...

    I'll test this after breakfast (wife bellows).

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Quote Originally Posted by HenrikOlsson View Post
    ...I don't see you have any trigger set up...
    What would you suggest?

    I figure using MCLR is the key, but under what conditions?

    I checked the manual but didn't see too much detail on trigger. I've never used a "trigger" before, it does exactly that right? It starts the procedure and then that condition is ignored?

    So I'd look for MCLR going up?

    I assume getting rid of that Blank Check Before and Verify After steps could help too, it's not really necessary.

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Disconnect any extra hardware attached to your computer (camera, printer & plah plah plah)

    Clean the USB driver with UsbDeview, reconnect your U2 programmer, wash & rinse again.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    BTW, is the Saelig probe able to handle the 13V (or so) on the MCLR pin?!?

    Get rid of it while programming.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  11. #11
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    I upped the rate to 100M@200KHz.

    (the bottom PC is the one that programs properly)

    This is the start of the programming step:

    Name:  U2 pgm 16F877 Easy Quiz - Pgm start.jpg
Views: 1008
Size:  271.6 KB

    At first glance things look practically identical. The only thing I haven't figured yet in Logic is how to get the same zoom ratio to make it easier to visually compare 2 windows.


    This is a zoom on that very first PGC signal from the red box:

    Name:  U2 pgm 16F877 Easy Quiz - Pgm start A.jpg
Views: 1084
Size:  222.7 KB


    The PGC signals are somewhat delayed relative to PGD.


    And this is the second PGC signal:

    Name:  U2 pgm 16F877 Easy Quiz - Pgm start B.jpg
Views: 1010
Size:  250.8 KB

    An even bigger difference in signals.


    I guess I'm stuck to using the old Pentium 4 until I figure this out.

    (I have to say I love my Saleae logic probe)

  12. #12
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,588


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements

    Quote Originally Posted by mister_e View Post
    Disconnect any extra hardware attached to your computer (camera, printer & plah plah plah)

    Clean the USB driver with UsbDeview, reconnect your U2 programmer, wash & rinse again.

    I only have mouse and keyboard attached.

    Cleaned with Usbdeview, uninstalled programmer, rebooted, reinstalled v4.32 from CD and everything works ok!

    Merci le Bleuet!

  13. #13
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: U2 programmer problem - Saleae Logic Probe measurements, SOLVED







    [Insert Big Grin here]
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts