Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug and serial monitor #192

Open
fterretf opened this issue May 12, 2022 · 2 comments
Open

Debug and serial monitor #192

fterretf opened this issue May 12, 2022 · 2 comments

Comments

@fterretf
Copy link

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

At this point, windows10 send a ‘USB device not connected’ and the windows device manager gives error code 43

image

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

@ivankravets
Copy link
Member

Could you:

  1. Remove debug_build_flags = -Os -g -ggdb line
  2. Replace debug_init_break = break setup with debug_init_break = tb setup

Does it stop at setup now?

@fterretf
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants