Commit graph

1925 commits

Author SHA1 Message Date
hathach
6cd78c8fd6
remove obsolete partition.csv for adafruit feather esp32s3
which prevent changing to other partition scheme
2022-11-07 18:40:48 +07:00
Jan Procházka
3c033236f7
[DOCS] Add TOUCH peripheral API (#7421)
* add touch.rst

* update touchRead comment in header file

* Edited examples

* typo changes + updates

* about edit
2022-11-04 09:12:52 +00:00
Jan Procházka
bf265039eb
[DOCS] Add ESP32S3 to libraries support list (#7415)
* Add ESP32S3 to libraries support list

* Update libraries.rst
2022-11-03 12:58:50 +01:00
HACKER3000
999d094058
Add the Partition Scheme Menu to HELTEC LoRa32 V1 (#7362)
* Add the Partition Scheme Menu to HELTEC LoRa32 V1

This is missing from many boards, i may add that to all of them

* reordered heltec_wifi_lora_32 partition options

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-11-03 07:52:34 +01:00
Jan Procházka
1163e8a7ad
Added TOUCH test sketch + test script (#7413)
* added test for touch peripheral

* removed cfg.json

* pass test for unsupported chips

* fixed condition

* changed released value for S2

* add new chip error
2022-11-02 14:20:31 +02:00
John
64bbcd2678
Correct Spelling of addTemperatureParam in ESP Rainmaker (#7288)
* Update RMakerDevice.h

Changer spelling of addTemprature

* Update RMakerDevice.cpp

Cahnge Spelling of add TempratureParam

* Update README.md

Update documentation addTemperatureParam
2022-11-02 13:22:43 +02:00
Rotzbua
4ac71d2a7f
[BLE Client] Fix deadlock if connection loss ... (#7319)
... while readValue
2022-11-02 13:07:47 +02:00
Sanket Wadekar
c8da793c95
Fixes to Rainmaker OTA Issues (#7324)
* Added OTA Event Handlers

* Overrided verifyRollbackLater Method

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-11-02 13:06:39 +02:00
YOSHIKI
e01f175dbd
Remove unused variable (#7403) 2022-11-02 12:43:31 +02:00
Rotzbua
52cdc663d3
Update github actions to fix node12 deprecation message (#7374)
Update:
* actions/checkout
* actions/setup-python
* actions/cache

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-11-02 12:34:38 +02:00
Juan Luis Leal Contreras
f4d8a481ad
Fixed #7406 crash on WiFi STA_DISCONNECTED event with reason 0 (#7414)
Fixed #7406 . The "reason2str" macro in WiFiGeneric.cpp tries to read memory from index "-1"  in "system_event_reasons" array when handling STA_DISCONNECTED event with reason 0. Dealing with reason 0 as a reason 1 (WIFI_REASON_UNSPECIFIED) will solve the problem (the reason for this event to arrive with reason 0 is unknown). #7406
2022-11-02 12:30:43 +02:00
Rodrigo Garcia
2cebee4a40
fixes UART pin detach on end() (#7402) 2022-11-02 12:30:02 +02:00
WereCatf
d3ccd2a961
FreeRTOS.ino: fix usage of vTaskDelay (#7418)
The original code assumes 100Hz FreeRTOS tick rate and just supplies vTaskDelay with the assumed number of ticks required for the wanted delay. This patch simply fixes it to use portTICK_PERIOD_MS, thereby working correctly regardless of what tick rate FreeRTOS has been configured to run at.
2022-11-02 11:58:12 +02:00
Sanket Wadekar
c1dc4f2e24
Added Docs for Rainmaker (#7260)
Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com>
2022-10-28 12:00:50 +01:00
Wind-stormger
0af58cb928
Add BPI-Leaf-S3 board. (#7345) 2022-10-26 10:46:46 +02:00
Michael Ammann
86577bf5b3
add missing menu option (#7282)
Somehow the fix #7129 was not applied to NORA-W10 probably both changes were happening at around the same time, this PR fixes this.

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-10-26 10:18:50 +02:00
TAMC
98694ab81a
fix rebooting while reading charge state (#7307)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-10-26 09:51:12 +02:00
Hamish Cunningham
f00371ca56
Fix incorrect flash_type in unphone9 board definition (#7330)
As per #6962 we have another case of build.flash_type incorrectly named qspi; this commit fixes the issue for the unphone9 board.

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-10-26 09:30:00 +02:00
lewis he
0bd380aada
TBeam adds a revision option to facilitate the differentiation of boards of different versions (#7332)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-10-26 09:10:45 +02:00
Vojtěch Bartoška
1092f4852e
Update of supported SoCs (#7385)
* Update of supported SoCs

Changed ESP32-S3 support to stable.

* Update getting_started.rst

Co-authored-by: Pedro Minatel <pedro.minatel@espressif.com>
2022-10-25 12:49:23 +01:00
Wai Weng
007badbbb2
Add New Board: Cytron Maker Feather AIoT S3. (#7348)
* Added support for Cytron Maker Feather AIoT S3.

* 1. Select OPI PSRAM by default.
2. Fixed pin name error in variant.cpp.
3. Added definition for RGB_BUILTIN.

* Define the RGB_BUILTIN as shown in #6979.

* Added pin definition for A12 (Vin Sense).
2022-10-25 11:57:07 +02:00
mjysci
c58f75614b
fixed AirM2M_CORE_ESP32C3 upload.tool.serial & write_flash error (#7375)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-10-24 11:05:57 +02:00
Jesse Peterson
49279ce2d9
Fix missing 't' in the name 'Department' for the MiniMain ESP32-S2 (#7383)
board.txt
2022-10-24 10:43:22 +02:00
Vojtěch Bartoška
a5f03a8651
Merge pull request #7315 from espressif/Issue_template_update
Add v2.0.5 into Issue Template
2022-09-29 19:38:36 +02:00
Vojtěch Bartoška
e5e92280eb
Add v2.0.5 into Issue Template
Update of Issue template with addition of new version 2.0.5.
2022-09-29 18:52:58 +02:00
Me No Dev
2075bd492b
Lib-builder does not allow to build for more than one target when -t is used 2022-09-27 11:44:30 +03:00
Me No Dev
f49931f902
Fix aarch64 esptool filename 2022-09-23 19:49:54 +03:00
Tomáš Pilný
9e7f772948
Doc update: added note about global arduino component (#7277)
* Doc update: added note about global arduino component

* Requested changne IDF -> ESP-IDF
2022-09-23 08:01:58 +02:00
Sergei Silnov
f4bd56844e
Pass tag to the component upload action (#7271) 2022-09-19 16:51:54 +03:00
me-no-dev
2d6ca351a3 Update Arduino version to 2.0.5 2022-09-17 08:39:27 +03:00
Zeynep Dicle
aac028a47a
Add newly board (Deneyap Kart G) (#7257)
* Add new board (Deneyap Kart 1A)

* Update pins_arduino.h

* Add newly  board (Deneyap Kart G)

New Deneyap Family member, wearable development board
2022-09-17 08:08:52 +03:00
RefactorFactory
ccf0d877d8
Fix race condition with USBHID semaphore (#7205)
The HID semaphore allows USBHID::SendReport() to wait for the completion of
report sending.

With a zero timeout xSemaphoreTake() after calling tud_hid_n_report(),
occasionally, the following would happening:

1. USBHID::SendReport() would send a report by calling tud_hid_n_report().
2. The send would complete and (presumably on another thread)
   tud_hid_report_complete_cb() would be called and it would xSemaphoreGive()
   the semaphore.
3. In USBHID::SendReport(), the zero timeout xSemaphoreTake(sem, 0) would
   succeed, taking the semaphore.
4. On the next line, xSemaphoreTake(sem, timeout_ms ...) would timeout
   because the semaphore was already taken by the previous line of code.

The result would be waiting timeout_ms for no reason.

The purpose of the zero timeout xSemaphoreTake() is to clear the semaphore in
case a previous SendReport() timed out waiting for the semaphore. In that case,
tud_hid_report_complete_cb() may be called after the timeout, giving the
semaphore. Then the next SendReport() would start with the semaphore given,
which isn't desired if we want to call xSemaphoreTake(sem, timeout_ms ...) on
it.

There have also been other cases where tud_hid_report_complete_cb() is called
an extra time, causing the same situation.

The fix is to move the zero timeout xSemaphoreTake() before the call to
tud_hid_n_report(). This eliminates the race between the zero timeout
xSemaphoreTake() and tud_hid_report_complete_cb() in the common case when no
timeout occurs.

There is still a possible race condition between the zero timeout
xSemaphoreTake() and tud_hid_report_complete_cb() in the case of a timeout,
but that should be rarer.
2022-09-17 08:05:25 +03:00
David McCurley
b473fc6976
Fix corrupt debug message in esp32-hal-cpu.c (#7264)
Issue: Serial data sent during frequency change is corrupted.
Fixes corrupt debug message by printing the message after the frequency change is completed.
2022-09-16 21:34:55 +03:00
me-no-dev
d1c10d9ab3 Fix ArduinoOTA uploads in Arduino IDE 2.0 2022-09-16 15:55:04 +03:00
Me No Dev
da66b2b665
ESP-IDF v4.4.2 and build time elf2bin for the bootloaders (#7259)
* Add IDF libs from v4.4.2

* Implement build time elf2bin for the bootloader
2022-09-16 14:32:41 +03:00
Rodrigo Garcia
55d608e322
Adds noInterrupt() and interrupt() functionality (#7226)
* Adds noInterrupt() and interrupt() functionality

* Adds sei/cli

Adds back sei()/cli() macros

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-15 15:48:07 +03:00
Rodrigo Garcia
dca1a1e6b3
Changes UART ISR to only trigger on RX FIFO Full and timeout (#6930)
* Changes UART ISR to only trigger on RX FIFO Full and timeout

* changes initial RX timeout

* Eliminates extra testing for _uart != NULL

* reconfiguration with "uartSetFastReading()"

* Adds new function "uartSetFastReading()"

* changed default onReceive() behaviour

* forces User callback in case of error

* Error Code Order

Set NO_ERROR as first error code, same as ESP_OK = 0
2022-09-15 15:12:40 +03:00
Ren Xiao
85aecec8d4
Update boards.rst (#7195) 2022-09-14 12:46:29 +03:00
Tomáš Pilný
b58e7ab0b8
Doc addition: How to compile libs with different debug level (#7193)
* Initial commit with guide on building libs wirh higher debug level

* Added reference to FAQ

* Reword portion of core_debug.rst

* Removed extra empty line

Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com>
2022-09-14 11:58:08 +03:00
i3water
9025c686ce
add boards WiFiduinoV2&WiFiduino32S3 (#7247)
add boards WiFiduinoV2&WiFiduino32S3
2022-09-14 11:55:26 +03:00
Sanket Wadekar
7231551f56
Fixed Rmaker OTA crash issue #5420 (#7242)
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-09-14 11:54:55 +03:00
Jason2866
d4d145897a
Real flash chip mode (#7239) 2022-09-14 11:54:27 +03:00
Jason2866
8191aaf84b
add flash frequency to patched firmware (#7230) 2022-09-14 11:51:51 +03:00
Rodrigo Garcia
ebc8a15e0e
Add new ULP example for ESP32 (#7221)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-14 11:44:12 +03:00
Tomáš Pilný
74964e197d
Updated warning message displayed when building as IDF component (#7220) 2022-09-14 11:42:55 +03:00
RefactorFactory
2e72894a4b
USBHIDKeyboard: Fix 200ms delay for every key (#7218)
Arduino-esp32 2.0.4 was released with a version of TinyUSB hid_device.h
that uses uint16_t for the last argument:

https://github.com/espressif/arduino-esp32/blob/2.0.4/tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

    TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);

But USBHID implements this callback with uint8_t:

https://github.com/espressif/arduino-esp32/blob/2.0.4/libraries/USB/src/USBHID.cpp

    void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint8_t len){
        if (tinyusb_hid_device_input_sem) {
            xSemaphoreGive(tinyusb_hid_device_input_sem);
        }
    }

The result is that when USBHIDKeyboard sends a report to the host, it
times out, waiting 100 ms for the callback to be called. It does this
once for pressing the key and once for releasing the key, so
100 ms * 2 = 200 ms.

The latest version of hid_device.h reverts the last argument to uint8_t:

860b104691/tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

    TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len );

But these commits suggest that the last argument will eventually be
changed to uint16_t:

556b5d5044

    change report len in hid API from uint8_t to uint16_t

    since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
    affected APIs are:
    - tud_hid_n_report() / tud_hid_report()
    - tud_hid_report_complete_cb()

b495d6f8ec

    temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release

To prevent this from becoming broken again, in preparation for the change
to uint16_t, make USBHID resilient to any type for the last argument for
tud_hid_report_complete_cb() by using some C++ template metaprogramming,
adapted from https://stackoverflow.com/a/22632571.

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-09-14 11:42:19 +03:00
Jan Procházka
8510734d83
Add default SPI pin definitions if not defined in pins_arduino.h (#7161)
* add default SPI pins ifndef in arduino_pins.h

* Revert "add default SPI pins ifndef in arduino_pins.h"

This reverts commit be35b83ab997a88242269621cccbe1d17a0a844f.

* Add missing default SPI pins

* revert change for d32_pro
2022-09-14 11:29:12 +03:00
Tomáš Pilný
0882ea0919
Fixed the ability to change CHANNEL (#7154)
* Removed option to change CHANNEL

* Revert "Removed option to change CHANNEL"

This reverts commit b2ec27de1d2d4703a15f6397550a46896413828a.

* Fixed the ability to change CHANNEL

* WiFi scan only on selected channel
2022-09-14 11:28:42 +03:00
FedericoBusero
67c293dc72
TTGO T-OI-Plus: pins LED_BUILTIN & BAT_ADC_PIN (#7241) 2022-09-14 08:59:54 +02:00
Jason2866
37cbaeccb7
Get real Flash Chip Size (#7159)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-07 15:04:24 +02:00