11 years, 6 months ago.

4th UART in a production environment

Hello, Novice user and an immediate fan because of the simplicity and power

After my prototyping I need to move to production and question is can I use the 4th Uart (that LPC1768 offers) in the production environment without using the SPI-UART convertion. If so what changes do i need to make to the provided libraries to access the port.

Best Regards Ram k

2 Answers

ram k
poster
11 years, 6 months ago.

Sorry about the duplicate post

11 years, 6 months ago.

UART0 is used by the MBED chip for programming. If you do not need the MBED chip you can use UART0. That is also the ISP UART if you wanted to use the built in bootloader.

Again, pardon my basic questions: What does the MBED chip do (2) What is ISP UART? (3) Can i not use the Bootloader in certain situations and as normal uart in certain? I am thinking i will load the program from a sd card (which i also have to figure how to load the program from the card to be sent to the "eprom"

posted by ram k 21 May 2013

Essentially the MBED chip is a device programmed to act like both a USB storage device and a programmer/debugger. It really helps during rapid prototyping as it take cares of a lot of little step. It uses UART0 to program the microcontroller by using the built in bootloader. ISP stands for "in system programming".

Yes, the benefit of the UART0 is it is a normal port until you enter the ISP mode. This can be done by shorting the correct pin to ground or calling the routines from code.

In regards to updating from a SD card you will probably need to do one of two things. Have/Make a bootloader program that reads the SD card and writes to the flash using IAP (In application programming) calls or have another microcontroller (similar to MBED) read the SD card and use ISP to update the main microcontroller. They both have their benefits and downfalls.

At the moment I do not have the time to locate a bunch of the resources you are looking for. But if you search Google or MBED for "MBED ISP bootloader" and "MBED bootloader from SD card" you will probably find all the same information. I will try to post what I have to help people in the future and I would encourage you post what you find useful to help others.

posted by Travis Travelstead 21 May 2013