Part Number: MSP432P401R
Hello,
I am using MSP432P401R to build the obstacle detection robot.
I have interfaced 3 IR sensors to detect the obstacles around the robot.I am reading the sensors' values in a while loop to monitor continuously. My problem is that, when I flash my own code it runs fine for the first time. But if I press reset button then code will not run again. To make it run i have to flash the code again.
But I have used an example code which changes the PWM signal's duty cycle with every press of a switch, it is working fine even after pressing the reset button.
I am not sure what went wrong. I am not using any interrupt service routines in my code. I think reset button has it's own ISR.
Could you kindly let me know how to fix this.
Thanks,
Sushrut