-
Notifications
You must be signed in to change notification settings - Fork 49
Building for ESP32 S3 Fails #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is no display driver for ili9433. I will have to add it. |
I thought I was using DISPLAY=ili9341 ? Here's log for running that line of command |
line 477 in the terminal.log file.
|
apologies for that, that was my fault. that was the output for the command when I ran it the first time, which I corrected in the subsequent times running the command, eventually coming down to
The line of command basically did not work and I tried setting INDEV to xpt2046 as well but also didn't work and didn't find a firmware.bin or bootloader.bin in the output folders. By this point I'm pretty sure I'm looking somewhere wrong... |
lets start out from square one. Run the build command adding |
I hope this helps. I'm running the command with same board parameters from before
|
do me a favor. in the build directory there is a file called manifest.py could you attach that file?? to do that you need to add a .txt onto the end of the file name. |
scratch that. I found the problem and I fixed it. |
(I'm still going to upload the file anyways) |
it is fixed. |
Hy, THX Sebastian https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html |
The build process ran smoothly. I'm not sure whether this is still related to this repo or not. My guess is it's probably something on micropython or lv_bindings library's side of stuff but I am not in a position to make this conjecture. |
after you flash it you need to press the reset button on the display. that will take it out of boot loader mode. |
I did press it after flashing it multiple times (with the given command at the end of the output from the make.py command). It just stays in bootloader mode (idk why). I also checked that the firmware is flashed on to the thing correctly. for additional information I'm using the USB port instead of the UART port all along. Is that why or is it because of something else? Should I attach the firmware file here? |
if you are using the USB port then you need to add |
Hy Reset button won't help, i can flash it with the esp windows tool.
Greetings Sebastian |
your flash chip isn't the size that you passed in the build command, your chip size is 4mb. so you need to pass |
I think I encountered another issue that's also probably unrelated to this repo, but I'll still post it here - >>> import lvgl as lv
>>> import ili9341
>>> import gt911
>>> lv.init()
>>> scr = lv.obj()
>>> btn = lv.button(scr)
>>> lv.screen_load(scr) running these lines in the REPL after flashing it(flashing it is successful) just shows nothing. Not even a white screen. No changes on the screen. Should I report it here or at the official lv_bindings_micropython repo? Additional Info: I'm using ESP32-S3-Touch-LCD-4.3 from WaveShare as my hardware. Now I'm regretting buying it. Also built another firmware without SPRIAM OCTAL option, flashed it, ran same commands, didn't work, same reaction I also do not know what and how to develop it locally so I'm using the online lvgl + micropython simulator to write code for this. |
ok, thats was a little bit stupid from my side. entry 0x403c989c tried to play with BOARD_VARIANT=SPIRAM_OCT, BOARD_VARIANT=SPIRAM but wont help my board should have 8mb PSRAM any suggestions? THX |
I have that exact same display sitting right here in front of me. this is the build command... and this is the proper way to use the driver...
from micropython import const # NOQA
from i2c import I2C
import gt911
import lcd_bus
import task_handler
import lvgl as lv # NOQA
import rgb_display
_WIDTH = const(800)
_HEIGHT = const(480)
_BUFFER_SIZE = const(76800)
_CTP_SCL = const(9)
_CTP_SDA = const(8)
_CTP_IRQ = const(4)
_SD_MOSI = const(11)
_SD_SCK = const(12)
_SD_MISO = const(13)
_LCD_FREQ = const(13000000)
_PCLK_ACTIVE_NEG = const(0)
_HSYNC_PULSE_WIDTH = const(10)
_HSYNC_BACK_PORCH = const(10)
_HSYNC_FRONT_PORCH = const(10)
_VSYNC_PULSE_WIDTH = const(10)
_VSYNC_BACK_PORCH = const(10)
_VSYNC_FRONT_PORCH = const(20)
_PCLK = const(7)
_HSYNC = const(46)
_VSYNC = const(3)
_DE = const(5)
_DISP = None
_BCKL = None
_DRST = None
I2C_BUS = I2C.Bus(
host=1,
scl=_CTP_SCL,
sda=_CTP_SDA,
freq=400000,
use_locks=False
)
TOUCH_DEVICE = I2C.Device(
I2C_BUS,
dev_id=gt911.I2C_ADDR,
reg_bits=gt911.BITS
)
_DATA15 = const(10) # B7
_DATA14 = const(17) # B6
_DATA13 = const(18) # B5
_DATA12 = const(38) # B4
_DATA11 = const(14) # B3
_DATA10 = const(21) # G7
_DATA9 = const(47) # G6
_DATA8 = const(48) # G5
_DATA7 = const(45) # G4
_DATA6 = const(0) # G3
_DATA5 = const(39) # G2
_DATA4 = const(40) # R7
_DATA3 = const(41) # R6
_DATA2 = const(42) # R5
_DATA1 = const(2) # R4
_DATA0 = const(1) # R3
bus = lcd_bus.RGBBus(
hsync=_HSYNC,
vsync=_VSYNC,
de=_DE,
pclk=_PCLK,
data_pins=(
_DATA0,
_DATA1,
_DATA2,
_DATA3,
_DATA4,
_DATA5,
_DATA6,
_DATA7,
_DATA8,
_DATA9,
_DATA10,
_DATA11,
_DATA12,
_DATA13,
_DATA14,
_DATA15
),
freq=_LCD_FREQ,
hsync_front_porch=_HSYNC_FRONT_PORCH,
hsync_back_porch=_HSYNC_BACK_PORCH,
hsync_pulse_width=_HSYNC_PULSE_WIDTH,
hsync_idle_low=False,
vsync_front_porch=_VSYNC_FRONT_PORCH,
vsync_back_porch=_VSYNC_BACK_PORCH,
vsync_pulse_width=_VSYNC_PULSE_WIDTH,
vsync_idle_low=False,
de_idle_high=False,
pclk_idle_high=False,
pclk_active_low=_PCLK_ACTIVE_NEG,
)
buf = bus.allocate_framebuffer(_BUFFER_SIZE, lcd_bus.MEMORY_SPIRAM)
display = rgb_display.RGBDisplay(
data_bus=bus,
display_width=_WIDTH,
display_height=_HEIGHT,
frame_buffer1=buf,
frame_buffer2=None,
color_space=lv.COLOR_FORMAT.RGB565,
rgb565_byte_swap=True
)
display.set_power(True)
display.init()
display.set_backlight(100)
indev = gt911.GT911(TOUCH_DEVICE)
# display.set_rotation(lv.DISPLAY_ROTATION._90) # NOQA
scrn = lv.screen_active()
scrn.set_style_bg_color(lv.color_hex(0x000000), 0)
slider = lv.slider(scrn)
slider.center()
task_handler.TaskHandler() |
don't use the USB CDC port. use the other USB when flashing and connecting to the repl |
Nope, this was my fist try without board variant
|
did you try the build command I posted? |
I am compiling it now to test on my display to see if it is working. |
Yes, almost same build command, flash Size 4. with 8 i become the Partition Table error |
then the display you are referencing is not the same display. the display you are referencing has 8mb of flash. Maybe you got a bad display? |
OK, I see what is happening. You need to open your own issue instead of hijacking one that was not made by you. You are getting me all kinds of confused. |
But from the same family, no problem, i open a seperate issue |
2 different discussions at this point. I am getting mixed up between the 2 people. |
I'm going to close this issue since the issue that the title suggests is fixed. I'm going to open a discussion because I need some help with setting up my board. |
I opened the discussion at #142 specifically for talking about setting up the 4.3 touch board. |
Full Output of Terminal on MacOS Sequoia 15.1 Dev Beta
and logs as well
idf_py_stderr_output_50151.log
idf_py_stderr_output_50618.log
idf_py_stdout_output_50151.log
idf_py_stdout_output_50618.log
terminal.log
The text was updated successfully, but these errors were encountered: