Replies: 1 comment 1 reply
-
|
Hi @anwfeb
Don't know why you get those warnings with pio. With Arduino I don't think they appears. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
STM32WL variants define
HAL_DAC_MODULE_ENABLEDeven though STM32WL devices do not provide a DAC peripheral.As a result, DAC-related code paths in
wiring_analog.candwiring_digital.care compiled, causing the following warnings during build:The warnings originate from:
which are compiled because
HAL_DAC_MODULE_ENABLEDis defined in STM32WL variant files.To Reproduce
Create a minimal Arduino project for STM32WL55.
platformio.inisrc/main.cppBuild the project.
Build output contains warnings similar to:
Expected behavior
STM32WL devices do not have a DAC peripheral, therefore DAC support should not be enabled for STM32WL variants and the project should build without DAC-related warnings.
Desktop
Board
Additional context
The issue appears to come from STM32WL variant definitions enabling DAC support:
Examples:
I verified that commenting out:
in the STM32WL variant file removes the DAC-related warnings completely and the project builds cleanly.
Since STM32WL devices do not include a DAC peripheral, it seems that
HAL_DAC_MODULE_ENABLEDshould not be defined for STM32WL variants.Beta Was this translation helpful? Give feedback.
All reactions