Open ub3132003 opened 3 years ago
after change micropython path that alarming make: *** No rule to make target '/mnt/d/sj/code/micesp32/micropython/ports/esp32/dynruntime.mk'
after change IDF_PATH output: make: *** No rule to make target 'build/sdkconfig.h', needed by 'modpcnt.c'. Stop.
after change sdkconfig.h path , where micropython/port/esp32/build-xxxx/sdkconfig.h . I am not sure about this. output: GEN modpcnt.c Imports: ['esp_err.h', 'driver/pcnt.h'] Entry points: [('esp_err_to_name', 'I', 's'), ('pcnt_unit_config', 'P', 'I'), ('pcnt_get_counter_value', 'IP', 'I'), ('pcnt_counter_pause', 'I', 'I'), ('pcnt_counter_resume', 'I', 'I'), ('pcnt_counter_clear', 'I', 'I'), ('pcnt_intr_disable', 'I', 'I'), ('pcnt_filter_enable', 'I', 'I'), ('pcnt_filter_disable', 'I', 'I'), ('pcnt_set_filter_value', 'II', 'I'), ('pcnt_get_filter_value', 'IP', 'I')] GEN build/modpcnt.config.h CC modpcnt.c modpcnt.c:6:10: fatal error: esp_err.h: No such file or directory
^~~~~~~~~~~
compilation terminated.
I find you dynruntime.mk in micropython/port/esp32. output: Invalid BOARD specified: boards/GENERIC. Stop.
The dynamic linking relies on https://github.com/micropython/micropython/pull/5711, which isn't merged into master. I have umpteen PRs outstanding with no forward movement for months, so I wouldn't hold my breath...
following the doc https://docs.micropython.org/en/latest/develop/natmod.html; cmd make in path esp-counter
output: Makefile:27: /home/src/esp32/micropython/py/dynruntime.mk: No such file or directory Makefile:28: /home/src/esp32/micropython/ports/esp32/dynruntime.mk: No such file or directory