Commit graph

2107 commits

Author SHA1 Message Date
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
Michael Ammann
7f7f30440b
[NORA-W1] Fix SPI pin assignments to match Arduino pinout. (#7208)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-06 23:00:12 +02:00
TAMC
4959b7f718
add TAMC Termod S3 (#7217)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-06 22:45:00 +02:00
Limor "Ladyada" Fried
1065e38718
itsy bitsy esp32 board working :) (#7199) 2022-09-06 22:20:17 +02:00
Valerii Koval
074f315108
Update PlatformIO build scripts (#7200)
This update includes the following:

- Implemented an additional build step that produces an adjusted bootloader image with updated headers
  according to  selected flash mode and size values. This step is only executed for debugging or uploading
  via debug probes.

- Implemented a basic mechanism to dynamically add an extra UF2 bootloader image if corresponding
  partition is selected (e.g. for Adafruit targets)

- Minor code formatting
2022-09-06 11:39:03 -03:00
Sanket Wadekar
77065bffb2
Fixed espressif/esp-rainmaker#152 (#7171) 2022-08-29 12:36:51 +03:00
Michael Ammann
01e22291e2
Adding u-blox NORA-W10 series (ESP32-S3) (#7191)
* Create pins_arduino.h

* Update boards.txt

* Update boards.txt
2022-08-29 12:20:06 +03:00
Daniel Egnor
adb01cf0c6
Compile error if CONFIG_FREERTOS_HZ != 1000 (#6955)
* Compile error if CONFIG_FREERTOS_HZ != 1000
* add a check at the CMake level, per feedback
* Set CONFIG_FREERTOS_HZ=1000 in CI test of Arduino-as-component
2022-08-26 11:14:59 +03:00
Paul Price
d22bcb765b
fixed names on the VID and PID for boards (#7144)
somehow had duplicated the same name across all my boards. the PID's and VID's were correct, but the name was the same for all of them. that is fixed now.
2022-08-24 14:20:03 +03:00
Me No Dev
3f69bcfca4
Update get.py to support python 3.10+ (#7166)
* Update get.py to support python 3.10+

* Use try/except to remove version check
2022-08-22 17:33:14 +03:00
Me No Dev
3ebb774463
Update esptool to version 4.2.1 (#7127)
* Update esptool to version 4.2.1

* Fix esptool for MacOS

* Esptool v4.2.1 for CI Platformio (#7147)

to complete the test.

Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com>
2022-08-22 17:00:42 +03:00
Dr. Christian Kohlschütter
fdf8389ec5
Update .gitignore (#7021)
Add entries to gitignore
2022-08-22 14:16:55 +03:00
Dr. Christian Kohlschütter
4146d27b8f
Enable configuring target variants (#7019)
This change enables picking the right board configuration from the
variants/ folder. Previously, we would always pick the default
configuration (e.g., "esp32" instead of "heltec_wifi_lora_32_V2").
2022-08-22 14:16:38 +03:00
Rodrigo Garcia
fe1d9e00d5
Fixes Cookie Case Sensitivity (#7112)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-16 12:07:24 +02:00
Tomáš Pilný
d9ac65f291
Fixed CHANNEL in ESPNow example (#7104)
Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-16 09:58:22 +02:00
Jan Procházka
7bcba17ba9
FIX: Added erase flash menu to all boards (#7129)
* Added erase flash menu to all boards

* fixed typo in board name
2022-08-16 09:44:23 +02:00
Jan Procházka
190db72820
Fix partition names in board.txt (#7120)
* typo edit: 8M flash (FAT to SPIFFS) + FAT to FATFS

* more precize fatfs size in 16M flash partition

* Revert size in 8M with spiffs partition
2022-08-16 09:05:10 +02:00
Tinyu
35978812b2
Create M5Station pins_arduino.h and M5Station Board (#7101)
* Create M5Station pins_arduino.h

* Update pins_arduino.h

* Update boards.txt

* add EraseFlash menu option

* Update boards.txt

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-15 20:45:47 +02:00
Jan Procházka
ac7879c683
Added NVS test sketch + test script (#6885)
* Added NVS test sketch + test script

* Added cfg.json with multiple fqbns

* cfg.json missing commas fix

* Changed OPI PSRAM to QSPI accordind to new HW setup.

* disabled PSRAM for ESP32S3

* Reverting PSRAM changes

* Remove Octal flash test

Octal flash needs to be tested locally before each release.
2022-08-15 14:47:07 +02:00