This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

header/source ... problem linking compilation

Hi everyone,
I want to program nucleo F091RC using STM32f0xx standard peripheral libraries. I included all the .h and .c files in my project and when I try to build my project, the only one error i have is this one :

src\stm32f0xx_dac.c(165): error: #20: identifier "RCC_APB1Periph_DAC" is undefined

does anyone know how I have to define RCC_APB1Periph_DAC ? is it uint8/16/32_t ? or something else ? I have to declare it into the .h file ?

Thank you all.

Parents
  • I declared it as uint32_t, saved and rebuild the project. but now I have that problem :
    .\Objects\projet1.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f0xx_adc.o).

    Which I have seen on another thread. But As I included to my project all the .c and .h, I don't understand where the problem is... ".o" are created when ".c" is compiled right ?

Reply
  • I declared it as uint32_t, saved and rebuild the project. but now I have that problem :
    .\Objects\projet1.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f0xx_adc.o).

    Which I have seen on another thread. But As I included to my project all the .c and .h, I don't understand where the problem is... ".o" are created when ".c" is compiled right ?

Children