This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to read analog voltage applied to pin on nrf52840. Please help

Is there any simple way of reading analog values from pin. Setting up SAADC is giving too much of errors like command line action failed or any variable is undeclared whose header file is correctly included

  • Well, I rectified those errors by defining those identifiers in nrf_drv_timer.h But now I am getting

    Severity	Code	Description	Project	File	Line	Suppression State
    Error		Command-line action failed	EmbeddedProject1	D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\VisualGDB	1	
    Error		Build has failed. See the Output window for more details.	EmbeddedProject1	D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\EXEC	1	
    Error	MSB3073	The command ""C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe" /build "D:\OnceAgain\EmbeddedProject1\EmbeddedProject1\EmbeddedProject1.vcxproj" "/solution:D:\OnceAgain\EmbeddedProject1\EmbeddedProject1.sln" "/config:Debug" "/platform:Win32"" exited with code 1.	EmbeddedProject1	C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets	44
    
  • I'm not sure what this error means, looks like some Visual Studio/VisualGDB specific error. Why are you using Visual Studio? This is not supported by our SDK, and not something we recommend/support in general.

Related