Skip to content

ESP32-S2/S3 compile fails w/ "undefined reference to `__atomic_test_and_set'" for ESP32 core 3.2.0 #522

@todbot

Description

@todbot

Operating System

MacOS

Arduino IDE version

2.3.5

Board

Adafruit QTPy ESP32-S2, Adafruit QTPy ESP32-S3

ArduinoCore version

3.2.0

TinyUSB Library version

3.4.4

Sketch as ATTACHED TXT

Trying to compile "hid_composite" or "hid_boot_keyboard" example.

Compiled Log as ATTACHED TXT

esp32s3-tinyusb-error.txt

What happened ?

Compile HID examples on ESP32-S2 or ESP32-S3 and get linker errors
"hcd_max3421.c:272:(.text.hcd_setup_send+0x4c): undefined reference to `__atomic_test_and_set'"

Downgrading to ESP32 Arduino core 3.1.3 allows compilation

How to reproduce ?

  1. Open Arduino IDE
  2. Select ESP32-S2 or ESP32-S3 board
  3. Open Examples / Adafruit TinyUSB Library / hid_composite example
  4. Compile

Debug Log

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions