Closed rascove closed 1 week ago
Hi @rascove
I'm working on a PlatformIO project that requires the ESP32 (LilyGo T5 4.7)
You will be much better off writing an issue in their Repository. Because we do not produce this Hardware and not even their code which is based on epdiy v2 ( And as you can see here the PCB is already version 7 )
You could try the same code in a different hardware maybe. And also make some tests with the latest version of the Firmware of this repository.
Thanks for the feedback @martinberlin , I'll do that as well.
I'm posting this here because the error is caused when the EpdiyHighlevelState
is being initialised, as shown in the serial log: assert failed: epd_hl_init highlevel.c:50 (state.dirty_columns != NULL)
.
Anyway, thank you very much and have a great day ahead.
Sure, but you are using a library that is from Lilygo and since long time updated here. If you switch to this repository with the latest library then esp32 version of Lilygo is still supported. (Not S3) Anyways buying a product from Lilygo is the hardware provider who should give support.
Hi @martinberlin , thanks for the response but please refer to my code and PlatformIO configuration. I'm not using LilyGo T5 library at all, in fact, I'm using this repository's own example to build the project.
Don't really understand why then:
Use first letter uppercase. The example code in this repositories are not like this and it won't find the include if you uppercase first letter. I will try when I find sometime your code, but I need to find my Lilygo first. I highly recommend you to switching to a v7 board though, to use the latest code using LCD Module. I've still one v7 unit available in tindie.com if you search for "epdiy"
Ah, I'm so sorry about that. I'm using Windows so the filename is not case-sensitive, and coming from Java background, it's my habit to capitalise the first letter of the library.
But thank you very much for your kind assistance, @martinberlin , I really appreciate that. Unfortunately I don't have a control for the type of e-Paper used as it was purchased by the client.
Also this line of the assert where it stops:
state.dirty_columns
= heap_caps_aligned_alloc(16, epd_width() / 2, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
Creates the RAM space to allocate the variable. If it's not allocated then the assert will fail. Try to locate it in PSRAM, but that will be slower, and not sure if it will work. It might be that using this combination of libraries won't work with the hardware. That's why I was suggesting to update to v7. You will need to deep debug this and check how much Heap RAM you have available, I guess this could be the most probable cause.
Hi @martinberlin ,
Sorry for the late response and thank you very much for your advice about the insufficient RAM. It gave me the idea to initialise the BLE stack in the PSRAM instead, which is already provided by the NimBLE-Arduino library. And now, all three libraries can be used altogether.
Once again, thank you very much and have a great day ahead.
Hi, I'm working on a PlatformIO project that requires the ESP32 (LilyGo T5 4.7) to subscribe and publish to an MQTT broker using Wi-Fi and scan nearby BLE devices, while displaying some data on the e-Paper. I'm using NimBLE-Arduino and built-in Wi-Fi libraries in conjunction with the epdiy.
If I use only two of these libraries (epdiy + Wi-Fi, epdiy + NimBLE-Arduino, or NimBLE-Arduino + Wi-Fi), the project can be successfully executed on the device, however as soon as I added all three libraries at the same time, the device keeps on rebooting. These are the source code, the configuration file, and the log from serial monitor for your reference:
Thank you very much in advance.