Program LPC by UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Program LPC by UART

2,601件の閲覧回数
aashish1
Contributor I

Hi All,

I am working on LPC55S69 and need to flash firmware (.bin/.axf etc) via USB-to-Serial (FTDI) cable, the programming connector

I need to design new firmware for a device having LPC55S69, the existing device has a programming connector and a programming cable as given below, 

lpc-prog.png

As far as I know to program LPC MCUs we can use ISP Boot mode with Flash Magic, but for that I need to use two more pins of the MCU i.e., ISP and RST, so in total 5 pins (Vcc, Gnd, Rx, Tx, ISP and RST), the ISP and RST of MCU connected to RTS and DTR of the FTDI adaptor (or activate the ISP and RST pins of MCU manually by shorting them to GND)

So I need to know is there “ANY WAY” by which we can program LPC MCUs by only Rx, TX (and Vcc, Gnd), without using ISP and RST pins of MCU (or by connecting ISP and RST internally to some thing which is triggering ISP boot mode).

Or if they have written their own bootloader that can be used without using ISP and RST pins of MCU.

0 件の賞賛
返信
7 返答(返信)

2,581件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that you misunderstood the function of the pins: RST, ISP,uart_TXD and UART_RXD.

First of all, the PIO0_5 pin for LPC55S69 is ISP pin, the RESET_b pin and PIO0_5 pins are not necessary to connect to the FTDI chip, on the LPC55S69 target board, you need to connect the PIO0_5 pin to a button or a jumper so that you can control the PIO0_5 pin high or low after Reset.

The RESET_b pin is required to be connected to a RC circuit and button(the RESET_b pin is low after you press the button).

With PIO0_5 Low during/after Reset, the LPC55S69 enter ISP mode, you can use the FTDI to transfer application code. During the transfer, the PIO0_5 do not need to control, only need to remain low.

With PIO0_5 high during/after Reset, the LPC55S69 executes application code.

 

xiangjun_rong_0-1736490229442.png

This is the uart pin, you have to use uart0 to transfer application code.

xiangjun_rong_1-1736490868669.png

You can use blhost.exe on PC side to download code via uart.

Pls refer to UM11126.pdf

Hope it can help you

BR

XiangJun Rong

 

0 件の賞賛
返信

2,565件の閲覧回数
aashish1
Contributor I

Great thanks for your reply XiangJun Rong sir, actually as I mentioned earlier as far as I know you can activate the ISP and RST pins of MCU manually by using button or a jumper, RC circuit etc, so that the LPC55S69 enter ISP mode, then we can use the FTDI to transfer application code.

What I observed in the PCB the PIO0_5 (ISP pin), RESET_b pin are left floating and in the drawing a pull-up resistor is shown but no button or jumper is there.

mcu.png

As you can see the Reset or ISP pins of MCU are not controllable (by a button etc) by the user, we are just plugging the FTDI to the PCB and able to flash the firmware.

 

May be they have written their own bootloader and custom PC app to flash the MCU.

Please help me is there “ANY WAY” by which we can program LPC MCUs by only Rx, TX (and Vcc, Gnd), without using ISP and RST pins

Thanks

0 件の賞賛
返信

2,531件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Yes, the following connection is correct.

The FTDI module is enumerated as a USB device with a COM port when the usb of FTDI is inserted to PC.

You can use the blhost to communicate with the LPC55S69 using the COM port.

For your question, you have to provide power for the LPC55S69 so that the LPC55S69 can work.

If you use LPC55S69, I suggest you order LPC55S59-EVK board and have a test.

https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools...

 

xiangjun_rong_0-1736742229522.png

Hope it can help you

BR

XiangJun Rong

 

0 件の賞賛
返信

2,523件の閲覧回数
aashish1
Contributor I

Great thanks sir, there is one doubt that I have not activated the PIO0_5 (ISP pin), RESET_b pin of the LPC55S69, they are left floating or a pull-up resistor connected, but no button or jumper is there to pull them Low to enter in ISP mode. So will the LPC55S69 enter into ISP mode? i.e., with the connection above, will I be able to flash firmware to LPC55S69 using blhost ?

I am ordering the LPC55S69-EVK, but want to have some clarity before hands-on.

Thanks

0 件の賞賛
返信

2,518件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Both the Resetn signal and PIO0_5 signal have internal pull-up resistor, so the two pins  can be float if you want to execute application code. If you want to enter boot mode, you can connect a pull-down on the PIO0_5.

But the condition that the LPC55S69 can enter boot mode is it is powered correctly.

Hope it can help you

BR

XiangJun Rong

 

0 件の賞賛
返信

2,234件の閲覧回数
aashish1
Contributor I

Great thanks xiangjun_rong

 

As we can see in the schematics there is no pull-down on the PIO0_5, even then We are able to program the microcontroller, they have given .sb file.

 

My problem is that how they are able to program the microcontroller without making pull-down on the PIO0_5 ?, is there any other wayout to enter the microcontroller in programming mode ? maybe via software etc.

 

Please help me

0 件の賞賛
返信

2,218件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi aashish1 ,

To enter ISP programming mode, the ISP pin must be inserted. Please refer to the following boot sequence chart, which is extracted from the UM.

 
 

Picture2.png

 

Hope this helps,

Jun Zhang

 

0 件の賞賛
返信