profi-max / JC4827W543_4.3inch_ESP32S3_board

ESP32-S3 with 4.3' TFT 480x270 driver NV3041A and capacitive touch
7 stars 2 forks source link

The Demo_VSCode_Platformio can't run #1

Closed venusmariga closed 2 months ago

venusmariga commented 2 months ago

The Demo_VSCode_Platformio compiles without errors in VSCode, but the firmware cannot be directly downloaded to the development board through PlatformIO. Downloading the firmware to the development board using ESPTOOL, and after pressing the RST button, the development board goes into a black screen and repeatedly restarts, which is specifically manifested by the repeated sound of USB being plugged and unplugged from the computer

profi-max commented 2 months ago

through

I upload the firmware directly through VSCode/Platformio. If you cannot do this, try adding the line at the end of platformio.ini upload_protocol = esptool or upload_protocol = esp-builtin

If you want to upload files (created by VSCode) using the Flash Download Tool application, you should download 4 files to special addresses. Files bootloader.bin, partitions.bin, firmware.bin from Project/.pio/build folder. boot_app0.bin and bootloader.bin are the same for all ESP32S3 applications. The download addresses are the same too. Look at the example here:

venusmariga commented 2 months ago

through

I upload the firmware directly through VSCode/Platformio. If you cannot do this, try adding the line at the end of platformio.ini upload_protocol = esptool or upload_protocol = esp-builtin

If you want to upload files (created by VSCode) using the Flash Download Tool application, you should download 4 files to special addresses. Files bootloader.bin, partitions.bin, firmware.bin from Project/.pio/build folder. boot_app0.bin and bootloader.bin are the same for all ESP32S3 applications. The download addresses are the same too. Look at the example here:

Thank you for your answer. After adding upload_protocol = esp-builtin, the firmware can be downloaded normally. Additionally, I have another question. When running the LVGL_Widgets demo, the screen color displays abnormally, and the display content is flipped 180°. After changing to Arduino_GFX *g = new Arduino_NV3041A(bus, GFX_NOT_DEFINED /* RST */, 2 /* rotation */, true /* IPS */);, the display direction is correct. However, even after adjusting the #define LV_COLOR_16_SWAP 0 in the lv_conf.h, the color is still not normal abnormally

profi-max commented 2 months ago

It doesn't look like "swap" colors. It looks like "negative" colors. I don't know why. I just verified the project. With my dev. board the colors and rotation are pretty normal.

venusmariga commented 2 months ago

It doesn't look like "swap" colors. It looks like "negative" colors. I don't know why. I just verified the project. With my dev. board the colors and rotation are pretty normal.

I have resolved the abnormal color display. The solution was to power cycle the development board after firmware flashing, whereas previously I was only resetting it by pressing the RST button. Thanks for your help