arduino-esp32/platform.txt

337 lines
22 KiB
Plaintext
Raw Normal View History

2016-10-06 11:21:30 +00:00
name=ESP32 Arduino
version=3.0.4
2016-10-06 11:21:30 +00:00
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
tools.esp32-arduino-libs.path={runtime.platform.path}/tools/esp32-arduino-libs
tools.esp32-arduino-libs.path.windows={runtime.platform.path}\tools\esp32-arduino-libs
tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32-elf
tools.xtensa-esp32s2-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s2-elf
tools.xtensa-esp32s3-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s3-elf
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
tools.xtensa-esp-elf-gdb.path={runtime.platform.path}/tools/xtensa-esp-elf-gdb
tools.riscv32-esp-elf-gcc.path={runtime.platform.path}/tools/riscv32-esp-elf
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
tools.riscv32-esp-elf-gdb.path={runtime.platform.path}/tools/riscv32-esp-elf-gdb
2018-12-16 16:09:44 +00:00
tools.esptool_py.path={runtime.platform.path}/tools/esptool
tools.esptool_py.cmd=esptool
tools.esptool_py.cmd.linux=esptool.py
tools.esptool_py.cmd.windows=esptool.exe
2016-10-06 11:21:30 +00:00
tools.esptool_py.network_cmd=python3 "{runtime.platform.path}/tools/espota.py" -r
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
tools.esptool_py.network_cmd.windows="{runtime.platform.path}\tools\espota.exe" -r
tools.esp_ota.cmd=python3 "{runtime.platform.path}/tools/espota.py" -r
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
tools.esp_ota.cmd.windows="{runtime.platform.path}\tools\espota.exe" -r
tools.gen_esp32part.cmd=python3 "{runtime.platform.path}/tools/gen_esp32part.py"
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
tools.gen_esp32part.cmd.windows="{runtime.platform.path}\tools\gen_esp32part.exe"
tools.gen_insights_pkg.cmd=python3 "{runtime.platform.path}"/tools/gen_insights_package.py
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
tools.gen_insights_pkg.cmd.windows="{runtime.platform.path}\tools\gen_insights_package.exe"
compiler.path={tools.{build.tarch}-{build.target}-elf-gcc.path}/bin/
2021-04-14 15:10:05 +00:00
compiler.prefix={build.tarch}-{build.target}-elf-
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
compiler.sdk.path={tools.esp32-arduino-libs.path}/{build.mcu}
compiler.sdk.path.windows={tools.esp32-arduino-libs.path}\{build.mcu}
2021-04-14 15:10:05 +00:00
# EXPERIMENTAL feature: optimization flags
# - this is alpha and may be subject to change without notice
compiler.optimization_flags=-Os
compiler.optimization_flags.release=-Os
compiler.optimization_flags.debug=-Og -g3
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
# Arduino Compile Warning Levels
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
# Additional flags specific to Arduino (not based on IDF flags).
# Update tools/platformio-build.py when changing these flags.
compiler.common_werror_flags=-Werror=return-type
# Compile Flags
compiler.cpreprocessor.flags="@{compiler.sdk.path}/flags/defines" "-I{build.source.path}" -iprefix "{compiler.sdk.path}/include/" "@{compiler.sdk.path}/flags/includes" "-I{compiler.sdk.path}/{build.memory_type}/include"
compiler.c.flags="@{compiler.sdk.path}/flags/c_flags" {compiler.warning_flags} {compiler.optimization_flags} {compiler.common_werror_flags}
compiler.cpp.flags="@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags} {compiler.common_werror_flags}
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
compiler.S.flags="@{compiler.sdk.path}/flags/S_flags" {compiler.warning_flags} {compiler.optimization_flags}
compiler.c.elf.flags="@{compiler.sdk.path}/flags/ld_flags" "@{compiler.sdk.path}/flags/ld_scripts"
compiler.c.elf.libs="@{compiler.sdk.path}/flags/ld_libs"
compiler.ar.flags=cr
# Compilers
compiler.c.cmd={compiler.prefix}gcc
compiler.cpp.cmd={compiler.prefix}g++
compiler.S.cmd={compiler.prefix}gcc
compiler.c.elf.cmd={compiler.prefix}g++
compiler.as.cmd={compiler.prefix}as
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
compiler.ar.cmd={compiler.prefix}gcc-ar
compiler.size.cmd={compiler.prefix}size
2016-10-06 11:21:30 +00:00
# These can be overridden in platform.local.txt
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
compiler.c.extra_flags=-MMD -c
compiler.cpp.extra_flags=-MMD -c
compiler.S.extra_flags=-MMD -c -x assembler-with-cpp
compiler.c.elf.extra_flags="-Wl,--Map={build.path}/{build.project_name}.map" "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" "-L{compiler.sdk.path}/{build.memory_type}" "-Wl,--wrap=esp_panic_handler"
2016-10-06 11:21:30 +00:00
compiler.ar.extra_flags=
compiler.objcopy.eep.extra_flags=
compiler.elf2hex.extra_flags=
compiler.libraries.ldflags=
2016-10-06 11:21:30 +00:00
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
# Target dependent definitions
build.extra_flags.esp32=-DARDUINO_USB_CDC_ON_BOOT=0
build.extra_flags.esp32s3=-DARDUINO_USB_MODE={build.usb_mode} -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot} -DARDUINO_USB_MSC_ON_BOOT={build.msc_on_boot} -DARDUINO_USB_DFU_ON_BOOT={build.dfu_on_boot}
build.extra_flags.esp32s2=-DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot} -DARDUINO_USB_MSC_ON_BOOT={build.msc_on_boot} -DARDUINO_USB_DFU_ON_BOOT={build.dfu_on_boot}
build.extra_flags.esp32c2=-DARDUINO_USB_CDC_ON_BOOT=0
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
build.extra_flags.esp32c3=-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot}
build.extra_flags.esp32c6=-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot}
build.extra_flags.esp32h2=-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot}
# This can be overriden in boards.txt
build.zigbee_mode=
build.zigbee_libs=
build.flash_size=4MB
build.flash_mode=dio
build.flash_freq=80m
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
build.img_freq={build.flash_freq}
build.boot=qio
build.boot_freq={build.flash_freq}
2021-04-14 15:10:05 +00:00
build.bootloader_addr=0x1000
build.custom_bootloader=bootloader
build.custom_partitions=partitions
build.code_debug=0
build.defines=
build.loop_core=
build.event_core=
build.extra_flags=-DARDUINO_HOST_OS="{runtime.os}" -DARDUINO_FQBN="{build.fqbn}" -DESP32 -DCORE_DEBUG_LEVEL={build.code_debug} {build.loop_core} {build.event_core} {build.defines} {build.extra_flags.{build.mcu}} {build.zigbee_mode}
build.extra_libs=
build.memory_type={build.boot}_qspi
# Custom build options
build.opt.name=build_opt.h
build.opt.path={build.path}/{build.opt.name}
# Check if custom partitions exist: source > variant > build.partitions
recipe.hooks.prebuild.1.pattern=/usr/bin/env bash -c "[ ! -f "{build.source.path}"/partitions.csv ] || cp -f "{build.source.path}"/partitions.csv "{build.path}"/partitions.csv"
recipe.hooks.prebuild.2.pattern=/usr/bin/env bash -c "[ -f "{build.path}"/partitions.csv ] || [ ! -f "{build.variant.path}"/{build.custom_partitions}.csv ] || cp "{build.variant.path}"/{build.custom_partitions}.csv "{build.path}"/partitions.csv"
recipe.hooks.prebuild.3.pattern=/usr/bin/env bash -c "[ -f "{build.path}"/partitions.csv ] || cp "{runtime.platform.path}"/tools/partitions/{build.partitions}.csv "{build.path}"/partitions.csv"
recipe.hooks.prebuild.1.pattern.windows=cmd /c if exist "{build.source.path}\partitions.csv" COPY /y "{build.source.path}\partitions.csv" "{build.path}\partitions.csv"
recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\partitions.csv" if exist "{build.variant.path}\{build.custom_partitions}.csv" COPY "{build.variant.path}\{build.custom_partitions}.csv" "{build.path}\partitions.csv"
recipe.hooks.prebuild.3.pattern.windows=cmd /c if not exist "{build.path}\partitions.csv" COPY "{runtime.platform.path}\tools\partitions\{build.partitions}.csv" "{build.path}\partitions.csv"
# Check if custom bootloader exist: source > variant > build.boot
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
recipe.hooks.prebuild.4.pattern_args=--chip {build.mcu} elf2image --flash_mode {build.flash_mode} --flash_freq {build.img_freq} --flash_size {build.flash_size} -o
recipe.hooks.prebuild.4.pattern=/usr/bin/env bash -c "[ -f "{build.source.path}"/bootloader.bin ] && cp -f "{build.source.path}"/bootloader.bin "{build.path}"/{build.project_name}.bootloader.bin || ( [ -f "{build.variant.path}"/{build.custom_bootloader}.bin ] && cp "{build.variant.path}"/{build.custom_bootloader}.bin "{build.path}"/{build.project_name}.bootloader.bin || "{tools.esptool_py.path}"/{tools.esptool_py.cmd} {recipe.hooks.prebuild.4.pattern_args} "{build.path}"/{build.project_name}.bootloader.bin "{compiler.sdk.path}"/bin/bootloader_{build.boot}_{build.boot_freq}.elf )"
recipe.hooks.prebuild.4.pattern.linux=/usr/bin/env bash -c "[ -f "{build.source.path}"/bootloader.bin ] && cp -f "{build.source.path}"/bootloader.bin "{build.path}"/{build.project_name}.bootloader.bin || ( [ -f "{build.variant.path}"/{build.custom_bootloader}.bin ] && cp "{build.variant.path}"/{build.custom_bootloader}.bin "{build.path}"/{build.project_name}.bootloader.bin || python3 "{tools.esptool_py.path}"/{tools.esptool_py.cmd} {recipe.hooks.prebuild.4.pattern_args} "{build.path}"/{build.project_name}.bootloader.bin "{compiler.sdk.path}"/bin/bootloader_{build.boot}_{build.boot_freq}.elf )"
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
recipe.hooks.prebuild.4.pattern.windows=cmd /c IF EXIST "{build.source.path}\bootloader.bin" ( COPY /y "{build.source.path}\bootloader.bin" "{build.path}\{build.project_name}.bootloader.bin" ) ELSE ( IF EXIST "{build.variant.path}\{build.custom_bootloader}.bin" ( COPY "{build.variant.path}\{build.custom_bootloader}.bin" "{build.path}\{build.project_name}.bootloader.bin" ) ELSE ( "{tools.esptool_py.path}\{tools.esptool_py.cmd}" {recipe.hooks.prebuild.4.pattern_args} "{build.path}\{build.project_name}.bootloader.bin" "{compiler.sdk.path}\bin\bootloader_{build.boot}_{build.boot_freq}.elf" ) )
# Check if custom build options exist in the sketch folder
recipe.hooks.prebuild.5.pattern=/usr/bin/env bash -c "[ ! -f "{build.source.path}"/build_opt.h ] || cp -f "{build.source.path}"/build_opt.h "{build.path}"/build_opt.h"
recipe.hooks.prebuild.6.pattern=/usr/bin/env bash -c "[ -f "{build.path}"/build_opt.h ] || : > "{build.path}"/build_opt.h"
recipe.hooks.prebuild.5.pattern.windows=cmd /c if exist "{build.source.path}\build_opt.h" COPY /y "{build.source.path}\build_opt.h" "{build.path}\build_opt.h"
recipe.hooks.prebuild.6.pattern.windows=cmd /c if not exist "{build.path}\build_opt.h" type nul > "{build.path}\build_opt.h"
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
# Set -DARDUINO_CORE_BUILD only on core file compilation
file_opts.path={build.path}/file_opts
recipe.hooks.prebuild.7.pattern=/usr/bin/env bash -c ": > '{file_opts.path}'"
recipe.hooks.core.prebuild.1.pattern=/usr/bin/env bash -c "echo -DARDUINO_CORE_BUILD > '{file_opts.path}'"
recipe.hooks.core.postbuild.1.pattern=/usr/bin/env bash -c ": > '{file_opts.path}'"
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
recipe.hooks.prebuild.7.pattern.windows=cmd /c type nul > "{file_opts.path}"
recipe.hooks.core.prebuild.1.pattern.windows=cmd /c echo "-DARDUINO_CORE_BUILD" > "{file_opts.path}"
recipe.hooks.core.postbuild.1.pattern.windows=cmd /c type nul > "{file_opts.path}"
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
2016-10-06 11:21:30 +00:00
## Compile c files
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.extra_flags} {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {build.extra_flags} {compiler.cpreprocessor.flags} {includes} "@{build.opt.path}" "@{file_opts.path}" "{source_file}" -o "{object_file}"
2016-10-06 11:21:30 +00:00
## Compile c++ files
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.extra_flags} {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {build.extra_flags} {compiler.cpreprocessor.flags} {includes} "@{build.opt.path}" "@{file_opts.path}" "{source_file}" -o "{object_file}"
2016-10-06 11:21:30 +00:00
## Compile S files
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.extra_flags} {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {build.extra_flags} {compiler.cpreprocessor.flags} {includes} "@{build.opt.path}" "@{file_opts.path}" "{source_file}" -o "{object_file}"
2016-10-06 11:21:30 +00:00
## Create archives
2018-12-15 16:39:20 +00:00
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
2016-10-06 11:21:30 +00:00
## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} -Wl,--start-group {object_files} "{archive_file_path}" {build.extra_libs} {build.zigbee_libs} {compiler.c.elf.libs} {compiler.libraries.ldflags} -Wl,--end-group -Wl,-EL -o "{build.path}/{build.project_name}.elf"
2016-10-06 11:21:30 +00:00
## Create partitions.bin
recipe.objcopy.partitions.bin.pattern={tools.gen_esp32part.cmd} -q "{build.path}/partitions.csv" "{build.path}/{build.project_name}.partitions.bin"
2016-10-06 11:21:30 +00:00
## Create bin
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
recipe.objcopy.bin.pattern_args=--chip {build.mcu} elf2image --flash_mode "{build.flash_mode}" --flash_freq "{build.img_freq}" --flash_size "{build.flash_size}" --elf-sha256-offset 0xb0 -o "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.elf"
recipe.objcopy.bin.pattern="{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.objcopy.bin.pattern_args}
recipe.objcopy.bin.pattern.linux=python3 "{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.objcopy.bin.pattern_args}
2016-10-06 11:21:30 +00:00
## Create Insights Firmware Package
recipe.hooks.objcopy.postobjcopy.1.pattern_args={build.path} {build.project_name} "{build.source.path}"
recipe.hooks.objcopy.postobjcopy.1.pattern=/usr/bin/env bash -c "[ ! -d "{build.path}"/libraries/Insights ] || {tools.gen_insights_pkg.cmd} {recipe.hooks.objcopy.postobjcopy.1.pattern_args}"
recipe.hooks.objcopy.postobjcopy.1.pattern.windows=cmd /c if exist "{build.path}\libraries\Insights" {tools.gen_insights_pkg.cmd} {recipe.hooks.objcopy.postobjcopy.1.pattern_args}
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
## Copy ESP_SR Model
recipe.hooks.objcopy.postobjcopy.2.pattern=/usr/bin/env bash -c "[ ! -d "{build.path}"/libraries/ESP_SR ] || [ ! -f "{compiler.sdk.path}"/esp_sr/srmodels.bin ] || cp -f "{compiler.sdk.path}"/esp_sr/srmodels.bin "{build.path}"/srmodels.bin"
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
recipe.hooks.objcopy.postobjcopy.2.pattern.windows=cmd /c if exist "{build.path}\libraries\ESP_SR" if exist "{compiler.sdk.path}\esp_sr\srmodels.bin" COPY /y "{compiler.sdk.path}\esp_sr\srmodels.bin" "{build.path}\srmodels.bin"
# Create merged binary
recipe.hooks.objcopy.postobjcopy.3.pattern_args=--chip {build.mcu} merge_bin -o "{build.path}/{build.project_name}.merged.bin" --fill-flash-size {build.flash_size} --flash_mode keep --flash_freq keep --flash_size keep {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x10000 "{build.path}/{build.project_name}.bin"
recipe.hooks.objcopy.postobjcopy.3.pattern="{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.hooks.objcopy.postobjcopy.3.pattern_args}
recipe.hooks.objcopy.postobjcopy.3.pattern.linux=python3 "{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.hooks.objcopy.postobjcopy.3.pattern_args}
## Save bin
recipe.output.tmp_file={build.project_name}.bin
recipe.output.save_file={build.project_name}.{build.variant}.bin
2016-10-06 11:21:30 +00:00
## Compute size
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
2018-06-27 19:01:31 +00:00
recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.flash\.text|\.flash\.rodata|)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.noinit)\s+([0-9]+).*
2016-10-06 11:21:30 +00:00
## Required discoveries and monitors
## ---------------------------------
pluggable_discovery.required.0=builtin:serial-discovery
pluggable_discovery.required.1=builtin:mdns-discovery
pluggable_monitor.required.serial=builtin:serial-monitor
## ------------------
## Upload/Debug tools
## ------------------
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
# Debugger configuration
# ----------------------
# ESP32 debug configuration
debug_script.esp32=esp32-wrover-kit-3.3v.cfg
debug_config.esp32.cortex-debug.custom.name=Arduino on ESP32
debug_config.esp32.cortex-debug.custom.postAttachCommands.0=set remote hardware-watchpoint-limit 2
debug_config.esp32.cortex-debug.custom.postAttachCommands.1=monitor reset halt
debug_config.esp32.cortex-debug.custom.postAttachCommands.2=monitor gdb_sync
debug_config.esp32.cortex-debug.custom.postAttachCommands.3=thb setup
debug_config.esp32.cortex-debug.custom.postAttachCommands.4=c
debug_config.esp32.cortex-debug.custom.overrideRestartCommands.0=monitor reset halt
debug_config.esp32.cortex-debug.custom.overrideRestartCommands.1=monitor gdb_sync
debug_config.esp32.cortex-debug.custom.overrideRestartCommands.2=thb setup
debug_config.esp32.cortex-debug.custom.overrideRestartCommands.3=c
# ESP32-S2 debug configuration
debug_script.esp32s2=esp32s2-kaluga-1.cfg
debug_config.esp32s2.cortex-debug.custom.name=Arduino on ESP32-S2
debug_config.esp32s2.cortex-debug.custom.postAttachCommands.0=set remote hardware-watchpoint-limit 2
debug_config.esp32s2.cortex-debug.custom.postAttachCommands.1=monitor reset halt
debug_config.esp32s2.cortex-debug.custom.postAttachCommands.2=monitor gdb_sync
debug_config.esp32s2.cortex-debug.custom.postAttachCommands.3=thb setup
debug_config.esp32s2.cortex-debug.custom.postAttachCommands.4=c
debug_config.esp32s2.cortex-debug.custom.overrideRestartCommands.0=monitor reset halt
debug_config.esp32s2.cortex-debug.custom.overrideRestartCommands.1=monitor gdb_sync
debug_config.esp32s2.cortex-debug.custom.overrideRestartCommands.2=thb setup
debug_config.esp32s2.cortex-debug.custom.overrideRestartCommands.3=c
# ESP32-S3 debug configuration
debug_script.esp32s3=esp32s3-builtin.cfg
debug_config.esp32s3.cortex-debug.custom.name=Arduino on ESP32-S3
debug_config.esp32s3.cortex-debug.custom.overrideAttachCommands.0=set remote hardware-watchpoint-limit 2
debug_config.esp32s3.cortex-debug.custom.overrideAttachCommands.1=monitor reset halt
debug_config.esp32s3.cortex-debug.custom.overrideAttachCommands.2=monitor gdb_sync
debug_config.esp32s3.cortex-debug.custom.overrideAttachCommands.3=thb setup
debug_config.esp32s3.cortex-debug.custom.overrideAttachCommands.4=c
debug_config.esp32s3.cortex-debug.custom.overrideRestartCommands.0=monitor reset halt
debug_config.esp32s3.cortex-debug.custom.overrideRestartCommands.1=monitor gdb_sync
# ESP32-C3 debug configuration
debug_script.esp32c3=esp32c3-builtin.cfg
debug_config.esp32c3.cortex-debug.custom.name=Arduino on ESP32-C3
debug_config.esp32c3.cortex-debug.custom.serverArgs.0=-d3
debug_config.esp32c3.cortex-debug.custom.overrideAttachCommands.0=set remote hardware-watchpoint-limit 8
debug_config.esp32c3.cortex-debug.custom.overrideAttachCommands.1=monitor reset
debug_config.esp32c3.cortex-debug.custom.overrideAttachCommands.2=monitor halt
debug_config.esp32c3.cortex-debug.custom.overrideAttachCommands.3=monitor gdb_sync
debug_config.esp32c3.cortex-debug.custom.overrideAttachCommands.4=thb setup
debug_config.esp32c3.cortex-debug.custom.overrideRestartCommands.0=monitor reset
debug_config.esp32c3.cortex-debug.custom.overrideRestartCommands.1=monitor halt
debug_config.esp32c3.cortex-debug.custom.overrideRestartCommands.2=monitor gdb_sync
debug_config.esp32c3.cortex-debug.custom.overrideRestartCommands.3=thb setup
# ESP32-C6 debug configuration (TBD)
debug_script.esp32c6=esp32c6-builtin.cfg
debug_config.esp32c6=
# ESP32-H2 debug configuration (TBD)
debug_script.esp32h2=esp32h2-builtin.cfg
debug_config.esp32h2=
# Debug API variable definitions
debug.executable={build.path}/{build.project_name}.elf
debug.toolchain=gcc
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
debug.toolchain.path={tools.{build.tarch}-esp-elf-gdb.path}/bin/
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
debug.toolchain.prefix={build.tarch}-{build.target}-elf
debug.server=openocd
Implement official Arduino IDE debugger API (#9116) * refactor(on-release): improve platform.txt path replacements Use regexs to replace all occurrences of `{runtime.platform.path}` with the correct `{runtime.tools.*.path}`, regardless of directory separator, and remove dependency on specific text around each path. Note that the order has been changed to ensure that the longest paths are replaced first, to avoid replacing parts of other paths. * fix(platform): Windows backslash cleanups Ensure Windows paths properly use a backslash as folder separator. * feat(platform)!: use new Arduino Debug API Implement sketch debugging according to the official Arduino Platform Debug Specification [1]. The biggest improvement is that now `launch.json` can be fully customized by the core (including the type of each entry), so there is no need to copy files in the sketch folder. In particular, `debug_custom.json` is not used anymore. [1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use the debugging features. Older versions will no longer be able to start a debug session successfully. * feat(debug): pass objdump path to resolve globals Cortex-debug requires objdump to be in the same folder as gdb, or needs the full path to the executable in the `launch.json` file. This is now possible with the new debugging API. * feat(debug): conditionally enable debug button on Nano ESP32 If the `debug.executable` variable is null or unset, the Debug button appears grayed out. The new IDE also takes current parameters into account, allowing to conditionally enable the Debug button only when some conditions are met. * on_release: allow single board packages --------- Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 10:53:18 +00:00
debug.server.openocd.path={runtime.platform.path}/tools/openocd-esp32/bin/openocd
debug.server.openocd.scripts_dir={runtime.platform.path}/tools/openocd-esp32/share/openocd/scripts/
debug.server.openocd.scripts_dir.windows={runtime.platform.path}\tools\openocd-esp32\share\openocd\scripts\
debug.server.openocd.scripts.0=board/{debug_script.{build.mcu}}
debug.svd_file={runtime.platform.path}/tools/ide-debug/svd/{build.mcu}.svd
debug.cortex-debug.custom.objdumpPath={compiler.path}{compiler.prefix}objdump
debug.cortex-debug.custom.request=attach
debug.additional_config=debug_config.{build.mcu}
##
## ESPTool
##
2016-10-06 11:21:30 +00:00
## Upload Sketch
## -------------
tools.esptool_py.upload.protocol=serial
2018-12-16 16:09:44 +00:00
tools.esptool_py.upload.params.verbose=
tools.esptool_py.upload.params.quiet=
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode keep --flash_freq keep --flash_size keep {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x10000 "{build.path}/{build.project_name}.bin" {upload.extra_flags}
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
tools.esptool_py.upload.pattern.linux=python3 "{path}/{cmd}" {upload.pattern_args}
## Program Application
## -------------------
tools.esptool_py.program.params.verbose=
tools.esptool_py.program.params.quiet=
ESP-IDF v5.1 (#7733) * Initial changes to compile under ESP-IDF v5.1 * Initial import for ESP-IDF v5.1 libs * Update toolchain * Update esp32-hal-psram.c * Add missing LDs * Update platform.txt * Stop some CI jobs, because they will always fail * Fix examples * Update app_httpd.cpp * Update ResetReason.ino * Warnings fixes * Added the example guideline and template (#7665) * Added the example guideline and template * PR review changes with some typos and grammar fixes * Changes according to the PR review * Added ESP32-S3 link to the datasheet (#7738) * Update HiFreq_ADC.ino * Replace periph_ctrl.h use because of deprecation * Replace esp_spi_flash.h use because of deprecation * Add includes to male mDNS::enableWorkstation compile * Fix ssl_client mbedtls_pk_parse_key callback * Update temperature sensor driver * Allow sketch_utils to compile with arduino-cli * Run CI with arduino-cli * Fix arduino-cli CI build on Windows * Refactor platform.txt to not use components installed through the board manager when running from git * Initial Peripheral Manager Implementation * Update SigmaDelta driver to use the new ESP-IDF driver API * Small improvements to peripheral manager and SigmaDelta * Remove deleted function from SigmaDelta header * Update DAC driver to use the new ESP-IDF driver API * Adds softAp(String) to make it compatible with ESP8266 (#7801) * Fix commentary (#7800) Minor fix based on observation done in https://github.com/espressif/arduino-esp32/issues/7795#issuecomment-1416868611 * add adafruit new board feather esp32s2 reserve tft (#7794) * bugfix: add <stdint.h> for uint8_t to avoid compilation failure (GCC 11.2.0) (#7744) * Adding 3rd party boards for VALTRACK-V4-VTS-ESP32-C3 & VALTRACK-V4-MFW-ESP32-C3 (#7735) * Added VALTRACK-V4-VTS-ESP32-C3 board definition Created pins_arduino.h & made changes to boards.txt with necessary changes * Modified the URL * Renamed json * renamed all auRL * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Adding VALTRACK-V4 series board definitions Added VALTRACK-V4-VTS-ESP32C3 & VALTRACK-V4-MFW-ESP32-C3 board variants * Reverted package_esp32_index.template.json restored package_esp32_index.template.json from edits * Reverted package_esp32_index.template.json Added new line to package_esp32_index.template.json * Update Platformio CI (#7725) * WiFiClient example fix (#7711) * Modified WiFiClient example to use thingspeak instead of non-functionig sparkfun * Moved instructions to README * Fixed spelling * Added link to S3 datasheet --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Mirror update from Heltec repository (#7709) Heltec updated the I2C pins in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/commit/b10f4bf85d13fd01be80dcdb0eb59e6a8c8ba19a * Fixes BLE data printing (#7699) * Fixes BLE data printing BLE data has no '\0' terminator, therefore it can't be printed as a regular C string. This fix just prints the BLE data based on its length. * Simplify printing to a single call * split menu options + lora_32_V3 fix (#7697) * Change header gaurd name (#7696) * Fix Name (#7691) Wrong name in definitions. * Fix error in WiFiClient.cpp where the connect function fails for timeouts below 1 second (#7686) * Update WiFiClient.cpp This change will allow specifying connect timeouts below 1 second. Without this change, if connect timeouts under 1 second are given, the connect defaults to 0ms and fails. This will also allow timeouts in fractions of seconds, e.g. 1500ms. Without this change, connect timeouts are truncated to full second increments. * Make parameter timeout_ms clear * Change connection timeout_ms name for clarity --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * fixed the function header (#7674) * fixed the function header * fixed function name and paramaters --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Ticker fix solving #6155 (#7664) * Wrapped Ticker functions with #pragma disabling -Wcast-function-type * Revert "Wrapped Ticker functions with #pragma disabling -Wcast-function-type" This reverts commit 160be7e67a10d01b6e44c4bf2521c0ccd6348976. * Fixed Ticker example * Modified Ticker example * Fixed LED_BUILTIN err for ESP32 --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * setPins fix ESP32 "specified pins are not supported by this chip." (#7646) [ESP32: SDMMCFS::begin hardcodes the usage of slot 1, only check if the pins match slot 1 pins.] setPins() was testing pins D1, D2 and D3 all against D1 ... fine in 1 pin mode when all are -1 not so much if you're trying to get 4 pin mode working. I now see this function doesn't really do anything on the ESP32...accept now correctly checks that you are trying to use the slot 1 pins. Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Allow passing IP as connect method parameter in WiFiClientSecure and skip unnecessary host-ip conversions (#7643) * Add LED_BUILTIN* definitions and initialization for LEDs to stop them floating. (#7636) Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Expand path to tinuf2 image when checking existence in platformio-build.py (#7631) * Expand path to tinuf2 image when checking existence * More isFiles fixed * Remove (useless) trailing semicolon from Print.cpp (#7622) * ADD: New variant Edgebox-ESP-100 (#7771) * ADD: New variant Edgebox-ESP-100 * FIX: Edgebox-ESP-100 Board.txt usb mode option change back to default value as ESP32S3 * Add Crabik Slot ESP32-S3 board (#7790) * Added Crabik Slot ESP32-S3 * Adding CPU frequency settings and removing excess from partition scheme settings * new variant LilyGO T-Display-S3 (#7763) * new variant LilyGO T-Display-S3 https://github.com/Xinyuan-LilyGO/T-Display-S3 * Add boards.txt definition --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Update get.py to support Apple ARM64 * Update package_esp32_index.template.json * WString Return bool (#7774) * Add Roboheart Hercules development board to the esp32-core (#7672) * added Roboheart Hercules pin definitions and board.txt entries * added package_roboheat.json for prototyping * Roboheart Hercules pins * Updated the pins * Delete package_roboheart.json * Requested changes --------- Co-authored-by: renebohne <rene.bohne@gmail.com> * Reword "ESP-IDF as Component" (#7812) I think "Arduino as an ESP-IDF component" or just "As ESP-IDF component" instead of "ESP-IDF as Component" is more correct way to name the link. 1. "ESP-IDF as Component" would imply that ESP-IDF is some sort of library for Arduino, which is (IMO) misleading, because it's true the other way around. 2. It's written as "Arduino as an ESP-IDF component" on the webpage it points to as well. - Also I removed the capitalization from "Component" as I have not found a reason why is it capitalized. * add new board Adafruit Feather ESP32-S3 Reverse TFT (#7811) * Multi threading examples (tasks, queues, semaphores, mutexes) (#7660) * Moved and renamed example ESP32/FreeRTOS to MultiThreading/BasicMultiThreading * Added dummy files * Modified original example * Fixed BasicMultiThreading.ino * Added Example demonstrating use of queues * Extended info in BasicMultiThreading * Renamed Queues to singular Queue * Added Mutex example * Added Semaphore example * Moved info from example to README * Moved doc from Mutex to README * Added Queue README * Removed unecesary text * Fixed grammar * Increased stack size for Sempahore example * Added headers into .ino files * Added word Example at the end of title in README * removed unused line * Added forgotten README * Modified BasicMultiThreading example * Added missing S3 entry in README * moved location * Update ESP-IDF libs * Update CMakeLists.txt * Update esptool to v4.4 * Add function timerAttachInterruptFlag (#7809) * Update esptool to v4.5 * ADC refactoring (#7827) * Adc refactored + periman implementation Peripheral manager still needs to be checked if the implementation is right. * switched to working solution for milivolts read * Periman detachbus fix * coding style * fix CI warnings * fix FreeRTOS example * Update ETH.cpp * Update FunctionalInterruptStruct.ino * Update package_esp32_index.template.json * Update package_esp32_index.template.json * Fixes for the latest IDF v5.1 * update esp-idf libs and toolchain * Turn OFF auto crystal frequency for ESP32 (needed by TWAI) * Update examples * Switch build to mostly use flags from files Includes can not be done this way * Reorganize flag files * Optimize chip build flags further * Revert defines from file. MBEDTLS_CONFIG_FILE does not properly expand * Add support for includes and defines from file * Replace old sdk path references in platform.txt * use gcc-ar (#8013) * Makes F_CPU generic for all SoC (#8007) Based on CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ that is correctly defined in the sdkconfig file for each SoC. * TIMER refactoring (#7904) * refactor using GPtimer * Updated timer HW test * fix examples * Add v2.0.7 in issue template (#7871) * refactor using GPtimer * Updated timer HW test * fix examples * Revert "Add v2.0.7 in issue template (#7871)" This reverts commit fcc3b17d62ff57861f8913ca1f142fd5163b7457. * Update upload-artifact to v3 in HW CI * Revert "Update upload-artifact to v3 in HW CI" This reverts commit 1ba228071718ba37c4e26d98db22f77b2a7364a6. * replace resolution with frequency * remove count_down option * countup removed from examples + header * Refactored timer object * code cleanup + examples and tests fixes * TimerAlarm fix --------- Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> * [Docs] ADC and Timer API Update (+some docs fixes) (#7906) * updated docs * remove hall sensor docs Removed Hall sensor documentation as its no longer supported in IDF-5 * Fixed ESPNow examples location in docs * Last timer refactored API + gpio small fix * AlarmWrite fix * Fixes APLL/PLL with RTC Frequency (#8025) log_d() was displaying APLL for any SoC, but S3 and C3 has not such option, causing compilation errors. * Update IDF libs and fix OPI PSRAM on S3 * Add setMode function HardwareSerial.c to set the esp32 uart mode for use with RS485 auto RTS (#7935) * Added setMode function to set the esp32 uart mode Used to set the esp32 uart mode for use with RS485 Half Duplex and the auto RTS pin mode. This will set/clear the RTS pin output to control the RE/DE pin on most RS485 chips. * Add Success (bool) return in some functions * Add Success (bool) return code to some functions * Add Success (bool) return to some functions * Add Success (bool) return to some functions * Fix uartSetRxTimeout return type --------- Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> * Add support for esp-elf-gdb * WFG Crashfix (#8044) * Update component libs * IDF release/v5.1 (#8061) * IDF release/v5.1 bb9200acec * Update Esp.cpp * IDF release/v5.1 420ebd208a * Update esp32-hal-psram.c * Switch SDK to be an external package * fix path (#8096) * Makes UART work at any APB Frequency (#8097) Fixes HardwareSerial to work with IDF 5.1 on any CPU/APB Frequency (240MHz to 10MHZ), including user created low power modes. * Add required callbacks for TinyUSB DFU * Update version to 3.0.0 * Add ESP.getCoreVersion() and update ESP.getChipModel() * Update timer hal for the latest 5.1 * Use separate RX and TX buffer sizes in HTTP client optimizes download by allowing up to 4K packets to be received * Rename clock tree enum name in latest 5.1 * ESP32-H4 support was removed in ESP-IDF v5.1 * IDF release/v5.1 2004bf4e11 (#8165) * Deinit previous bus first (#8180) * TIMER - add timer_started flag, fix timerEnd() + timer HW test (#8135) * Add timer_started flag and stop before disable * Fix timer HW test * TOUCH - Peripheral manager implementation (#8129) * Touch periman implemented * Deinit previous bus first * LEDC Refactoring - Peripheral manager implemented (#8126) * LEDC periman implementation * Fix examples * Rework tone * Update ledc docs * fix missing bracket * Update analog funtions esp32-hal.h * Update CameraWebServer example * Fix HiFreq_ADC example * minor fixes - typos * Avoid calling tone/notone when tone already runs on dif. pin * Remove unused channels_resolution * GPIO - Peripheral manager implementation (#8179) * periman-implementation * fix RGB_BUILTIN and remove space * Enforces more consistency into Peripheral Manager (#8188) * Avoid log_i() message the first time a bus is assigned * Prevent operation with ESP32_BUS_TYPE_INIT * keeps coding style * do not print messages on INIT bus type * [Arduino Core 3.0.0] RMT IDF5.1 Refactoring (#7994) * RMT IDF5.1 refactoring * Fixes initial value setting * removed rmtRead() with user callback * simplify/remove Read data structure * Deep API simplification * fixes the examples * fix rmt.h * adds support to APB different frequencies * fixes CI and not defined RGB_BUILTIN * new RMT API and examples * fixing commentaties * Update esp32-hal-rgb-led.c * changes Filter API * Fixes example with Filter API * Update PlatformIO scripts for the upcoming 3.0 core (#8183) * Update PlatformIO scripts for the upcoming 3.0 core * Dynamically select proper framework-arduinoespressif32-libs package With this change the dev-platform will be dynamically configured to pull the latest .zip package with precompiled libraries from extracted from package_esp32_index.template.json * free memory on detach (#8264) * SPI - Peripheral manager implementation (#8255) * spi periman implementation * fix header file * remove unused struct * fix missing braces * Update esp32-hal-rmt.c (#8216) Optimizing Peripheral Manager Test * I2C - Peripheral manager implementation (#8220) * i2c-master periman initial commit * i2c-master make detachbus static + comment remove * i2c-slave periman implementation * SetPinBus to INIT on i2cDeinits * Fix slave pins deinit * remove dbg logs * set ret to ESP_FAIL instead of returning * Fix warnings in hal-spi caused by pariman transition * Update esptool.py to version 4.6 * Add platform support for ESP_SR * Add USB Type and valid pin check to periman * replace bus with spi->num+1 (#8279) * Remove default pins from SPI HAL * Add commented out handlers for esptool.js in TinyUSB CDC For future use * Add build defines for host os and fqbn (for debug purposes) * Provide proper memory caps total size * Update Esp.cpp * SDMMC - Peripheral manager implementation (#8289) * sdmmc periman implemented * save pins when SOC_SDMMC_USE_IOMUX * IDF release/v5.1 4bc762621d (#8292) * Adds missing pinMode (#8312) * Adds missing pinMode The example code lacks a pinMode() to initialize the GPIO 0 (button). In Arduino Core 3.0.0, it prints an error message when trying to read a not initialized GPIO. * Update KeyboardLogout.ino Adds <buttonPin> to keep code standard * Update KeyboardReprogram.ino Adds <buttonPin> to keep code standard * LEDC Fade implementation (#8338) * fade API + pointer fixes * Add fade api * Add fade example * update ledc docs * remove unused variables * fix path to example * Adds USB to Peripheral Manager - Arduino Core 3.0.0 (#8335) * ETHERNET - Peripheral manager implementation (#8297) * Peripheral manager implemented * remove unused variable * Add all RMII pins * fix typo * Adds HardwareSerial to Peripheral Manager Arduino 3.0.0 (#8328) * Do not limit ETHERNET in periman to only ESP32. SPI is also an option * Initial support for ESP32-C6 (#8337) * Add checks for SOC defines (#8351) * Add checks for SOC defines * Add SoC checks to BLE library * fix i2c compilation error * fix wrong placement of include * add check to SPI library * add check to USB library * add checks to Wire library * Feature/esp32h2 support (#8373) * Initial support for ESP32H2 * Additional changes for ESP32H2 * Update libs for ESP32H2 * Fix flashing on ESP32-H2 * Fix GPIO Configs for ESP32-C6 and ESP32-H2 * Update Timer test sketch * Fix upload flash parameters * Use ets_write_char_uart instead of ets_printf in log_printfv * Print full chip report when log level is sufficient (#8282) * ESP32-C3 does not have ets_write_char_uart * Fix BLE gap event name * HW Testing - Pytest update (#8389) * update tests requirements * remove already handled components * Update version of pytest * Add missing ESP32-H2 to hil.yml * Updated FreeRTOS names (#8418) * HW Testing - ESP32-C6 + ESP32-H2 fixes (#8404) * add C6/H2 to tests cfg.json * remove , * workflow runs-on runner by matrix * Add need for arduino tag to select runner * Add cryptography to requirements.txt * Removed duplicate TX1 define for H2 (#8402) * Fix broken examples * Fixes RMT filter & idle timing and setup (#8359) * Fixes Filter and Idle parameter to uint32 * Fixes Filter and Idle setup * Fixes it to 5.1Libs branch * fix RMT CLK source and Filter API * fixes missing ; * fixes missing ; * fixes RMT example * IDF release/v5.1 a7b62bbcaf (#8438) * Add workflow to build executables from python scripts (#8290) * Add workflow to build executables from python scripts * Push binary to tools * Enable executable signing on Windows * Update get.py * Push binary to tools * Try with multiple files * Try more actions * Try powershell * Restore tools so they do not get rebuilt * Finalize scripts * Push binary to tools * App rollback should be after PSRAM is initialized * Correcting RX1 to GPIO4 and TX1 to GPIO5 to be consistent with documentation. Previous pin use works but is inconsistent with C6 docs. * Fixes Memory Leak (#8486) * fixes preprocessor test (#8485) * fixes preprocessor test When using `#define USE_SOFT_AP` Change `&& not USE_SOFT_AP` ==> `&& !defined(USE_SOFT_AP)` * Adds any BLE capable device in WiFiProv.ino Removing ESP32 restriction for BLE Provisioning. * fix flash mode read out for C6 * Add option for custom partitions without restrictions * SD_MMC update (#8298) * Updated SD_MMC lib and examples * Removed getter implementation and commented usage in examples * squashed updates * IDF release/v5.1 f0437b945f (#8599) * Update package_esp32_index.template.json * Fix printf format build error in BTAdvertisedDeviceSet.cpp --------- Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com> Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Ha Thach <thach@tinyusb.org> Co-authored-by: Martin Turski <quiret@vfemail.net> Co-authored-by: raviypujar <raviypujar@gmail.com> Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: Tomáš Pilný <34927466+PilnyTomas@users.noreply.github.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Daniel Berlin <dberlin@dberlin.org> Co-authored-by: Nima Askari (نیما عسکری) <nimaltd@yahoo.com> Co-authored-by: rtpmsys <106180646+rtpmsys@users.noreply.github.com> Co-authored-by: bytiful <55647551+bytiful@users.noreply.github.com> Co-authored-by: tmfarrington <tmfarrington@users.noreply.github.com> Co-authored-by: Krzysiek S <chris.streh@gmail.com> Co-authored-by: surt <carl.olsson@gmail.com> Co-authored-by: Max Scheffler <max.scheffler@pm.me> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Peter Pan's Techland <twinkle-pirate@hotmail.com> Co-authored-by: Roman <programmeofficemilkyway@gmail.com> Co-authored-by: Eistee <Eistee82@users.noreply.github.com> Co-authored-by: David McCurley <44048235+mrengineer7777@users.noreply.github.com> Co-authored-by: Gaya3N25 <30388176+Gaya3N25@users.noreply.github.com> Co-authored-by: renebohne <rene.bohne@gmail.com> Co-authored-by: Olivér Remény <25034625+remenyo@users.noreply.github.com> Co-authored-by: davidk88 <david.kotar@gmail.com> Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com> Co-authored-by: James Armstrong <jamesarmstrong3@me.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: Peter G. Jensen <root@petergjoel.dk>
2023-10-05 11:54:25 +00:00
tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x10000 "{build.path}/{build.project_name}.bin"
tools.esptool_py.program.pattern="{path}/{cmd}" {program.pattern_args}
tools.esptool_py.program.pattern.linux=python3 "{path}/{cmd}" {program.pattern_args}
## Erase Chip (before burning the bootloader)
## ------------------------------------------
tools.esptool_py.erase.protocol=serial
tools.esptool_py.erase.params.verbose=
tools.esptool_py.erase.params.quiet=
tools.esptool_py.erase.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset erase_flash
tools.esptool_py.erase.pattern="{path}/{cmd}" {erase.pattern_args}
tools.esptool_py.erase.pattern.linux=python3 "{path}/{cmd}" {erase.pattern_args}
## Burn Bootloader
## ---------------
tools.esptool_py.bootloader.protocol=serial
tools.esptool_py.bootloader.params.verbose=
tools.esptool_py.bootloader.params.quiet=
tools.esptool_py.bootloader.pattern=
## Upload Sketch Through OTA (Arduino IDE 1.x)
## -------------------------------------------
## The following rule is deprecated by pluggable discovery.
## We keep it to avoid breaking compatibility with the Arduino Java IDE.
2018-12-16 16:09:44 +00:00
tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"
## Upload Sketch Through OTA (Arduino IDE 2.x)
## -------------------------------------------
tools.esp_ota.upload.protocol=network
tools.esp_ota.upload.field.password=Password
tools.esp_ota.upload.field.password.secret=true
fix(ota): Wrap espota --auth flag in quotes (#10126) When performing an "OTA" upload via a network port, the user may configure the sketch to require an authentication password. Arduino IDE presents a "Configure and Upload" dialog when the user triggers an upload to a network port. The user can provide the authentication password via the field in that dialog. The `upload.field.password` platform property is then set to the value provided by the user. The platform uses the `tools.esp_ota.upload.pattern` command template to pass this value to the espota upload tool via the tool's `--auth` flag. Since the value of the `upload.field.password` platform property is set by the user via a free text field, it might contain any characters. Since some characters (e.g., spaces) can be problematic in a command line, it is essential to wrap it in quotes. This was done for the Arduino IDE 1.x variant of the command template, but that was not ported when the pluggable discovery variant of the command pattern was defined. This causes a spurious failure of the OTA upload process if the user provides an authentication password that contains problematic characters. For example: ``` "C:\Users\per\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\tools\espota.exe" \ -r -i 192.168.254.145 \ -p 3232 --auth=foo bar \ -f "C:\Users\per\AppData\Local\Temp\arduino\sketches\E2D807FABB134A2A60A1B9C7D14FE02B/11973.ino.bin" usage: espota.exe [-h] [-i ESP_IP] [-I HOST_IP] [-p ESP_PORT] [-P HOST_PORT] [-a AUTH] [-f FILE] [-s] [-d] [-r] [-t TIMEOUT] espota.exe: error: unrecognized arguments: bar Failed uploading: uploading error: exit status 2 ``` This is prevented by wrapping the `--auth` flag in quotes: ``` "C:\Users\per\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\tools\espota.exe" \ a-r -i 192.168.254.145 \ -p 3232 "--auth=foo bar" \ -f "C:\Users\per\AppData\Local\Temp\arduino\sketches\E2D807FABB134A2A60A1B9C7D14FE02B/11973.ino.bin" Sending invitation to 192.168.254.145 Authenticating...OK Uploading: [ ] 0% ```
2024-08-13 11:29:18 +00:00
tools.esp_ota.upload.pattern={cmd} -i {upload.port.address} -p {upload.port.properties.port} "--auth={upload.field.password}" -f "{build.path}/{build.project_name}.bin"
Add support for the Arduino Nano ESP32 on 3.x branch (#8909) * [pin_remap 1/3] platform: define ARDUINO_CORE_BUILD when building core files * [pin_remap 2/3] core,libs: add pin remap hooks * platform: remove previous build options if file is missing "touch" would create the file if not present, but not delete its contents if a previous run left the file in the build dir. * platform: make debug_custom.json file customizable by board * platform: fix default debug prefix "debug.toolchain.prefix" must end with a dash, since only the tool name is appended to this string. The reason this is not a major issue is that the "debug_custom.json" file (copied in the sketch directory when debugging is enabled) forces its own prefix. And to make things more interesting, the "toolchainPrefix" entry in that file should _not_ end with a dash. * [pin_remap 3/3]: add Arduino Nano ESP32 board * fix: periman: include it by default, add include guard * fix: io_pin_remap: adjust for new perimap APIs * fix: libraries: manually handled pin remapping files Previously all libraries invoked either high-level APIs (transparently remapped, like the user sketch) or low-level ESP-IDF calls (where the remap to GPIO numbers had to be added manually). Since 3.x, some of these are mixed (for example, periman* APIs are remapped, while soc* are not). This must be handled by disabling the automatic API remapping and making sure all calls use GPIO numbers. * feat: show remapped pins in chip debug reports --------- Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-29 10:43:59 +00:00
## Upload Sketch Through DFU OTA
## -------------------------------------------
tools.dfu-util.path={runtime.tools.dfu-util-0.11.0-arduino5.path}
tools.dfu-util.cmd=dfu-util
tools.dfu-util.upload.params.verbose=-d
tools.dfu-util.upload.params.quiet=
tools.dfu-util.upload.pattern="{path}/{cmd}" --device {vid.0}:{pid.0} -D "{build.path}/{build.project_name}.bin" -Q