|
1 | 1 | To use as a component of ESP-IDF
|
2 | 2 | =================================================
|
3 | 3 |
|
4 |
| -## esp32-arduino-lib-builder |
5 |
| - |
6 |
| -For a simplified method, see [lib-builder](lib_builder.md) |
7 |
| - |
8 | 4 | ## Installation
|
9 | 5 |
|
10 |
| -- Download and install [esp-idf](https://github.com/espressif/esp-idf) |
| 6 | +- Download and install [esp-idf v4.2 release](https://github.com/espressif/esp-idf) |
11 | 7 | - Create blank idf project (from one of the examples)
|
12 | 8 | - in the project folder, create a folder called components and clone this repository inside
|
13 | 9 |
|
14 | 10 | ```bash
|
15 | 11 | mkdir -p components && \
|
16 | 12 | cd components && \
|
17 |
| - git clone https://github.com/espressif/arduino-esp32.git arduino && \ |
| 13 | + git clone -single-branch --branch mod-idf-v4.2 https://github.com/summivox/arduino-esp32.git arduino && \ |
18 | 14 | cd arduino && \
|
19 | 15 | git submodule update --init --recursive && \
|
20 | 16 | cd ../.. && \
|
21 | 17 | make menuconfig
|
22 | 18 | ```
|
| 19 | + |
23 | 20 | - ```make menuconfig``` has some Arduino options
|
| 21 | + - **important: you MUST enable these to build** |
| 22 | + - mbedTLS: Enable pre-shared-key ciphersuites |
| 23 | + - bluetooth: At least enable BLE and Bluedroid |
| 24 | + |
24 | 25 | - "Autostart Arduino setup and loop on boot"
|
25 | 26 | - If you enable this options, your main.cpp should be formated like any other sketch
|
26 | 27 |
|
@@ -77,6 +78,10 @@ If you are writing code that does not require Arduino to compile and you want yo
|
77 | 78 | You might notice that Arduino-esp32's `delay()` function will only work in multiples of 10ms. That is because, by default, esp-idf handles task events 100 times per second.
|
78 | 79 | To fix that behavior you need to set FreeRTOS tick rate to 1000Hz in `make menuconfig` -> `Component config` -> `FreeRTOS` -> `Tick rate`.
|
79 | 80 |
|
| 81 | +## FreeRTOS task watchdog time out |
| 82 | + |
| 83 | +In `menuconfig`, disable "Watch CPU1 Idle Task". |
| 84 | + |
80 | 85 | ## Compilation Errors
|
81 | 86 |
|
82 | 87 | As commits are made to esp-idf and submodules, the codebases can develop incompatibilities which cause compilation errors. If you have problems compiling, follow the instructions in [Issue #1142](https://github.com/espressif/arduino-esp32/issues/1142) to roll esp-idf back to a known good version.
|
0 commit comments