Update the GENERIC-7789 firmware#169
Conversation
|
Thank you, it is working (MicroPython v1.24.0-preview.309.gf1bdac375.dirty on 2024-09-17), but LCD SPI is limited to 26 MHz, there is an error when 40 MHz is set:
Then fatal error and reboot. |
|
I will work on fixing that. |
I should have added support for 40 MHz SPI.
|
It should work now. |
|
Thank you for your work, but it is still not working for me:
Then the program continues, but crashes. I am using M5StickC Plus, old version was working fine on 40 MHz, some pieces (we have dozens) also on 80 MHz. |
|
It is working for me with this code: spi = machine.SPI(1, baudrate=40000000)It could be the pins you are using. I am not sure. |
|
Thank you, everything works very well on the ESP32 TTGO, with the particularity of the frequency being a maximum of 26000000, but perhaps it is due to the fact that this specific board needs something special that the generic one does not have. However, for my projects, it works great. I needed ESPNOW. |
|
Well, I have found the reason, why the SPI frequency is limited to 26 MHz: there is a check condition in IDF 5 which is not allowing to set higher frequency, if other than ideal pins are used. The condition is in IDF file /opt/esp/idf/components/hal/spi_hal_iram.c. Easy patch is to add this line just after all Tested on M5StickC Plus and LILYGO T-Display. You can download my firmware builder or .bin file with latest MicroPython: https://github.com/dusan-zervan/st7789_mpy-builder |
I updated the GENERIC-7789 firmware