raiden00pl opened a new pull request, #21882: URL: https://github.com/apache/nuttx/pull/21882
## Summary stm32_serial_m3m4_v1v2v3v4.c is compiled only when CONFIG_STM32_USART is set, but it also provides the up_putc() fallback and the serial init hooks used when no U(S)ART is enabled. Configurations without any U(S)ART fail to link (undefined up_putc, arm_serialinit, arm_earlyserialinit). Compile the file regardless of CONFIG_STM32_USART, as before the directory split. Affects STM32 F1, F2, F3, F4, G4, L1. ## Impact Fixes the build for these families without a U(S)ART. No change otherwise. ## Testing nsh with all U(S)ARTs, SERIAL and DEV_CONSOLE disabled, make and CMake: F1, F2, F3, F4, G4, L1 fail on master and build with this change. Same config built with make for one board of every other STM32 family. Not tested on hardware. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
