Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
I wanted to connect some analog sensors to the TMS570LC4357 HDK board and get a reading from them, so following the guides available online, in halcogen i set up pins 0 and 1 in ADC1, Group 1. I used software trigger and set the FIFO size to 2. The rest i left as it is as shown in tutorials. When testing the code that is in the examples, i get stuck in the while loop for the function: adcIsConversionComplete(). The function continuously returns zero (which according to my research means not complete). Alos if i press reset, the terminal randomly displays 2 or 4 converted reading and then again gets stuck in the loop. Can anyone help me out or tell me what is going on?
here is a pic of my halcogen configuration (ADC1 is enabled in driver tab):
and here is the section of the code handling ADC (the readSensors() function in called inside a while loop in the main() function):



