Using Cortex-M0 as debugger, Introduction to Cortex Serial Wire Debugging

17 Dec 2011
18 Dec 2011

Can't wait for it !

Ceri

18 Dec 2011

ceri clatworthy wrote:

Can't wait for it !

Ceri

I would not get your hopes up, I don't think the mbed team have included the SWCLK and SWDIO pins, I was upset to see that the lpc1768 has not got them, when I first came across this blog I was like great, I can final debug the mbed lpc1768 using the Cortex M0, dream come true, only to find out it does not have the pins. I was upset about Motor Control PWM as well:(

18 Dec 2011

You can always use this: http://mbed.org/forum/mbed/topic/2944/

21 Dec 2011

The SWCLK and SWDIO pins are also part of the JTAG signals. They are used for the connection to the "mbed chip". The JTAG signals are used to flash the device, but also to handle the locale filesystem and the serial connection to the PC. You have to use the debug stub.

Peter

21 Dec 2011

Peter Drescher wrote:

The SWCLK and SWDIO pins are also part of the JTAG signals. They are used for the connection to the "mbed chip". The JTAG signals are used to flash the device, but also to handle the locale filesystem and the serial connection to the PC. You have to use the debug stub.

Peter

I do not understand what you mean by debug stub you have picture,

can I connect the lpc link to the mbed somehow perhaps, by connecting a usb cable to the mbed chip then connecting the other end to usb socket and using the D+ and D- signals? of socket output http://www.coolcomponents.co.uk/catalog/product_info.php?products_id=856

21 Dec 2011

I mean the project Arthur pointed to : http://mbed.org/forum/mbed/topic/2944/

26 Dec 2011

Peter Drescher wrote:

I mean the project Arthur pointed to : http://mbed.org/forum/mbed/topic/2944/

How do I debug a usb project such as the http://mbed.org/handbook/USBAudio Still had no response if it is even safe to connect both the "mbed chip" connection and a connection what would be needed to make the usb audio code run. I don't want to start a fire because I know this would stress the transistor quite a bit with no cooling??

somebody has said that they do it, but I just feel it would be to much for the transistors after a few hours way to much heat with no cooling.

26 Dec 2011

The debug stub will also work over a serial line, but debugging a usb device is a problem. If you use windows as host you can get a bluescreen by stopping the usb device. The enumeration is critical. I have seen Vista pass away by setting a breakpoint...

I have no experience about the behavior of the win7 usb stack.

What do you mean about the transistor stress ? The "mbed chip" usb and the mbed itself need two different USB ports on your PC ! Two cables.

It is possible to make a USB endpoint with more than one function : Composite Device. This device has more than one interface with descriptors for this functions (e.g. HID + CDC). The functions itself are working with different endpoints. One cable. It is tricky to get it working.

Peter