Using the serial monitor works fine when doing upload. I just do platformIO:upload and the serial monitor opens and messages are displayed.
With the mkr1010wifi powered by USB cable connected to a 5 V power supply, debugger is fine. I can step through my program but no serial port.
With the mkr1010wifi powered to a PC USB port, the debugger works fine until USBDevice.attach() is executed.
At this point, windows10 send a ‘USB device not connected’ and the windows device manager gives error code 43
As suggested by Max Gerhardt, I add in platformio.ini the initial breakpoint after the USBdevice.attach() and compilation with optimization, but this doesn't help.
debug_build_flags = -Os -g -ggdb
debug_init_break = break setup
Using the serial monitor works fine when doing upload. I just do platformIO:upload and the serial monitor opens and messages are displayed.
With the mkr1010wifi powered by USB cable connected to a 5 V power supply, debugger is fine. I can step through my program but no serial port.
With the mkr1010wifi powered to a PC USB port, the debugger works fine until USBDevice.attach() is executed.![image](https://user-images.githubusercontent.com/58686161/168125647-37cdbf02-fb66-44d7-ad6c-42bf35d47a95.png)
At this point, windows10 send a ‘USB device not connected’ and the windows device manager gives error code 43
As suggested by Max Gerhardt, I add in platformio.ini the initial breakpoint after the USBdevice.attach() and compilation with optimization, but this doesn't help. debug_build_flags = -Os -g -ggdb debug_init_break = break setup