hugen79 / NanoVNA-H

NanoVNA-H based on edy555 design, provides effective measurements up to 1.5GHz.
http://nanovna.com/
517 stars 124 forks source link

Screen garbage on first power up #87

Open etkal opened 3 days ago

etkal commented 3 days ago

Just bought a new NanoVNA, HW 3.6.1_SM_ST, looks like the latest firmware from here (shows 1.2.27, and I even reloaded the latest image from here so it's identical). When I first power it on after being off for a while, the screen flashes white, but then shows garbage on the upper half, which when written over by the display image still shows garbage data on the left side. Powering off and back on fixes the issue, just flashes white, then display off, then draws as expected.

I suspect a timing issue on startup, might experiment with that, perhaps a delay is needed to allow the ili9341 HW to stabilize when cold. I have a couple Raspberry Pi Pico projects that use the ili9341 and I had to play with the reset timing at startup to get it to behave properly:

void ILI934X::Reset() { gpio_put(m_rst, 1); sleep_ms(50); gpio_put(m_rst, 0); sleep_ms(50); gpio_put(m_rst, 1); sleep_ms(50); }

Have you seen this or had it reported before? I'll see if I can experiment with this code, have not developed for this processor / SDK before.

Regards, Erik

Screenshot 2024-10-02 at 08 57 52

Screenshot 2024-10-02 at 08 58 24