Advice please - Warning message


Closed Thread
Results 1 to 40 of 51

Hybrid View

  1. #1
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Sorry Steve, you lost me there !

    Are you saying that its a hardware issue (the Olimex PG-02 programmer) or software (winpic or picpgm) - or a incompatibility between either and the 18F2550. It has worked fine in the past with other PICs ??

    I've just tried an option on the WinPIC software, and programmed the CODE only. The code loaded with no issues as can be seen by the log below
    Programming...
    Erasing: CODE ..
    Programming CODE, 0x000000..0x001016
    Verifying CODE, 0x000000..0x001016
    Verifying 0x000000..0x001016
    Programming finished, no errors.
    I then unchecked the data and code boxes and just tried the config memory box - The first time I tried it it errored - the second time it worked

    Programming...
    Programming CONFIG, 0x300000..0x30000C
    Verifying CONFIG, 0x300000..0x30000C
    Verifying 0x300000..0x30000C
    Programming finished, no errors.
    Rechecking all the boxed I varified the PIC and it reported
    Cannot verify at different voltages with this hardware.
    Verifying...
    Verifying CODE, 0x000000..0x001016
    Verifying 0x000000..0x001016
    No DATA MEMORY in buffer to verify.
    Verifying CONFIG, 0x300000..0x30000C
    Verifying 0x300000..0x30000C
    Verify finished, no errors.
    I've attached the config memory settings displayed under that tab - I have no idea if they are right ?

    I also need to re-build the breadboard as I've used it for something else i was playing with, so I can't confirm yet if doing it this way has worked and your test code is actually working when hooked up as per the schematic I posted eariler.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    Are you saying that its a hardware issue (the Olimex PG-02 programmer) or software (winpic or picpgm) - or a incompatibility between either and the 18F2550. It has worked fine in the past with other PICs ??
    Could be both, i just compared the dumped.txt file with the .HEX i got here when reading back the PIC. As you see, yours is blank on the firsts lines (0000) wich is the program area.

    Couldn't find "C:\Program Files\Microchip\MPLAB IDE\PIC18F2550.dev", please borrow/copy from MPLAB !
    i found it here in the same path... just make sure you have this file as well OR re-install MPLAB 7.50.

    it have something to do as it state the programming area range, config fuse mem addresses etc etc.

    mmm
    Steve

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

  3. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    I've breadborded it and it still does not work...

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


    Did you find this post helpful? Yes | No

    Default

    how about the PIC18F2550.dev File?
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Looking at their schematic...
    <img src="http://www.olimex.com/dev/images/pic-pg2c-sch.gif">

    PGM pin is left floating (sv3-3)... but you said you already tied it to gnd so it shouldn't be the problem... should

    You said MCLR/VPP was close to 13Volts... so couldn't be this

    So if the Software is not well done, this poor device programmer can't work properly. 18Fs are a little bit more tricky and noise sensitive..

    Can you just try to use ICSP?

    Something like ... (courtesy of Melabs)
    <img src="http://www.melabs.com/images/icsp1.gif">
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Verify Error: 300000: read 000000, wanted 0030C0, mask 00FFFF ==> diff=0030C0
    Verify Error: 300002: read 000E3E, wanted 00CEFE, mask 00FFFF ==> diff=00C0C0
    Verify Error: 300004: read 008000, wanted 00F8FF, mask 00FFFF ==> diff=0078FF
    Verify Error: 300006: read 0000A1, wanted 00FFBB, mask 00FFFF ==> diff=00FF1A
    So now it doesn't program the config fuses.... not even better. Read back the PIC and post the first lines of the .HEX files.

    I don't know if it could be a XP issue or not, but if the timing is not good when programming, for sure it will never work as expected.
    Steve

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

  7. #7
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Steve,

    Just tried using ICSP and that failed too

    Info: Loading definitions for "PIC18F2550" from devices.ini .
    Info: Support for some newer PIC18F devices added by Martin v.d. Werff 2005
    Parsed "C:\Program Files\Microchip\MPLAB IDE\Device\PIC18F2550.dev" : found 113 bit combinations in 39 configuration bit groups .
    PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
    Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=3.5795 MHz ... ok
    Programming...
    Erasing ("bulk" or "chip") ...
    Programming CODE, 0x000000..0x0000B4
    Verifying CODE, 0x000000..0x0000B4
    Verifying 0x000000..0x0000B4
    Verify Error: 000000: read 00FFE3, wanted 00EF43, mask 00FFFF ==> diff=0010A0
    Verify Error: 000002: read 00FFFF, wanted 00F000, mask 00FFFF ==> diff=000FFF
    Verify Error: 000004: read 00FFFF, wanted 005008, mask 00FFFF ==> diff=00AFF7
    Verify Error: 000006: read 00FFFF, wanted 000B07, mask 00FFFF ==> diff=00F4F8
    More Verify Errors, unable to list all (total=91)
    Programming CONFIG, 0x300000..0x300006
    Verifying CONFIG, 0x300000..0x300006
    Verifying 0x300000..0x300006
    Verify Error: 300000: read 00C080, wanted 0030C0, mask 00CF3F ==> diff=00C000
    Verify Error: 300002: read 00FFFF, wanted 00FECE, mask 001F3F ==> diff=000131
    Verify Error: 300004: read 00FFFF, wanted 00F8FF, mask 008700 ==> diff=000700
    Verify Error: 300006: read 00FFFF, wanted 00FFBB, mask 0000E5 ==> diff=000044
    ERROR: Programming FAILED !
    Tried the following:
    Disconnect the programmer, insert the PIC, connect the serial lead, launch winpic, load the code and programmed - it errored. Read back and all the code locations were FFFF.

  8. #8
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Ohhh - checked the config screen after doing that and see the attached - that was not there before - all those listings !!
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    OK DUDE, time to get another device programmer. PICKIT2, BK844a, PICSTART PLUS, EasyPIC 4 worked ALL fine here between our posts.

    And guess what's inside the PICKIT 2??? a PIC8F2550

    Sorry i can't help more than this
    Steve

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

  10. #10
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Steve,

    I've pointed the programmer to the correct path of the DEV files and it made no difference. ( as you can see no message saying it can't find the file)
    Programming...
    Erasing ("bulk" or "chip") ...
    Programming CODE, 0x000000..0x0000B4
    Verifying CODE, 0x000000..0x0000B4
    Verifying 0x000000..0x0000B4
    Programming CONFIG, 0x300000..0x300006
    Verifying CONFIG, 0x300000..0x300006
    Verifying 0x300000..0x300006
    Verify Error: 300000: read 000000, wanted 0030C0, mask 00FFFF ==> diff=0030C0
    Verify Error: 300002: read 000E3E, wanted 00CEFE, mask 00FFFF ==> diff=00C0C0
    Verify Error: 300004: read 008000, wanted 00F8FF, mask 00FFFF ==> diff=0078FF
    Verify Error: 300006: read 0000A1, wanted 00FFBB, mask 00FFFF ==> diff=00FF1A
    ERROR: Programming FAILED !
    I also typed in the "30C0 and CEFE" into the first two config memory locations and tryed programming that - it errored as before.

    I've had this programmer working as I've used it to program USB RC-Joystick file, but I've juts tried that code and it too errored. The only difference is I'm now using XP Home and SP2, but I'm sure that would have no bearing on this issue ?

    Malc

    EDIT - oh and this was the third and last 18F2550 PIC I had 0 fresh out of the tube !
    Last edited by malc-c; - 11th December 2006 at 22:40.

Similar Threads

  1. PIC16F690 PBP boundary crossing warning message
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th May 2008, 11:17
  2. Micro Code Studio - Warning message
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2006, 21:17
  3. MicroCode Studio Boundary Warning Message
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2006, 09:13
  4. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17
  5. warning message
    By pic beginner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd July 2004, 02:53

Members who have read this thread : 0

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