TheLogicMaster / ESP-Smart-Display

A customizable ESP based LED matrix driver
MIT License
24 stars 3 forks source link

I can't start after setting led parameters #1

Open zx804262156 opened 3 years ago

zx804262156 commented 3 years ago

My panel is 32x32. I changed the parameter. The original parameter is 16. My panel parameter is 32, but it can't be started. It shows "flash read err, 1000". What should I do?

main.cpp

ifndef PXMATRIX_ROW_PATTERN

define PXMATRIX_ROW_PATTERN 32 // The row pattern for the display

13:59:01.597 -> ets Jun 8 2016 00:22:57 13:59:01.597 -> 13:59:01.597 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 13:59:01.597 -> flash read err, 1000 13:59:01.597 -> ets_main.c 371 13:59:01.967 -> ets Jun 8 2016 00:22:57 13:59:01.967 -> 13:59:01.967 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 13:59:01.967 -> configsip: 0, SPIWP:0xee 13:59:01.967 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 13:59:01.967 -> mode:DIO, clock div:2 13:59:01.967 -> load:0x3fff0018,len:4 13:59:01.967 -> load:0x3fff001c,len:1044 13:59:01.967 -> load:0x40078000,len:10124 13:59:01.967 -> load:0x40080400,len:5828 13:59:01.967 -> entry 0x400806a8 13:59:02.527 ->

TheLogicMaster commented 3 years ago

From what I can tell, that error happens when it looks at 0x1000 for the bootloader and fails to find it. This project uses a custom flash partition layout, so that might be a factor. That parameter you changed isn't for the display resolution but for the inverse of the scan pattern, so the default 16 is for a 1/16 pattern. This is directly fed into the PxMatrix library, so I would first try one of the examples from https://github.com/2dom/PxMatrix to ensure you have the display working and the correct parameters before trying to get this project working. 32x32 panels typically have a 1/8 or 1/16 scan pattern, though.