-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Core Panic'ed on ESP32-S3 board with ILI9488 on 8-bit parallel mode #534
Comments
Update: I tried to fix the screen resolution by hand just by trying this in the Panel.hpp file (IPanel object)
instead of the
and it doesn't crash now. It works kinda normally. I managed to write "hello world" to the screen but the background color doesn't change to green for example. Some other weird things as well (such as creating full-screen sized sprites also crashes). But it doesn't crash now. I don't understand why it crashes when it tries to access the _width and _height variables inside the struct. I use -std=gnu++2a by the way. |
私はあなたのプログラムのデバッグ担当者ではないので、このような情報を渡されても検証できません。 |
I only call the init function and then draw a blank screen. There is nothing to look inside the program. I just posted here because you require it. The library crashes, when I call the fillScreen. Same code works with TFT_eSPI... Backtrace shows that the issue comes from the LGFXBase.hpp:284 when calling v1::LGFXBase::width() |
現象が再現できるビルド可能な最小のプログラムを用意してください。 |
Here is the minimal code: I also write it here the two files here so you can see: LovyanGFX_setup.h
main.cpp
|
Here is the stack trace for that code:
|
why use Serial ?? you using Arduino ?? ESP-IDF ?? |
Yes, I was using Arduino as a component. It works now! Why is this required? I don't understand. |
There is an ifdef branch inside LovyanGFX depending on whether Arduino is used or not. In particular, the shape of the LGFX_Base type class changes depending on whether or not it inherits from Arduino's Printable. This can lead to memory address inconsistencies and crashes easily if the Arduino is not specified correctly. |
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
I am using the Parallel8 bus on a custom ESP32-S3 board that I made. When intializing the LovyanGFX library, the processor crashes with the given error:
Crash occurs when calling fillScreen from anywhere inside the code. The interesting part is that, display actually gets filled with black then it crashes. I am sure with my pin configuration since the same code works with the TFT_eSPI library.
I tried changing frequency etc. but the crash doesn't seem to be related to that. Backtrace shows that the issue comes from the LGFXBase.hpp:284 when calling v1::LGFXBase::width()
Similar issue occurs when I comment the fillscreen and uncomment the createSprite, this time the backtrace becomes:
Expected Behavior ( 期待される動作 )
To not crash
Actual Behavior ( 実際の動作 )
Code crashes
Steps to reproduce ( 再現のための前提条件 )
// If possible, attach a picture of your setup/wiring here.
Code to reproduce this issue ( 再現させるためのコード )
The text was updated successfully, but these errors were encountered: