2015-06-09 05:26 PM
Dear
I have tested the STM32F030R8 Nucleo board using STM32CubeMX 4.8.0 and keil 5.14. using the samples in the (STM32Cube_FW_F0_V1.2.0-sample/Projects/STM32F030R8-Nucleo/Examples/) I tried to add both (UART\UART_TwoBoards_ComIT) and (ADC\ADC_DMA_Transfer). but like attached images, the compiling error was happened. about Undefined symbol, so I included the file such as ''stm32f0xx_hal_adc.h'',''stm32f0xx_hal_adc.c'' ''stm32f0xx_hal_adc_ex.h'' ''stm32f0xx_hal_adc_ex.c'' Would you help me? #cubemx #stm32f03 #undefined-symbol2015-06-09 05:37 PM
2015-06-09 08:07 PM
Yeah, I don't understand the rational of adding the .H files to the project, that's not how it's done, they should be #included, and appear as dependencies under the .C files as you punch down with the [+]
If you're getting ''Undefined Symbol'' at the linker level it because your aren't supplying body code for the C functions, in a .C file, not prototypes in a .H file. So let's start with the exact error you were starting with and try and figure out exactly what is missing.2015-06-09 10:11 PM
2015-06-10 02:29 AM
Ok, so a linker error
Have you looked at the HAL source files in question to see why it might not be defining the bodies of the functions you need? Do you have HAL_ADC_MODULE_ENABLED defined in your project? Perhaps this needs to be in a CONF.H type file, or as a compiler command line define? I'm not a HAL user.2015-06-10 03:45 AM