portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.25k stars 533 forks source link

Reset button locks up portapack. #1943

Closed RChadwick7 closed 6 months ago

RChadwick7 commented 6 months ago

Describe the bug.

I've got a Portapack H2+ Version 4 (Best I can tell from the chips), flashed with 2.0.0. When I hit the reset button, the screen stays the same and the lights light like it's in DFU mode. The only way I can get out of this is to power the unit off and on again. I've verified the issue is with the portapack, not the HackRF. Best I can tell, something is keeping the reset line high. I've checked for solder shorts and other issues with a microscope. My current guess is the CPLD may be programmed buggy. Has anyone else seen this issue?

Reproduction

With a H2+ Rev 4 (100 CPLD) push the reset button

Expected behavior

1 - Push reset button 2 - Unit resets

Environment/versions

No response

Anything else?

No response

jLynx commented 6 months ago

This is expected behaviour on some H2's as the cpld code was buggy when shipped. There is no fix for this other than buying from a seller with correct CPLD code on the PortaPack like the H2M for instance

RChadwick7 commented 6 months ago

I've seen where the CPLD can be programmed. Is this an OTP part? If not, is the proper code to program it available? If it is an OTP part, can't that be overridden by programming it at bootup?

jLynx commented 6 months ago

It's not OTP, but there is no public source available for it. So you would have to re program it from scratch. This has to be done with a CPLD programmer tapping into the correct pins for it

RChadwick7 commented 6 months ago

Is the code for the Mayhem version of the CPLD available? I'm assuming the H2 Mayhem version is similar enough to the H2 Ver4 that it may work? Programming it likely won't be a problem for me.

jLynx commented 6 months ago

No it's not sorry, there is no publicly available code