Hello every one.
I am working on to build a prototype application. That would store the results of adc into file and then to SD card.
Now I am modifying the ADC example given with CW10.5 installer file. The ADC is being trigerred by pdb.
As soon as I am using sprintf function to convert adc integer results to string. The compile is giving me error. I have attached the screen shot along with ADC interrupt service routine.
Any solution?
Solved! Go to Solution.
Hello:
I guess that project was created with No I/O support. In this case you cannot use any console related functions. To solve this go to Project -> Properties -> C/C++ Build -> Settings -> Librarian, and from the "Model" drop down menu select "ewl". Also do not forget the #include <stdio.h>. Then your project should compile.
Hope this is useful!
Jorge Gonzalez
Hello:
I guess that project was created with No I/O support. In this case you cannot use any console related functions. To solve this go to Project -> Properties -> C/C++ Build -> Settings -> Librarian, and from the "Model" drop down menu select "ewl". Also do not forget the #include <stdio.h>. Then your project should compile.
Hope this is useful!
Jorge Gonzalez
Hi Jorge,
Yes you are right! The problem is solved now.