edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

T16 w/o touch hard lockup after flashing master firmware

Open TomasJot opened this issue 1 year ago • 4 comments

Is there an existing issue for this problem?

  • [X] I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

Blank screen, hard lockup, have to disconnect battery.

Expected Behavior

Boot succesfull.

Steps To Reproduce

Build from commit d0791fa - "chores: touch init in board (#5284)" on T16 w/o touchscreen.

Version

Nightly (Please give date/commit below)

Transmitter

Jumper T16

Operating System (OS)

No response

OS Version

No response

Anything else?

Problem was introduced after moving touchPanelInit() from radio/src/opentx.cpp to radio/src/targets/horus/board.cpp I guess on radios with touchscreen all woks fine, only on horus radio w/o touch it causes hard lockup...

TomasJot avatar Jul 26 '24 21:07 TomasJot

I can reproduce this with T16 - latest nightly 3d8854abdf7297491e64b99133daeeffdf67825c as well as d0791fa0c22e71cb1b8f89c60e4ca96198eff847. Immediately prior commit b630982b20b6c1e14896f7b33a1cd0857ee5c392 boots fine.

pfeerick avatar Jul 27 '24 05:07 pfeerick

Don't have a T16, so tried to reproduce on TX16S and disconnecting the touch panel, unfortunately (well, kinda) it works fine

3djc avatar Jul 27 '24 07:07 3djc

Any luck with this issue? (I'm afraid to wear out battery connector of my T16...:)

TomasJot avatar Sep 10 '24 18:09 TomasJot

I still have a hope, so did some further digging... According to available schematics, T16 and TX16s have some hardware differences. On TX16S SCL and SDA signals to touchscreen connector have pullup resistors, on T16 those are trim buttons. Other 2 signals on T16 not connected - so do not have pull ups too. Maybe it is possible to add cmake args -DHAVE_TOUCH=YES/NO for T16?

TomasJot avatar Oct 09 '24 18:10 TomasJot

Other 2 signals on T16 not connected - so do not have pull ups too.

Might indeed be related to pull-ups. We should probably check the internal pull-ups are used in case no external ones are populated.

raphaelcoeffic avatar Dec 01 '24 10:12 raphaelcoeffic

Is there something I can do to help fix this issue?

TomasJot avatar Dec 05 '24 18:12 TomasJot

@pfeerick @TomasJot is this still an issue?

gagarinlg avatar Jan 24 '25 06:01 gagarinlg

Yes. Latest nightly still results in T16 not booting - only the 6POS array flashing, so reverted it back to 2.10. One additional point - I DFU flashed so it had the matching bootloader, and I was able to enter the bootloader, but FWIW entering via the back door (Exit) did not work either. I will try and look at this further tomorrow or Sunday.

pfeerick avatar Jan 24 '25 09:01 pfeerick

Just tried again with latest nightly, radio still locks up on boot. A revert of https://github.com/EdgeTX/edgetx/commit/d0791fa0c22e71cb1b8f89c60e4ca96198eff847 still works ... wait... touchPanelInit() is being called twice now. 🤦‍♂ Removing that seems to fix it.

pfeerick avatar Feb 05 '25 00:02 pfeerick