Is there a way to disable DMA related code with HAL_DMA_MODULE_ENABLED
I have a project using the STM32L031. It's fairly simple and doesn't require DMA, probably doesn't even need interrupt processing (polling should be fine for what little UART traffic is planned).
Is there a way to configure the project in STM32CubeIDE / CubeMX to not have HAL_DMA_MODULE_ENABLED active in the stm32l0xx_hal_conf.h file? Just commenting it out causes a lot of breakage in the rest of the HAL libraries.
I am using UART, SPI, and I2C interfaces. I would rather use the Flash space for text-based error messages than DMA code I will never call but I don't want to hack up the HAL library if there is a "proper" way to disable the DMA related code.
I currently have 22kB of the 32kB in the part used but the HAL library is probably about 16kB of that. I am not using a real-time supervisor (no FreeRTOS or ThreadX), just bare metal but with the HAL library.
