This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: i could not able read the analog pins in the MCU

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, ENERGIA,

Hello all,
I am using Energia IDE for cc3220sf launchpad for programming, however digital read and write is happening, it means its supportable, then on trying analog read i am getting this error.
i have attached the snapshot of the error i am getting.
if i have to import from energia to cc studio how can i do that?
  kindly provide any videos ore PDF
the below are the errors i m getting
C:\Users\Dhruva\AppData\Local\Temp\build60616778c5ed9a1f4d5256eddade38f6.tmp\sketch\AnalogInOutSerial.ino.cpp.o: In function `loopAnalogInOutSerial()':
C:\Users\Dhruva\AppData\Local\Temp\arduino_modified_sketch_688913/AnalogInOutSerial.ino:33: undefined reference to `analogRead'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board CC3220SF-LAUNCHXL (80MHz).
  • Hi Satyendra,

    For energia questions please refer to the link below for the appropriate forum.

  • I have just pushed an update for the CC3220 in Energia. Please update to 5.6.1 using the board manager.

    Note that A0 (pin 23) is shared with the UART pin that is connected to the emulator side (USB connection to the PC). If you would like to use A0 then you must RX jumper (J6) towards the CC3220SF. Note that you will not be able to send data using Serial to the PC when this jumper is switched. Rather then using A0, I would use A1 which is pin 25. This pin is exclusive to the BoosterPack header.

    Robert