Recent changes
Order
tag order
RTOS
Help
mbed NXP LPC1768
Firmware
Homepage
From the mbed microcontroller Handbook.  

mbed interface

Since the beginning of mbed, there has been a certain amount of interest and speculation around the "magic interface chip" on the underside of the mbed microcontroller.

There has been some information published surrounding this part, which is now collated on this page.

The full schematics of the mbed Microcontroller, including the mbed interface are now available in the handbook.

Connectivity

The best representation of the connectivity of the mbed interface was in Simon's official unoffical diagram:

/media/uploads/chris/mbed-internals.jpg

The headlines are that it :

- Provides a USB connection to the host computer, which exposes an Mass Storage (flash disk) and a USB Serial Port

- Connects with the Serial Flash device, which implements the USB flash disk file storage

- Has a JTAG connection to the target, so that it can program the target flash. Semihosting of the USB flash drive (LocalFileSystem) is implemented over this JTAG connection

- A physical UART connection exists between the target and the interface which is relayed over interface USB Serial port

Operation

There are a few facts and rules about how the interface interacts with the host computer and the target, the most significant ones are:

- The USB Drive is really a flash drive that can store multiple binary files. On power up/reset, the interface will always program the newest file into the target, unless the newest binary has already been programmed.

- When there is no binary file on the USB flash disk, the target is held in reset

- The reset button on the mbed Microcontroller doesnt directly reset the target. Instead it requests that the interface resets the target, checking first to see if there is a newer binary on the USB flash disk to be programmed.

- If a file is opened by the target using LocalFileSystem, the USB flash disk will disappear from the host computer until the file is closed, as the filesystem can not appear in two places at once.

- Should the USB flash drive fails to appear when you plug in your mbed, it might be because your current program is using the local file system. Press and hold the reset button to keep the target in reset, and the flash drive will appear.

See also




calendar Page history
Last modified 06 Feb 2011, by   user Dan Ros   tag interface, mbed | 6 comments  

6 comments on mbed interface:

05 Oct 2010

exactly what I was looking for.. thanks for the info.

28 Oct 2010

It looks like the device is an ARM7 LPC2141.

28 Oct 2010

It's and LPC2148 :-)

Simon, or anyone with the knowledge about the hardware: How's the AT45DB161 formatted? You're using this as the flash-disc is guess, but does the LPC2148 control all the memory processing, as in the FAT interface on it?

Lerche

22 Mar 2012

Simon, can I use the JTAG interface to debug my software on the device?

Markus

22 Mar 2012

user Markus Winterholer wrote:

can I use the JTAG interface to debug my software on the device?

Currently, the interface chip does not allow you to debug your software through JTAG.

You could migrate your project to a board with JTAG interface: /handbook/uvision-ulink2-and-mcb1700.

You could try to solder a JTAG connector to mbed: /users/iva2k/notebook/jtag/.

You could try running a debug monitor on the target chip itself communicating with your PC via serial port. Adam Green is doing something in this area: /forum/mbed/topic/2944.

We are thinking at an official solution to improve the debugging experience on mbed, but there is nothing defined yet.

Emilio

3 weeks, 2 days ago

"How's the AT45DB161 formatted?"

I think it is FAT12..

Thanks

Please login to post comments.