I have an issue using InterruptIn. I am using MbedStudio with mbed OS 6.6.0 . When I declare “InterruptIn usbVbus(p19);” as global in lpc1768, the program is frozen, it do nothing and led1 (p1.18 “USB_UP”) starts flashing. When i comment “InterruptIn usbVbus(p19);” everything works as normal again and led1 stops flashing. I thinks it is because p19 is connected to Vbus in LPC1768 and it makes led1 start flashing but i don’t know why. How can I configure Vbus as InterrupIn and avoid to use USB_UP_LED? and Why “InterruptIn usbVbus(p19);” frozes my code?
I hope can help me whit this problem.