Hi All,
I am new to the LPC series. I have got a mbed-Xpresso Baseboard and a LPC 1768 Stamp board. I would like to program the stamp board using ISP with Flash Magic. Could anyone tell me what kind of interface is required to connect the USB of the computer to the LPC stamp for programming. How the pins are layed out?
Thanks in advance.
Hi Brendon,
Thanks. As you said I had gone through the user manual and now I have a fair Idea of how the ISP programming works.
But still I am confused with the type of the USB to serial cable to be used. Can I use any FTDI cable and use only the 3 pins (TX, RX, GND) to the respective pins in the P1 connector. Some web pages suggest to use a USB to serial adapter board which performs more closely to an RS232.
If possible could you please share a link to one of the types of the cable that can be used.
Regards,
Siva
Hi Siva,
I have done exactly as you say multiple times. Use TX/RX/GND to the Serial2USB cable from FTDI successfully.
Specific cable is:
TTL-232R-3V3
5V version of cable also works.
Regards,
David
Hi David/Brendon,
Thanks a ton.
This is exactly what I was looking for.
Regards,
Siva
Which stamp board do you have? Do you mean the LPC1768 mbed board?
If so, that board is designed for drag-and-drop programming over USB. The device appears as a mass storage device and you drop the firmware image onto it in a file explorer window to flash the target (see https://developer.mbed.org/platforms/mbed-LPC1768/)
If its another stamp board with the UART exposed and an ISP boot option then a USB to serial cable like those available from FTDI should provide what you need. Its not possible to check the UART hook ups without knowing what board you have.
Hi Brendon,
Thanks for your reply.
I have purchased the one from the below link.
Along with the base board below.
How do I hook up the FTDI cable to the stamp board. Could you please help me with this?
Regards,
Siva
You need to read chapter/section 32.2 of the LPC176x User Manual. This will explain what happens when ISP boot mode runs.
In ISP boot mode the device will boot via UART0. The board you are using doesn't come from NXP, but a quick look at the schematic on the NGX site shows UART0 (RXD0/TXD0) is brought out to the P1 connector. You will need to connect your USB to serial there to use Flash Magic.