Replies: 12 comments 4 replies
-
Yes, the driver expects that the width is an even number. The implementation of |
Beta Was this translation helpful? Give feedback.
-
@phoddie I'm try to add a support of M5StickC PLUS that screen size is |
Beta Was this translation helpful? Give feedback.
-
In fact, my mistake. The ILI9341 driver has no width limitation when using 8 bit and 16 bit pixels. The Do you know where the crash is occurring? That might offer a hint as to a path to a solution. The easiest way to see the crash is to run an instrumented build (use |
Beta Was this translation helpful? Give feedback.
-
No, unfortunately, that's not useful. That's just the ESP32 boot traces. I'm going to try to sort out GDB configuration on Windows. I did try setting the ILI9341 width to 75 on Moddable Two. That works as expected - no crash -- with garbage in the uninitialized pixels. Here's a video. Are you able to duplicate that result? |
Beta Was this translation helpful? Give feedback.
-
Your loss. ;)
It doesn't seem like the problem is that the display driver doesn't support an odd width. Do you have another hypothesis? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It looks like the instrumented build accidentally had serial output disabled when updating to IDF 4.3. They keep changing names... this change should get your instrumentation output back. I confirmed it here with a clean build of a clean tree. GDB works too. At least on macOS. Please let me know. If that works for you, we can figure out a clean fix... |
Beta Was this translation helpful? Give feedback.
-
I changed config as you suggested and I saw
|
Beta Was this translation helpful? Give feedback.
-
When executed repeatedly, GDB started occasionally and stoped deffrent points. I took logs, but I don't know what happened from these logs. |
Beta Was this translation helpful? Give feedback.
-
Right. The release build excludes the GDB stub since that shouldn't be deployed in production. Only the instrumented build has the GDB stub enabled.
Interesting. It doesn't stop in the same place each time, but often in roughly the same neighborhood. That feels like memory corruption. Maybe there is an inconsistent configuration? Or maybe there is a real out-of-bounds memory write? It would be helpful if I could reproduce the problem, even if it is not using the same hardware. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Coming back to this, @stc1988:
|
Beta Was this translation helpful? Give feedback.
-
Sorry, no progress.
This is why I want to set odd number.Any odd number is fine. |
Beta Was this translation helpful? Give feedback.
-
When I changed width of screen (
defines.ili9341.width
) ofmanifest.json
to odd number, then application repeated to reboot.This video shows when I changed width to
75
from80
in M5stickC.IMG_97080370.MOV
I tried to change the width to some number and I found that this problem occurred in odd number.
Beta Was this translation helpful? Give feedback.
All reactions