st7789_mpy
st7789_mpy copied to clipboard
Can't compile in latest ESP-IDF
The 4.3 release of ESP-IDF won't compile the c modules into the micropython firmware as has some error using 'make' 'all' that it can't find the 'file' st7789_mpy, when this is actually a folder and not a file.
Seems to be because micropython needs a cmake interface file now
https://github.com/devbis/st7789_mpy/pull/20 appears to be a fix for this
I finally got it to work using an absolute path
make USER_C_MODULES=~/st7789_mpy/st7789/micropython.cmake all
Thanks.
I'll try this, but the file is a .mk not a .cmake
Do I possibly have the wrong files?
Phil
On Fri, Apr 16, 2021, 08:01 Colin Alston @.***> wrote:
I finally got it to work using an absolute path
make USER_C_MODULES=~/st7789_mpy/st7789/micropython.cmake all
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/devbis/st7789_mpy/issues/21#issuecomment-820757024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6UV35MJ5WTF3YOYYHXSODTI5O3NANCNFSM4272UNJA .
it has changed in the new micropython codebase. See the pull requests fork at https://github.com/udifuchs/st7789_mpy - I just got it working now
It's making more progress, but now I get the following error.
Building C object esp-idf/main/CMakeFiles/idf_main.dir///frozen_content.c.obj FAILED: esp-idf/main/CMakeFiles/idf_main.dir///frozen_content.c.obj
try a make clean
and run it again. I also had a few strange issues but it eventually worked
Champion. That has worked a treat!
So it builds with the following and works great now thanks so much.
To sumerize I did the following:
make clean make USER_C_MODULES=~/st7789_mpy/st7789/micropython.cmake all
I have flashed the ESP32 using the following code changing the port and baud rate.
/home/pico/.espressif/python_env/idf4.3_py3.8_env/bin/python ../../../esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyS12 -b 921600 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build-GENERIC/bootloader/bootloader.bin 0x8000 build-GENERIC/partition_table/partition-table.bin 0x10000 build-GENERIC/micropython.bin
Then I use putty serial at 15200 baud rate (in Windows on COM12)