firmware update P12R with pickit3

Discussion in 'EthConGateway by Joshua 1 Systems' started by robertt, Nov 26, 2013.

  1. robertt

    robertt New Elf

    Joined:
    Mar 12, 2012
    Messages:
    31
    Likes Received:
    0
    Location:
    berghem
    Today I tried to program a P12R with a Pickit3 and a Y-cable from ed.

    I have programmed the unit with:
    http://www.j1sys.com/assets/p12r-2.0a.zip

    In MPLab I get:

    PICkit 3 detected
    Connecting to PICkit 3...
    Firmware Suite Version...... 01.28.90
    Firmware type......................PIC32MX
    PICkit 3 Connected.
    Target Detected
    Device ID Revision = 04300053

    Erasing...
    Erase device complete

    Programming...
    Programming/Verify complete
    ***** end mplab*****


    But then nothing on the P12R....
    Led 4 stays on; Power is available.
    but leds 1/2/3 jump very slowly from 1 to 2 to 3 to 1 etc....
    There is no USB or ETH connection possible...

    Anybody any idea what I dit wrong or what the problem could be?

    Kind regards,
    Robert
     
  2. David_AVD

    David_AVD Good news, everyone!

    Joined:
    Jun 12, 2010
    Messages:
    3,338
    Likes Received:
    20
    Location:
    Victoria Point (Brisbane)
    You did import the hex file before hitting the program button?
     
  3. OP
    OP
    robertt

    robertt New Elf

    Joined:
    Mar 12, 2012
    Messages:
    31
    Likes Received:
    0
    Location:
    berghem
  4. David_AVD

    David_AVD Good news, everyone!

    Joined:
    Jun 12, 2010
    Messages:
    3,338
    Likes Received:
    20
    Location:
    Victoria Point (Brisbane)
    Maybe try regressing it back to an older (hex file) version in case there's something wrong with the new one.
     
  5. OP
    OP
    robertt

    robertt New Elf

    Joined:
    Mar 12, 2012
    Messages:
    31
    Likes Received:
    0
    Location:
    berghem
    Still no luck :(
    tried to go back to 1.1h still the same behaviour...

    Greetings, Robert
     
  6. David_AVD

    David_AVD Good news, everyone!

    Joined:
    Jun 12, 2010
    Messages:
    3,338
    Likes Received:
    20
    Location:
    Victoria Point (Brisbane)
    Time to call (email) support then. :)

    EDIT: Did it work before you tried programming it the first time?
     
  7. OP
    OP
    robertt

    robertt New Elf

    Joined:
    Mar 12, 2012
    Messages:
    31
    Likes Received:
    0
    Location:
    berghem
    Thanks David,

    Already done that but I think Ed is bussy, no response yet :D

    Greetings, Robert
     
  8. OP
    OP
    robertt

    robertt New Elf

    Joined:
    Mar 12, 2012
    Messages:
    31
    Likes Received:
    0
    Location:
    berghem
    a couple of day's ago ed contacted me and showed me that I uploaded the wrong hex file to the P12r.

    For anyone interested I've modified the sheet sheet from Jeff Rae to be used with the P12r
    original post for the PIXAD8 is here:
    http://auschristmaslighting.com/forums/index.php/topic,2811.msg25790.html#msg25790


    download New Bootloader file:
    http://www.j1sys.com/assets/UBL_1.2/UBL_ECG_P12R_1.2a.hex

    download the app Firmware 2.7 file:
    http://www.j1sys.com/assets/APP_2.7/ECG_P12R.X.v2.7.hex
    or
    download the app firmware 2.9a from the forum:
    http://auschristmaslighting.com/forums/index.php/topic,4972.msg43519.html#msg43519

    Download the new PC app Uploader file:
    http://www.joshua1systems.com/assets/PIC32UBL/PIC32UBL.zip


    Open MPLAB (V 8.92 or newer)
    connect your PICKIT 3 to your PC
    With power off on your P12r connect Pickit3 to ICSP connector on P12r Making sure that pin 1 (white Triangle) goes to pin 1 on board (White triangle with P1) You can also connect your Ethernet cable to the P12r
    Power up the P12r
    MPLAB Menu -> File -> Import ... Open the UBL_ECG_P12R_1.2a.hex Previously downloaded
    MPLAB Menu -> Configure -> Select Device...
    Select PIC32MX795F512L from device drop-down

    MPLAB Menu -> Programmer -> Select Programmer -> 6 PICkit3

    You should get a message with
    Target Detected
    Device ID Revision = 04300053

    You are now ready to erase your PIC32
    MPLAB Menu -> Programmer -> Erase Flash Device

    You should get a message with
    Erasing...
    Erase device complete

    MPLAB Menu -> Programmer -> Program

    You should get a message with

    Programming...
    Programming/Verify complete

    Connect your network cable if it is not already connected

    Unzip the PIC32UBL.zip and open the PIC32UBL.exe

    When it open you will see the window
    Note YOUR ipAddress will have reset back to 10.10.10.10
    Ensure that that you have Ethernet section Enabled
    Click the "Connect" button if you have not removed the power from P12r it should respond immediately
    You should get message saying that you are connected
    You should now have an enabled "LOAD HEX File" Button Click this and load your ECG_P12R.X.v2.7/9.hex file
    You should see a message hex file loaded successful.
    Click button "Erase-Program-Verify"
    You should see a message
    Flash Erased
    Programming completed
    Verification successful

    Your P12r is fully programmed Turn off power for the P12r and Remove PICkit3

    Reconnect power to your P12r and use your browser to configure your P12r.

    Greetings, Robert
     

Share This Page