Since https://github.com/stm32duino/Arduino_Core_STM32/pull/1674 a regression has been introduce. Disabling Serial raised a build error, getter API have to be protected to avoid this. Other getter have to be tested without HAL module support or with HAL module only.