Hello,
I have tried to create my own board spec for Lilygo module, but I am getting following error. First I have got error about mismatching 2MB ram but installed 8MB which I have changed in configuration. But it probably caused that partitions does not match, which is what I understood from error invalid SPI size. I have even tried expand partition 4 to 512K, but it does not look like it helped.
Could you help me with that? Is there better place to discuss than here? It is very nice module with IPS display on board.
I (48) boot: ESP-IDF v4.2-dev-2554-gde733cdab 2nd stage bootloader
I (48) boot: compile time 08:24:52
I (48) boot: chip revision: 0
I (52) boot.esp32s2: SPI Speed : 40MHz
I (56) boot.esp32s2: SPI Mode : DIO
I (61) boot.esp32s2: SPI Flash Size : 4MB
I (66) boot: Enabling RNG early entropy source...
I (71) boot: Partition Table:
I (75) boot: ## Label Usage Type ST Offset Length
I (82) boot: 0 nvs WiFi data 01 02 00009000 00005000
I (90) boot: 1 otadata OTA data 01 00 0000e00 00002000
I (97) boot: 2 ota_0 OTA app 00 10 00010000 00160000
I (104) boot: 3 ota_1 OTA app 00 11 00170000 00160000
I (112) boot: 4 uf2 factory app 00 00 002d0000 00080000
I (120) boot: 5 user_fs Unknown data 01 81 00350000 00080000
I (127) boot: End of partition table
I (131) boot: Defaulting to factory image
E (136) esp_image: image at 0x2d0000 has invalid magic byte
W (142) esp_image: image at 0x2d0000 has invalid SPI mode 255
W (149) esp_image: image at 0x2d0000 has invalid SPI size 15
E (155) boot: Factory app partition is not bootable
There is also second issue with library for the display, https://github.com/devbis/st7789_mpy which is created for MicroPython, but it does not compile for CircuitPython. Link to lib machine_spi.h not found. I expect this may be no longer similar to original MicroPython library. But at least hint where should I look to modify would help a lot.
mall@mall-pc:~/circuitpython/ports/esp32s2$ make BOARD=lilygo USER_C_MODULES=/home/mall/st7789_mpy/
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
Including User C Module from /home/mall/st7789_mpy//st7789
/home/mall/st7789_mpy/st7789/st7789.c:31:10: fatal error: extmod/machine_spi.h: No such file or directory
#include "extmod/machine_spi.h"
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../py/mkrules.mk:55: build-lilygo/st7789/st7789.o] Error 1
Thank you very much
Richard
Hello,
I have tried to create my own board spec for Lilygo module, but I am getting following error. First I have got error about mismatching 2MB ram but installed 8MB which I have changed in configuration. But it probably caused that partitions does not match, which is what I understood from error invalid SPI size. I have even tried expand partition 4 to 512K, but it does not look like it helped.
Could you help me with that? Is there better place to discuss than here? It is very nice module with IPS display on board.
I (48) boot: ESP-IDF v4.2-dev-2554-gde733cdab 2nd stage bootloader
I (48) boot: compile time 08:24:52
I (48) boot: chip revision: 0
I (52) boot.esp32s2: SPI Speed : 40MHz
I (56) boot.esp32s2: SPI Mode : DIO
I (61) boot.esp32s2: SPI Flash Size : 4MB
I (66) boot: Enabling RNG early entropy source...
I (71) boot: Partition Table:
I (75) boot: ## Label Usage Type ST Offset Length
I (82) boot: 0 nvs WiFi data 01 02 00009000 00005000
I (90) boot: 1 otadata OTA data 01 00 0000e00 00002000
I (97) boot: 2 ota_0 OTA app 00 10 00010000 00160000
I (104) boot: 3 ota_1 OTA app 00 11 00170000 00160000
I (112) boot: 4 uf2 factory app 00 00 002d0000 00080000
I (120) boot: 5 user_fs Unknown data 01 81 00350000 00080000
I (127) boot: End of partition table
I (131) boot: Defaulting to factory image
E (136) esp_image: image at 0x2d0000 has invalid magic byte
W (142) esp_image: image at 0x2d0000 has invalid SPI mode 255
W (149) esp_image: image at 0x2d0000 has invalid SPI size 15
E (155) boot: Factory app partition is not bootable
There is also second issue with library for the display, https://github.com/devbis/st7789_mpy which is created for MicroPython, but it does not compile for CircuitPython. Link to lib machine_spi.h not found. I expect this may be no longer similar to original MicroPython library. But at least hint where should I look to modify would help a lot.
mall@mall-pc:~/circuitpython/ports/esp32s2$ make BOARD=lilygo USER_C_MODULES=/home/mall/st7789_mpy/
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
Including User C Module from /home/mall/st7789_mpy//st7789
/home/mall/st7789_mpy/st7789/st7789.c:31:10: fatal error: extmod/machine_spi.h: No such file or directory
#include "extmod/machine_spi.h"
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../py/mkrules.mk:55: build-lilygo/st7789/st7789.o] Error 1
Thank you very much
Richard