Flashing an MCU with MicroUSB

microcontrollerusb

I recently bought This MCU and in another question asked how I could flash it. The response was to use a USB to serial Connector (which I wanted to find on newark.com but could not). I wanted to know if I could solder This microUSB female connector to the io pins of my MCU and be able to flash the MCU to over microUSB from my raspberry pi. Can I?

Best Answer

You can't use a USB connector to download code to one of those ARM chips, the flash bootloader uses the UART.

I've used one of these USB to serial adapters:

http://www.ebay.co.uk/itm/180836792643?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

with Flash Magic to download code to an LPC810 chip via the UART connections. You have to connect a pin to ground when applying power to enable flash downloading, details will be in the data sheet.