Skip to main content

Problem with compiling the SDAC sample code

2 months ago

Problem with compiling the SDAC sample code

Posted bypiotrekd70 points 4 replies
0 upvotes

Hello Dialog

I can't build the sample code -DA1469x VBAT Monitoring with Sensor Node Controller(with a SDK 10.0.10.118).

I attach error message as : DOK2.pdf

1. "Description Resource Path Location Type 'CRG_COM_SET_CLK_COM_REG_SDADC_CLK_SEL_Pos' undeclared (first use in this function); did you mean 'CRG_COM_SET_CLK_COM_REG_SPI_CLK_SEL_Pos'? snc_hw_sdadc.c /snc_sdadc_sample_code line 82 C/C++ Problem
2. ../snc_sdadc.c:149:17: error: unknown type name 'rtc_config'; did you mean 'sdadc_config'?

Attachment 大小
Dok2.pdf 223.32 KB

2 months ago

PM_Dialog

Hi There,

Thanks for posting your question on our new forums.

Unfortunately, this example cannot run on SDK10.0.10 as some major modifications are required. If you check the readme file within the example, you will see that the SDK version should be SDK10.0.4 which is old and not recommend. We are in process of updating the SW examples, so I'll let you know in this forum thread once an updated version is released.

Thanks, PM_Dialog

2 months ago

piotrekd 70 points

Thank you for your response.

Can you explain to me why in this example the SDAC_CLK_SEL bit is set and used?

This bit is not defined in the CLK_COM_REG registry. This bit is also missing from the datasheet for DA14695?

There is also no definition of this bit in SDK 10.0.4. and this example cannot be compiled.

Since 2019, this example has not been corrected, so why should it happen soon ...?

2 months ago

piotrekd 70 points

2 months ago

piotrekd 70 points