Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My pethub is bricked #15

Open
jn-powerlan opened this issue Sep 17, 2022 · 7 comments
Open

My pethub is bricked #15

jn-powerlan opened this issue Sep 17, 2022 · 7 comments

Comments

@jn-powerlan
Copy link

Hi,
My pethub is a iHB V1.
I have disconnected the power during firmware upgrade (before reading the documentation)
I want to try to flash the firmware with the pic programmer.

Can you help me ?

Witch firmware can i use? where can i download it ?

Do you know where to connect the programmer ?

Do you know the starting address (into flash memory) of this firmware (to prevent overwriting bootloader)?

Any help is welcome :)

@plambrechtsen
Copy link
Contributor

I wouldn't personally flash on custom firmware using the pickit unless you know what you're doing as you need correct PFM and DCR files.
I have a number of different versions and have figured out how to XOR the files and calculate the file checksum so you can flash them on using the bootloader.
Were you looking to build your own completely custom firmware using the Microchip IDE?

Check out the firmware 201 branch where I byte patched the 2.201 firmware with my own CA and can change the host name to another 19 characters for the dns name.

https://github.com/PetHubLocal/pethublocal/tree/firmware201/pethublocal/firmware

@jn-powerlan
Copy link
Author

Hi,
My goal is to find the best way to unbrick my pethub.
If i connect a ftdi to the uart of the pethub can i use the bootloader to flash a firmware ?

@plambrechtsen
Copy link
Contributor

So when you try and boot it again into the flashing mode by holding the reset button when powering it on it doesn't boot up?
That is very unusual as the boot loader firmware is a completely different area from the main firmware.
I have never managed to brick my hub yet but have always let the flashing process complete.

@plambrechtsen
Copy link
Contributor

Did you sort it @jn-powerlan by reflashing the firmware again?? Not that I want to try bricking my hub but it should recover if you attempt it a second time unless you've done something catastrophic.
If you need to flash then you'll need a pickit3 or similar, and it would probably be cheaper to just buy a new hub instead.

@jn-powerlan
Copy link
Author

  1. I have connected the uart and there is noting on uart with normal boot or recovery boot (like expected).
  2. I have connected a pickit 3 preserve memory program option enabled and range (1d000000-1d07ffff)

This is the log of MPLAB IPE :


Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............PIC32MX
Programmer to target power is enabled - VDD = 3,250000 volts.
Target device PIC32MX695F512H found.
Device ID Revision = A5

Reading...

The following memory area(s) will be read:
program memory: start address = 0x1d000000, end address = 0x1d07ffff
boot config memory
configuration memory
Read complete
Exporting hex file...
Hex File successfully created at C:/Users/JN/Desktop/PIC32MX695F512H.hex

I have sended the PIC32MX695F512H.hex by email to @plambrechtsen.
once again any help is welcome :)
I believe if you can dump your working hub it will be easier to fix mine.

@jamesdangercarpenter
Copy link

Did you ever get your hub back up and running? I'm facing the same issue

@tinuva
Copy link

tinuva commented May 8, 2024

I wouldn't personally flash on custom firmware using the pickit unless you know what you're doing as you need correct PFM and DCR files. I have a number of different versions and have figured out how to XOR the files and calculate the file checksum so you can flash them on using the bootloader. Were you looking to build your own completely custom firmware using the Microchip IDE?

Check out the firmware 201 branch where I byte patched the 2.201 firmware with my own CA and can change the host name to another 19 characters for the dns name.

https://github.com/PetHubLocal/pethublocal/tree/firmware201/pethublocal/firmware

Can that firmware be flashed to any hub? Or rather, is the firmware specific to a hub? (assuming hub is v1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants