Skip to content

Commit

Permalink
Update ESP32 board to 2.0.7 and esp-matter to d886f9c
Browse files Browse the repository at this point in the history
  • Loading branch information
Yacubane committed Mar 13, 2023
1 parent 565a107 commit b493e6b
Show file tree
Hide file tree
Showing 43 changed files with 649 additions and 212 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
This projects aims at possibility to easily launch Matter internet-of-things protocol on ESP32 with Arduino. Repository contains precompiled and ready to use components from two projects: [Espressif's SDK for Matter](https://github.com/espressif/esp-matter) and [Matter](https://github.com/project-chip/connectedhomeip).

## Installing on Arduino IDE
1. Make sure that ESP32 board version is 2.0.6
1. Make sure that ESP32 board version is 2.0.7
2. [Turn on C++17 support for Arduino](#enabling-c17-on-arduino-ide)
3. [Download](https://github.com/jakubdybczak/esp32-arduino-matter/releases) and [import library into Arduino IDE](https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries)
4. Choose larger partition scheme, for example `Minimal SPIFFS`
5. To prevent some issues related to old data, enable `Erase Flash Before Sketch Upload` option
6. Run example sketch

## Installing on PlatformIO
1. Use espressif32 platform at version 5.3.0
1. Use espressif32 platform at version v6.1.0
2. Turn on C++17 support, by setting `build_unflags=-std=gnu++11` and `build_flags=-std=gnu++17`.
3. Add this library: `lib_deps=https://github.com/jakubdybczak/esp32-arduino-matter.git`
4. Choose larger partition scheme, for example `board_build.partitions=min_spiffs.csv`
Expand All @@ -20,9 +20,9 @@ This projects aims at possibility to easily launch Matter internet-of-things pro
Please look at [examples](https://github.com/jakubdybczak/esp32-arduino-matter/tree/master/examples).

## Compatibility
This project contains precompiled libraries based on specific version of ESP32 SDK and this library does not guarantee support for other versions. Current build is based on `esp-idf` at version 4.4.3 and will work with:
* Arduino IDE with [ESP32 board](https://github.com/espressif/arduino-esp32) at version 2.0.6
* PlatformIO with [PlatformIO espressif32 platform](https://github.com/platformio/platform-espressif32) at version 5.3.0
This project contains precompiled libraries based on specific version of ESP32 SDK and this library does not guarantee support for other versions. Current build is based on `esp-idf` at version v4.4.4 and will work with:
* Arduino IDE with [ESP32 board](https://github.com/espressif/arduino-esp32) at version 2.0.7
* PlatformIO with [PlatformIO espressif32 platform](https://github.com/platformio/platform-espressif32) at version v6.1.0

## Limitations
* Library only works on ESP32 (ESP32-C3 and ESP32-S3 might work as well, but aren't tested).
Expand All @@ -36,16 +36,16 @@ This project is currently build based on these projects:

| Project | Tag / Commit hash |
| ------------- | ------------- |
| [Matter](https://github.com/project-chip/connectedhomeip) | V1.0.0.2 |
| [esp-matter](https://github.com/espressif/esp-matter) | 65e1ed1 |
| [esp-idf](https://github.com/espressif/esp-idf) | 4.4.3 |
| [Matter](https://github.com/project-chip/connectedhomeip) | v1.0.0.2 |
| [esp-matter](https://github.com/espressif/esp-matter) | d886f9c |
| [esp-idf](https://github.com/espressif/esp-idf) | v4.4.4 |

## Enabling C++17 on Arduino IDE
1. Find `platform.txt` for ESP32 board. Location of this file is platform depended.

MacOS: `~/Library/Arduino15/packages/esp32/hardware/esp32/2.0.6/platform.txt`
MacOS: `~/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/platform.txt`

Windows: `C:\Users\<USER>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\platform.txt`
Windows: `C:\Users\<USER>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\platform.txt`

2. Inside `platform.txt` find `ESP32 Support Start` section and it's `compiler.cpp.flags.esp32` key. Change `-std=gnu++11` to `-std=gnu++17`. Do the same thing for `ESP32S3` and `ESP32C3` `Support Start` section if you are using ESP32-S3/ESP32-C3.

Expand Down
Loading

0 comments on commit b493e6b

Please sign in to comment.