bitluni / ESP32Lib

http://bitluni.net/esp32-vga/
441 stars 78 forks source link

Higher resolutions than 200x150 or 320x240? #19

Closed dl9sec closed 5 years ago

dl9sec commented 5 years ago

Hi, I am using an AZ-Delivery ESP32 DevkitC (ESP-WROOM-32) and tried out the 14Bit VGA. The examples VGADemo14Bit, VGASprites and VGA3DEngine are working well so far, but when i try to set a higher resolution, the ESP32 runs into a boot loop caused by an unhandeled exception:

Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400d12c7  PS      : 0x00060f30  A0      : 0x800d1328  A1      : 0x3ffb1e60  
A2      : 0x00000258  A3      : 0x00000640  A4      : 0x00000000  A5      : 0x3ffb8484  
A6      : 0x000000ae  A7      : 0x3ffb81cc  A8      : 0x00000000  A9      : 0x3ffb1e40  
A10     : 0x00000000  A11     : 0x00000001  A12     : 0x00000000  A13     : 0x00000003  
A14     : 0x00000003  A15     : 0x00060823  SAR     : 0x00000000  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  

Backtrace: 0x400d12c7:0x3ffb1e60 0x400d1325:0x3ffb1e90 0x400d1335:0x3ffb1eb0 0x400eb7dd:0x3ffb1ed0 0x400eb61b:0x3ffb1ef0 0x400eb5fe:0x3ffb1f10 0x400d23bc:0x3ffb1f30 0x400d1385:0x3ffb1f50 0x400d2d2b:0x3ffb1fb0 0x400874a9:0x3ffb1fd0

What do i have to do to get higher resolutions? My intention was to use 800x600 for a project, at least 640x480, but currently i don't know how to get those modes work. Any ideas/hints/solutions?

Regards, Thorsten

bitluni commented 5 years ago

the esp32 has not enough memory for 14bit in higher resolutions. you need to use 3bit mode or wait for the 6bit mode coming soon

On Tue, May 14, 2019 at 10:41 AM Thorsten Godau notifications@github.com wrote:

Hi, I am using an AZ-Delivery ESP32 DevkitC (ESP-WROOM-32) and tried out the 14Bit VGA. The examples VGADemo14Bit, VGASprites and VGA3DEngine are working well so far, but when i try to set a higher resolution, the ESP32 runs into a boot loop caused by an unhandeled exception

Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400d12c7 PS : 0x00060f30 A0 : 0x800d1328 A1 : 0x3ffb1e60 A2 : 0x00000258 A3 : 0x00000640 A4 : 0x00000000 A5 : 0x3ffb8484 A6 : 0x000000ae A7 : 0x3ffb81cc A8 : 0x00000000 A9 : 0x3ffb1e40 A10 : 0x00000000 A11 : 0x00000001 A12 : 0x00000000 A13 : 0x00000003 A14 : 0x00000003 A15 : 0x00060823 SAR : 0x00000000 EXCCAUSE: 0x0000001d EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

Backtrace: 0x400d12c7:0x3ffb1e60 0x400d1325:0x3ffb1e90 0x400d1335:0x3ffb1eb0 0x400eb7dd:0x3ffb1ed0 0x400eb61b:0x3ffb1ef0 0x400eb5fe:0x3ffb1f10 0x400d23bc:0x3ffb1f30 0x400d1385:0x3ffb1f50 0x400d2d2b:0x3ffb1fb0 0x400874a9:0x3ffb1fd0

What do i have to do to get higher resolutions? My intention was to use 800x600 for a project, at least 640x480, but currently i don't know how to get those modes work. Any ideas/hints/solutions?

Regards, Thorsten

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitluni/ESP32Lib/issues/19?email_source=notifications&email_token=ADCGI23LPPNYEYXF3LWZ46LPVJ3MZA5CNFSM4HMXTNC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GTTUC5A, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCGI23L3LAX2PXZPSJ3ML3PVJ3MZANCNFSM4HMXTNCQ .

dl9sec commented 5 years ago

Ah ok, thanks for clarifying. I wasn't aware of that. Maybe a little matrix with max resolution over bits could be helpful and avoid misunderstandings...

Regards, Thorsten

bitluni commented 5 years ago

I'll improve the error checking to try to show a meaningful output it really depends on your configuration and if you are using wifi or not

On Tue, May 21, 2019 at 6:14 PM Thorsten Godau notifications@github.com wrote:

Ah ok, thanks for clarifying. I wasn't aware of that. Maybe a little matrix with max resolution over bits could be helpful and avoid misunderstandings...

Regards, Thorsten

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitluni/ESP32Lib/issues/19?email_source=notifications&email_token=ADCGI23KUXNZEHO7UHGA6CTPWQNWJA5CNFSM4HMXTNC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4NKVA#issuecomment-494458196, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCGI2564WVHQIBQ6V2QNYDPWQNWJANCNFSM4HMXTNCQ .

dl9sec commented 5 years ago

Will the hardware architecture for the 6 bit mode be the same R2R network scheme as for the 14 bit mode?

bitluni commented 5 years ago

you need only the upper two bits for each color but the 14bit versions are compatible

On Tue, May 21, 2019 at 7:55 PM Thorsten Godau notifications@github.com wrote:

Will the hardware architecture for the 6 bit mode be the same R2R network scheme as for the 14 bit mode?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitluni/ESP32Lib/issues/19?email_source=notifications&email_token=ADCGI22ASBEJJBZIXLTIUKTPWQZS5A5CNFSM4HMXTNC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4WBXI#issuecomment-494493917, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCGI2ZCMNNLIAQ2TSU2SLDPWQZS5ANCNFSM4HMXTNCQ .

mattsaintdev commented 5 years ago

Try fabgl library as well.Different approach to I2S buss but supports 64 colour or 8 color modes. 14 bit for bitluni though.

Matt

Sent from Yahoo Mail on Android

On Tue, 21 May 2019 at 19:00, bitluninotifications@github.com wrote: you need only the upper two bits for each color but the 14bit versions are compatible

On Tue, May 21, 2019 at 7:55 PM Thorsten Godau notifications@github.com wrote:

Will the hardware architecture for the 6 bit mode be the same R2R network scheme as for the 14 bit mode?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitluni/ESP32Lib/issues/19?email_source=notifications&email_token=ADCGI22ASBEJJBZIXLTIUKTPWQZS5A5CNFSM4HMXTNC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4WBXI#issuecomment-494493917, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCGI2ZCMNNLIAQ2TSU2SLDPWQZS5ANCNFSM4HMXTNCQ .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

dl9sec commented 5 years ago

Already done: https://github.com/dl9sec/ArduinoP13/tree/master/examples/PredictISSVGAsimple ;-)