Skip to main content

ADC Sample for DA14531

DA14530 and DA14531

3 months ago

ADC Sample for DA14531

Posted byikuyama20 points 3 replies
0 upvotes

请帮助我。
I use DA14531-00FXDEVKIT-P and try ADC with reference to "Using SDK6 Peripheral Drivers"
(http://lpccs-docs.dialog-semiconductor.com/da145xx_tutorial_sdk6_peripherals/da14531_adc.html#)

But unable to build with some linker errors.

.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_correct_sample (referred from main.o).
.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_disable (referred from main.o).
.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_get_sample (referred from main.o).
.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_init (referred from main.o).
.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_offset_calibrate (referred from main.o).
.\out_DA14531\Objects\blinky_531.axf: Error: L6218E: Undefined symbol adc_start (referred from main.o).

Do I need anything to add to build option ? or other settings?

Thanks

3 months ago

PM_Dialog

Hi ikuyama,

Thanks for your question online. According to the tutorial, the empty_peripheral_template is being used with some modifications.

Please check this section :

http://lpccs-docs.dialog-semiconductor.com/da145xx_tutorial_sdk6_peripherals/initial_project.html

From the Keil output, I can see that the blinky project is being used. Could you please try it in the empty_peripheral_template/

SDK location : 6.0.14.1114\projects\target_apps\template\empty_peripheral_template

You can also check the ADC project of the SDK : 6.0.14.1114\projects\target_apps\peripheral_examples\adc

Thanks, PM_Dialog

3 months ago

ikuyama 20 points

Hi PM_Dialog,

Thank you. I solved.
I did't know where empty_peripheral_template. and I was able to build using it.
I knew adc sample was ther, but I was looking for another samples because it was a sample about the battery.

Thanks,

3 months ago

PM_Dialog

Hi ikuyama,

Glad that you solved this. If you have any follow up question, please feel free to raise a new forum ticket.

Thanks, PM_Dialog