Dear all,
The example is located in:
Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA
As I am trying to compile and link the example project 3ADCs_DMA using RIDE7 for my Primer II, I was first forced to add the following include at the top of the main file to performe the compilation.
This is strange as these include appear also in the related individual *.c file included in my project and adding these header was not mandotory based on the readme file of this project.
Anyway, now I have some problem with the linking process. The compilator give me the following errors:
Running: LD Linker
"C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=cortex-m3 -mthumb -Wl,-T -Xlinker "C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\Application0.elf.ld" -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,-Map -Xlinker "C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\Application0.map"
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\stm32f10x_adc.o: In function `ADC_Init':
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:227: undefined reference to `assert_param'
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:228: undefined reference to `assert_param'
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\stm32f10x_adc.o: In function `ADC_Cmd':
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:301: undefined reference to `assert_param'
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:302: undefined reference to `assert_param'
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\stm32f10x_adc.o: In function `ADC_DMACmd':
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:326: undefined reference to `assert_param'
C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\stm32f10x_adc.o:C:\Program Files (x86)\Raisonance\Ride\Examples\ARM\ST\STM32Lib-v340\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA\RIDE3\C_files/stm32f10x_adc.c:327: more undefined references to `assert_param' follow
All these errors seems to be link with the "undefined reference to `assert_param'". Do anyone have experience such things? I am completely newby, so I may miss something?
Any procedure for dummies to get an adc voltage reading except batt. and temp are welcome. I precise that I look to the different available solution for ADC on primer II on this forum but I was not able to compile them and my attempts in modifiying the batt reading to read an ADC pin (14 for examoke) have all failed.
Anyway, thank you