This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugging USB on MCBSTM32E

I am trying to use the JTAG ulink debugger to catch issues in communication in our USB driver on a MCBSTM32E board. The board is powered off the USB and if I run my code without the JTAG attached I can tell by my USB tester app that I have communication going on. When I hook up the JTAG and run the debugger I only hit my USB callback functions during the USB init.

I have the VUSB jumper set to GND and have tried many combinations of resets and reconnections of cables but I can't get the USB peripheral to behave normally when the JTAG debugger is running and power is being supplied over USB.

Am I out of luck?

Parents
  • There are others more able to answer your post but let me provide a link to you.


    www.beyondlogic.org/.../usb6.htm

    These timeout periods are quite acceptable for even the slowest of devices, but can be a restriction during debugging. 50mS doesn't provide for many debugging characters to be sent at 9600bps on an asynchronous serial port or for a In Circuit Debugger/Emulator to single step or to break execution to examine the internal Registers. As a result, USB requires some different debugging methods to that of other microcontroller projects.

Reply
  • There are others more able to answer your post but let me provide a link to you.


    www.beyondlogic.org/.../usb6.htm

    These timeout periods are quite acceptable for even the slowest of devices, but can be a restriction during debugging. 50mS doesn't provide for many debugging characters to be sent at 9600bps on an asynchronous serial port or for a In Circuit Debugger/Emulator to single step or to break execution to examine the internal Registers. As a result, USB requires some different debugging methods to that of other microcontroller projects.

Children