Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
a9150021
Commit
a9150021
authored
Feb 15, 2021
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp32: Add support to build with ESP-IDF v4.2.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
d191d88c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
ports/esp32/README.md
ports/esp32/README.md
+1
-1
ports/esp32/main/CMakeLists.txt
ports/esp32/main/CMakeLists.txt
+12
-0
No files found.
ports/esp32/README.md
View file @
a9150021
...
...
@@ -28,7 +28,7 @@ manage the ESP32 microcontroller, as well as a way to manage the required
build environment and toolchains needed to build the firmware.
The ESP-IDF changes quickly and MicroPython only supports certain versions.
Currently MicroPython supports v4.0.2
and v4.1.1
,
Currently MicroPython supports v4.0.2
, v4.1.1 and v4.2
,
although other IDF v4 versions may also work.
To install the ESP-IDF the full instructions can be found at the
...
...
ports/esp32/main/CMakeLists.txt
View file @
a9150021
...
...
@@ -108,6 +108,11 @@ if(IDF_VERSION_MINOR GREATER_EQUAL 1)
list
(
APPEND IDF_COMPONENTS esp_netif
)
endif
()
if
(
IDF_VERSION_MINOR GREATER_EQUAL 2
)
list
(
APPEND IDF_COMPONENTS esp_system
)
list
(
APPEND IDF_COMPONENTS esp_timer
)
endif
()
# Register the main IDF component.
idf_component_register
(
SRCS
...
...
@@ -169,5 +174,12 @@ foreach(comp ${IDF_COMPONENTS})
endif
()
endforeach
()
if
(
IDF_VERSION_MINOR GREATER_EQUAL 2
)
# These paths cannot currently be found by the IDF_COMPONENTS search loop above,
# so add them explicitly.
list
(
APPEND MICROPY_CPP_INC_EXTRA
${
IDF_PATH
}
/components/soc/soc/
${
IDF_TARGET
}
/include
)
list
(
APPEND MICROPY_CPP_INC_EXTRA
${
IDF_PATH
}
/components/soc/soc/include
)
endif
()
# Include the main MicroPython cmake rules.
include
(
${
MICROPY_DIR
}
/py/mkrules.cmake
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment