Makerfabs / ESP32-S3-Parallel-TFT-with-Touch-7inch

34 stars 10 forks source link

matouch7 + squarlineStudio + platformio. Unable to make it work!! #9

Open Archangel95 opened 1 week ago

Archangel95 commented 1 week ago

My work flow started from squareline studio using the makerfab simplified template for the MaTouch 7 standard. Exported the UI and copied into a new platformio project. All the library moved to platformIO project's lib folder. Moved lv_conf.h to the lvgl folder. Moved the main ui.ino file in src with the touch.h file generate by slstudio and removed the main.cpp file. It compliles once I change the usbserial.print to serial.print. Once flashed, the board boot loops with this error codes:

` ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4204fd8e SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbd8 load:0x403cc700,len:0x2a80 entry 0x403c98d0 [ 165][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected E (7) gpio: gpio_set_level(227): GPIO output gpio_num error E (17) gpio: gpio_set_level(227): GPIO output gpio_num error E (23) gpio: gpio_set_level(227): GPIO output gpio_num error [ 232][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected E (142) lcd_panel.rgb: esp_lcd_new_rgb_panel(151): no mem for frame buffer ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x4037b030 file: "lib/GFX_Library_for_Arduino/src/databus/Arduino_ESP32RGBPanel.cpp" line 252 func: uint16_t* Arduino_ESP32RGBPanel::getFrameBuffer(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, int32_t) expression: esp_lcd_new_rgb_panel(_panel_config, &_panel_handle)

abort() was called at PC 0x4037b033 on core 1

Backtrace: 0x40377c06:0x3fcebaa0 0x4037b03d:0x3fcebac0 0x40380df9:0x3fcebae0 0x4037b033:0x3fcebb60 0x42003133:0x3fcebb80 0x4200321f:0x3fcebbe0 0x42002167:0x3fcebc20 0x4202ac2a:0x3fcebc50

ELF file SHA256: e2eae6260d92d47e

Rebooting.. `

Any idea of the reasons and how can I fix to make it work this board?

This is the platformio.ini config file [env:MaTouch7] platform = espressif32 board = esp32-s3-devkitc-1 framework = arduino Am I doing something wrong?

Have a nice day

Archangel95 commented 3 days ago

In case someone is having trouble like me use the exact lib versions shown on the wiki page then add those flags inside platformio.ini:

build_flags = -DBOARD_HAS_PSRAM board_build.arduino.memory_type = qio_opi board_build.f_flash = 80000000L board_build.flash_mode = qio board_upload.flash_size = 16MB

at least now seems to be working.