GPIO Expander stuck on MCP23008 + White Screen

The GPIO expander in webconfig has stuck itself on MCP23008

It happened the other day after i changed some font settings. The change of font gave me a white screen after the Zynthian logo and even after changing it back it stayed white, then I noticed the GPIO Expander was set to MCP23008 despite the wiring set to MCP23017

In the end I had to reflash the SD and just put it up to me messing with the font

This morning I’ve switched it on and have the same white screen post logo, and again the GPIO Expander is set to 23008 no matter what wiring config I choose.

Any ideas?
Simon

Don’t worry. It’s just a display issue.
I saw the behaviour a couple of weeks as well.
Maybe the call that determines it, isn’t that good after all, @jofemodo

Ah OK, but when this happens my screen goes white - I get no UI

Unless its just a coincidence

Hm…Or you should worry…in case 23017 is broken…23008 is the fallback.

You have a screen . . . ?

Luxury . . . . .

1 Like

I’ve pulled ll the connections out the controller board and its still like it .

just looking at the UI log, the repeated errors i’m getting are…

Feb 13 15:11:40 zynthian startx[468]: ValueError: invalid literal for int() with base 16: ‘Cx7F00’
Feb 13 15:11:40 zynthian startx[468]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png': No such file or directory @ error/blob.c/OpenBlob/2701. Feb 13 15:11:40 zynthian startx[468]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png’: No such file or directory @ error/blob.c/OpenBlob/2701.
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error

Sounds like it lacks the error screens, didn’t we get creative recently in this area. . .?

Are you uptodate on code?
Can you ssh…?

I flashed the SD around Monday so updated everything then, as well as installing reMID and Argotlunar2.
It seemed fine after that.

Could it be anything to do with the master channel being set to off, that’s the only other thing I’ve been changing after an update.

I can see this in the logs at the top:

Feb 13 15:22:12 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)

The full list before it repeats is

  • Logs begin at Thu 2016-11-03 17:16:42 GMT. –
    Feb 13 15:22:12 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)
    Feb 13 15:22:12 zynthian startx[4001]: ValueError: invalid literal for int() with base 16: ‘Cx7F00’
    Feb 13 15:22:12 zynthian startx[4001]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png': No such file or directory @ error/blob.c/OpenBlob/2701. Feb 13 15:22:12 zynthian startx[4001]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png’: No such file or directory @ error/blob.c/OpenBlob/2701.
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: convert-im6.q16: invalid argument for option `-pointsize’: -fill @ error/convert.c/ConvertImageCommand/2359.
    Feb 13 15:22:12 zynthian startx[4001]: /zynthian/config/img/fb_zynthian_error_ip.png: image not found
    Feb 13 15:22:12 zynthian startx[4001]: Building XImage…done
    Feb 13 15:22:16 zynthian startx[4001]: Traceback (most recent call last):
    Feb 13 15:22:16 zynthian startx[4001]: File “./zynthian_gui.py”, line 44, in
    Feb 13 15:22:16 zynthian startx[4001]: import zynautoconnect
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zynautoconnect/init.py”, line 5, in
    Feb 13 15:22:16 zynthian startx[4001]: from zynautoconnect.zynthian_autoconnect import *
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zynautoconnect/zynthian_autoconnect.py”, line 35, in
    Feb 13 15:22:16 zynthian startx[4001]: from zyngui import zynthian_gui_config
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/init.py”, line 28, in
    Feb 13 15:22:16 zynthian startx[4001]: import zyngui.zynthian_gui_config as zynthian_gui_config
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_config.py”, line 368, in
    Feb 13 15:22:16 zynthian startx[4001]: set_midi_config()
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_config.py”, line 339, in set_midi_config
    Feb 13 15:22:16 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)

Is the file /zynthian/config/img/fb_zynthian_error.png there …?
and what else is in that directory. . .?

I’ts not in mine either. . . .

image

OK , just changed the midi master channel back from OFF to 16 and the UI just popped back.
it’s working!

The zynth has become sentient.
It objects to it’s inherent right to grab one inband MIDI management channel being removed. :slight_smile:

could you make a ticket?

1 Like

My contents…

The UI log is empty now i’m back on Master 16#
And the GPIO Expander is back to normal

Zimg

And if you disable the master channel, it is broken again?

Just changed Master to NONE
Rebooted
White Screen after Zynthian Logo
In webconf: UI Log not showing any errors and GPIO reference is correct as MCP23017
Rebooted
same as above
Powered down and back up
White Screen after Zynthian logo
Webconf: UI Log Clean but GPIO now says MCP23008
Set Master to 16 in webconf
UI instantly appears and GPIO shows correct MCP23017

@jofemodo See the bug in the c code above

This one

I just commited a fix. Simply update and test.

Thanks!

1 Like

Thanks, i’ll try later after work.
I appreciate all your help looking at this, and even so quickly adding that setting in the first place.

Hi, I have a simmilar issue.

Yesterday everything honky dory, today it doesn’t boot into UI but I can play it and use webconf. After booting the Z I get the short logo screen and then nothing.

As I can also get into Z via ssh, could you be so kind telling me how to update from there? My search in the wiki failed. And I would to love to have it today for rehearsal…

Best,
Jimi

EDIT: is it this one?

cd /zynthian/zynthian-sys; git checkout .
   cd /zynthian/zynthian-ui; git checkout .
   cd /zynthian/zynthian-sys/scripts/
   ./update_zynthian.sh
   ./update_zynthian.sh #Yes twice - first run returns an error on a fresh installation
   ./update_zynthian_data.sh
   ./update_zynthian_recipes.sh
   ./update_zynthian_sys.sh