portapack-havoc icon indicating copy to clipboard operation
portapack-havoc copied to clipboard

Ext. CLK detection problem

Open c5e3 opened this issue 7 years ago • 13 comments

I've got a Portapack since around a week now and really like this firmware. However, I would like to modify some things, so I built the firmware from source, which results in a faulty behaviour. I have to reset the board multiple times to get to boot up. After that, the board completly freezes and no matter how often I reset it, it is not usable at all. Your release binary or a self-compiled binary from the original firmware work fine though.

c5e3 avatar Nov 30 '18 02:11 c5e3

Apparently commit 609235b broke it for me, since i use a TCXO, that is permanently soldered to the HackRF.

c5e3 avatar Nov 30 '18 02:11 c5e3

@sharebrained has it fixed in upstream portapack-hackrf.

TheCranston avatar Nov 30 '18 12:11 TheCranston

@c5e3 sorry to hijack this. I have being looking into getting a TCXO for my hackrfs. Can you share a few pictures about how you did that ?

Thank you

sgoudelis avatar Nov 30 '18 13:11 sgoudelis

@sgoudelis since it is in the metal case now, I don't want to take it out again. But I simply bought a TCXO addon-board from China, desoldered the TCXO and soldered 3 of its 4 pins to GND, VCC and CLKIN on header P22, accordingly to the layout of the addon board

c5e3 avatar Nov 30 '18 14:11 c5e3

I've merged https://github.com/sharebrained/portapack-hackrf/commit/01bad2805c633b4d53f59a28ec99f3f16e61c41d with 4d98491 and commented out some code in portapack.cpp:102: auto clkin_status = false; //clock_generator.clkin_status();

The external CLK is now being recognized and I don't get freezes anymore. Only the UI icon doesn't know anything about the external CLK for now, but this is just a cosmetic fix.

c5e3 avatar Nov 30 '18 15:11 c5e3

@c5e3 is the merge available? I'd love to test! Thanks!

TheCranston avatar Nov 30 '18 15:11 TheCranston

@TheCranston I don't want to push this to my fork yet, but here is the binary: portapack-h1-havoc.zip

Don't be confused - the UI will always show external clock for now.

c5e3 avatar Nov 30 '18 16:11 c5e3

update: another issue with @sharebrained's code is, that I have to reset the HackRF after i connect it to power.

c5e3 avatar Dec 02 '18 13:12 c5e3

@c5e3 so does your HackRF hang on initial power up, then after a manual reset it starts functioning? I remember vaguely from chatting with @sharebrained that his code, and subsequently the @furrtek havoc port, turns off as many of the oscillators as possible and runs from, i think, a single clock. This was to reduce the clock induced artifacts. Maybe there is some sort of race condition on cold start that a warm reset side steps...

For what it's worth, I've not experiencing the cold boot freeze you are reporting. I'm on the most recent published CPLD and then using the firmware you built a few days ago.

Happy to spend any debug cycles you'd like. Let me know if you want me to run some specific tests.

TheCranston avatar Dec 02 '18 14:12 TheCranston

@TheCranston exactly, it just hangs on initial power up, but I just figured out, that this only happens, when i connect it to my power bank 🤷‍♂️😄

c5e3 avatar Dec 02 '18 15:12 c5e3

Weird. I tried my power pack and didn’t have any lockups, but did discover that in hackrf mode this cut of firmware won’t stream data. I can see it, check registers, etc. but no rf data stream.

On Sun, Dec 2, 2018 at 10:38 AM c5e3 [email protected] wrote:

@TheCranston https://github.com/TheCranston exactly, it just hangs on initial power up, but I just figured out, that this only happens, when i connect it to my power bank 🤷‍♂️😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/furrtek/portapack-havoc/issues/204#issuecomment-443516713, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrixXY0WjkdaxNdrbKcwWzCUGs06K0uks5u0_PdgaJpZM4Y634I .

TheCranston avatar Dec 03 '18 17:12 TheCranston

@TheCranston this is weird indeed. I can transmit and receive over USB without any issues.

c5e3 avatar Dec 03 '18 22:12 c5e3

I stand corrected... the portapack firmware (8feb79c71062294c5a83a37b6067f3b2f831034c) Aug 5 commit. It doesn't stream I/Q data either.. bugger. I switched back to hackrf proper firmware, working data. installed sharebrained and it recognized the TCXO and works inside the interface, but switching into hackrf mode, it won't stream. ugh. Same behavior for the cut of firmware you built, work's great in the interface, but no stream in hackrf mode. guess there is something else going on. I'll raise an issue in the @sharebraind repo.

TheCranston avatar Dec 03 '18 22:12 TheCranston