Hi,
Regarding your question, you said that the HSADC is triggered by PWM signal via XBARA output 43, in the case, you can not halt at the break point in the main while loop.
I suppose that the PWM trigger signal frequency is too high, the core stick to the ADC ISR, it has not time to enter main loop.
You said "I want to start hsadc scan whenever i want", okay, you can use software trigger mode instead of hardware trigger.
I suggest you set the SIMULT bit in the _CTRL2 reg. You can set the _CTRL1[STARTA] bit to launch the ADC conversion.


Hope it can help you
BR
XiangJun Rong