You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to compile for ESP32-S2 and ESP IDF v4.2 #18
Problem A:
This build is not working because the cmake IDF_TARGET variable is not used.
IDF_TARGET contains "esp32" or "esp32s2".
If I modify the include path in esp32_toolchain.cmake.in, then i am able to compile
the example. I think esp32_toolchain.cmake.in should use the IDF_TARGET variable
for building the include path.
Hello @MS71, thanks for the ideas. I'm creating a PR for integrating this ESP32-S2 support: #19
Regarding the atomics: we have a problem here, micro-ROS provides a minimal implementation of 64-bits atomics that of course can be enabled and disabled with the flag RCUTILS_NO_64_ATOMIC in the colcon.meta.
This optional extension provides implementations if the platform does not have support for:
__atomic_load_8
__atomic_store_8
__atomic_exchange_8
__atomic_fetch_add_8
The point is that ESP-IDF for ESP32-S2 is providing just some of them:
__atomic_fetch_add_8
This way, if you disable the micro-ROS 64-bit atomic extension it complains about missing load and store, but if you enable it it complains about having fetch_add twice.
Activity
pablogs9 commentedon Nov 30, 2020
Hello @MS71, thanks for the ideas. I'm creating a PR for integrating this ESP32-S2 support: #19
Regarding the atomics: we have a problem here, micro-ROS provides a minimal implementation of 64-bits atomics that of course can be enabled and disabled with the flag RCUTILS_NO_64_ATOMIC in the colcon.meta.
This optional extension provides implementations if the platform does not have support for:
The point is that ESP-IDF for ESP32-S2 is providing just some of them:
This way, if you disable the micro-ROS 64-bit atomic extension it complains about missing load and store, but if you enable it it complains about having fetch_add twice.
Do you have any suggestion?
pablogs9 commentedon Nov 30, 2020
Cool, we are going to merge the PR: https://github.com/micro-ROS/micro_ros_espidf_component/pull/19/checks?check_run_id=1472900469.
Reopen this if you have any problem or question.
BTW: I don't have here an ESP32-S2 for testing this. If you could give us some feedback, it would be super nice.