I’m using the TI C2000 library to send PWM signals based on my current sensor ADC. The code works fine when deployed with the USB attached to my laptop however after it has been disconnected, the code doesn’t work even though the microcontroller is powered. Is it because I’ve used transfer function block for filter the noise from the ADC input. Please help me with this.
How have you set the “Build Configuration” setting in the Coder Options + Target + General tab? Is it set to to "Run from RAM or “Run from Flash”? I suspect that when you disconnect the USB the power to the board is disturbed causing a reset. Please set the build configuration to “Run from Flash”, program the board, and then ensure the board is properly powered when not connected via USB.