Skip to content

ESP32-S3 CP9 PWM "RuntimeError: Internal Error" for certain parameters #9565

@anecdata

Description

@anecdata

CircuitPython version

Adafruit CircuitPython 8.2.7 on 2023-10-19; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3

vs.

Adafruit CircuitPython 9.1.2 on 2024-08-22; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3
Adafruit CircuitPython 9.2.0-alpha.2351 on 2024-08-22; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3

Code/REPL

# Adafruit CircuitPython 8.2.7 on 2023-10-19; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3
>>> import board, pwmio
>>> a = pwmio.PWMOut(board.A0, frequency=1, duty_cycle=64)
>>> 

# Adafruit CircuitPython 9.2.0-alpha.2351 on 2024-08-22; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3
>>> import board, pwmio
>>> a = pwmio.PWMOut(board.A0, frequency=1, duty_cycle=64)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Internal error
>>>

Behavior

I wanted to PWM an LED for a low-key visual heartbeat, but recent releases for ESP32-S3 seem to have trouble with frequency=1 or frequency=2.

All frequencies work fine on ESP32-S2 in CP9.

frequency >= 3 works on ESP32-S3 in CP9.

Higher duty_cycle doesn't seem to matter.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugesp32-s3regressionThings that used to work but don't any longer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions