|
Describe the bug STM32WL variants define As a result, DAC-related code paths in The warnings originate from: dac_write_value(...)
dac_stop(...)which are compiled because To Reproduce Create a minimal Arduino project for STM32WL55.
[env:wl55]
platform = ststm32
board = nucleo_wl55jc
framework = arduino
#include <Arduino.h>
void setup() {}
void loop() {}Build 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: variants/STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I/variant_generic.h
#define HAL_DAC_MODULE_ENABLED
variants/STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I/variant_NUCLEO_WL55JC1.h
#define HAL_DAC_MODULE_ENABLEDI verified that commenting out: #define HAL_DAC_MODULE_ENABLEDin 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 |
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. |

I've tested to build with Arduino IDE and there is no warning.
I've also build an empty project with pio and no warning displayed.