8000 update doc · summivox/arduino-esp32@b935ff9 · GitHub
[go: up one dir, main page]

Skip to content

Commit b935ff9

Browse files
author
summivox
committed
update doc
1 parent 58c104c commit b935ff9

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
# Fork Notes
2+
3+
This is a fork of https://github.com/espressif/arduino-esp32/tree/idf-release/v4.2 that actually builds successfully when added as a component to a boilerplate project targeting https://github.com/espressif/esp-idf/tree/release/v4.2 .
4+
5+
## Background
6+
7+
`arduino-esp32` can be added as a component to your `esp-idf`-based project. These two libraries are tightly coupled and will not compile unless both are on the same release. However, upstream has several other issues preventing a success build, even in a blank project. This fork fixes this, at the cost of removing `LITTLEFS` and `NetBIOS` libraries.
8+
9+
## Usage
10+
11+
See <docs/esp-idf_component.md> (also updated).
12+
13+
----------------------------------------
14+
115
# Arduino core for the ESP32
2-
[![Build Status](https://travis-ci.org/espressif/arduino-esp32.svg?branch=master)](https://travis-ci.org/espressif/arduino-esp32) ![](https://github.com/espressif/arduino-esp32/workflows/ESP32%20Arduino%20CI/badge.svg)
316

417
### Need help or have a question? Join the chat at [![https://gitter.im/espressif/arduino-esp32](https://badges.gitter.im/espressif/arduino-esp32.svg)](https://gitter.im/espressif/arduino-esp32?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
518

docs/esp-idf_component.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
To use as a component of ESP-IDF
22
=================================================
33

4-
## esp32-arduino-lib-builder
5-
6-
For a simplified method, see [lib-builder](lib_builder.md)
7-
84
## Installation
95

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)
117
- Create blank idf project (from one of the examples)
128
- in the project folder, create a folder called components and clone this repository inside
139

1410
```bash
1511
mkdir -p components && \
1612
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 && \
1814
cd arduino && \
1915
git submodule update --init --recursive && \
2016
cd ../.. && \
2117
make menuconfig
2218
```
19+
2320
- ```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+
2425
- "Autostart Arduino setup and loop on boot"
2526
- If you enable this options, your main.cpp should be formated like any other sketch
2627

@@ -77,6 +78,10 @@ If you are writing code that does not require Arduino to compile and you want yo
7778
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.
7879
To fix that behavior you need to set FreeRTOS tick rate to 1000Hz in `make menuconfig` -> `Component config` -> `FreeRTOS` -> `Tick rate`.
7980

81+
## FreeRTOS task watchdog time out
82+
83+
In `menuconfig`, disable "Watch CPU1 Idle Task".
84+
8085
## Compilation Errors
8186

8287
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

Comments
 (0)
0