I am using the TMS570LC4357 in my project. In such ECU, there are two ADC units, ADC1 and ADC2. Within either ADC, there is "event group", "group1" and "group2". Each group includes several channels. I selected some channels in "event group" and "group 1" in both ADC1 and ADC2.
However, I am having one issue: When I loaded the code into the board and ran it, ADC conversion worked fine. But, when I power-cycled the board. ADC channels in "event group" still worked fine but ADC channels in "group 1" were not working. I found it by transferring the ADC results out through CAN bus. When the board was power-cycled, the ADC results from the channels in "group 1" were always "0" while the ADC results from the channels in "event group" were always correct. (I can make sure that CAN bus communication is correct.)
I have no clues even after checking the ADC settings. (ADC conversion files were generated by HALcogen). I am kinda stuck. Can anyone give me some tips?
Thanks a lot!