Ok, so I've just pushed my changes to master. You may have to add target_compile_options(${COMPONENT_TARGET} PUBLIC -DESP_IDF_VERSION_MAJOR=4) but it's possible it is set by default.
I think you should be almost there. Because you're not building in BLE stuff yet (I daren't check that!) you'll get errors about enableBLE/etc in jswrapper.c - but I just edited jswrapper.c and changed the relevant function names with any old function in the list nearby, and it builds!
Not had a chance to try yet - but if you include the relevant BLE stuff and can get that building then we should be almost there - it's just a matter of porting Espruino to use the new mbedtls I think
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, so I've just pushed my changes to
master
. You may have to addtarget_compile_options(${COMPONENT_TARGET} PUBLIC -DESP_IDF_VERSION_MAJOR=4)
but it's possible it is set by default.... but if you:
boards/ESP32.py
BOARD=ESP32 make
(to generate the contents ofgen
make/esp32idf4
andidf.py build
I think you should be almost there. Because you're not building in BLE stuff yet (I daren't check that!) you'll get errors about
enableBLE
/etc in jswrapper.c - but I just edited jswrapper.c and changed the relevant function names with any old function in the list nearby, and it builds!Not had a chance to try yet - but if you include the relevant BLE stuff and can get that building then we should be almost there - it's just a matter of porting Espruino to use the new mbedtls I think