This directory contains the build/configuration information for the ESP32 MCU under the Espressif ESP-IDF framework. The configuration here is sufficient to run the ubxlib
tests and examples, no attempt is made to optimise the MCU RAM/flash etc. sizes, you need to know how to do that yourself.
Follow the instructions to build for the ESP-IDF platform:
The builds here are tested with the v4.3.2 release of ESP-IDF from Github.
To use this port in your ESP32 application you need to include the port/platform/esp-idf/mcu/esp32/components directory in your EXTRA_COMPONENT_DIRS
and add ubxlib
to COMPONENTS
. As an example you can have a look at runner/CMakeLists.txt. There are also some required sdkconfig
, but you currently need to check runner/sdkconfig.defaults to get these correct.
You may override or provide conditional compilation flags to ESP-IDF without modifying the build file. Do this by setting an environment variable U_FLAGS
, e.g.:
set U_FLAGS=-DMY_FLAG
...or:
set U_FLAGS=-DMY_FLAG -DU_CFG_APP_PIN_CELL_ENABLE_POWER=-1
With this done, cd
to your chosen build directory beneath this one to build and download your code.
None aside from the standard ESP-IDF trace log point over UART.
None over and above those used for your chosen example/test, e.g. a UART to talk to a u-blox module.
- When updating this build to a new version of ESP-IDF change the release version stated in the introduction above.