LPC540XX Custom Board Firmware Upload

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC540XX Custom Board Firmware Upload

611 Views
mtsang
Contributor II

Hi All,

     For my custom board, it has a LPC54S018JET180E and a NOR SPI External Flash. I would like to upload firmware to the NOR SPI External Flash from a PC. And I want the custom board to boot from the NOR SPI External Flash.

     I want to use the "mcu link debug probe" for the programming, but I am unsure how to connect the "mcu link debug probe" to my custom board. Attached image is the interface I have so far. Or please suggest another programmer that can perform programming to the LPC540XX and the NOR SPI External Flash.

mtsang_0-1744735097692.png

 

Thanks,

4/15/2025

 

Tags (1)
0 Kudos
Reply
10 Replies

581 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mtsang 

" I am unsure how to connect the "mcu link debug probe" to my custom board. "

Connecting MCU-Link to Your Board . You can use the JTAG (P2) connector you showed in your schematic.

And you want to boot from external flash.

I think you can refer to the hello world qspi xip demo.

Harry_Zhang_0-1744792782636.png

 

BR

Harry

0 Kudos
Reply

564 Views
mtsang
Contributor II

Hi Harry,

 

     Thanks for your quick response!

     I should connect my custom board's P2 to the J6 of the "MCU-Link", is that correct?

     Also do I need to use pull-up resistor for all of the Jtag signals?

     And where should "ISP-EN" to connect to?

mtsang_1-1744828055347.png

 

Thanks,

4/16/2025

 

Tags (1)
0 Kudos
Reply

546 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mtsang 

Yes, you are right.

"And where should "ISP-EN" to connect to?"

Firstly, you can confirm which pin is connected to P1 based on your schematic diagram.

And then you can refer to the LPC546xx and LPC540xx evk board schematic.

BR

Harry

0 Kudos
Reply

538 Views
mtsang
Contributor II

Hi Harry,

 

For my schematics:

P1_1 -> VCC

P1_2 -> LPC54S018JET180E_pio0_13 "FC1_SDA"

P1_3-> LPC54S018JET180E_pio0_14 "FC1_SCL"

P1_4-> GND

P1_5-> LPC54S018JET180E_pio1_2 "FC10_MISO"

P1_6-> LPC54S018JET180E_pio1_1 "FC10_MOSI"

P1_7-> LPC54S018JET180E_pio2_22 "FC10_SEL1"

 

According to the "LPC546xx and LPC540xx evk board schematic", the P1_7 "ISP_EN" connects to P0_4-ISP0 with a SWITCH that pulls to GND.

 

From my schematic, LPC54S018JET180E_pio0_4 is the JTAG_TMS that connects to my schematics' "P2_JTAG_TMS", so do I need to add a SWITCH that pulls to GND during the programming and tie the "ISP_EN" to the "P2_JTAG_TMS"? Thanks, 4/18/2025

 

Thanks,

4/18/2025

0 Kudos
Reply

451 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mtsang 

Yes, according pio0_4 you need to add a SWITCH that pulls to GND during the programming .

Harry_Zhang_0-1745290840401.png

tie the "ISP_EN" to the "P2_JTAG_TMS"?

No

BR

Harry

 

0 Kudos
Reply

431 Views
mtsang
Contributor II

Hi Harry,

     Thanks for the pio0_4 and ISP download details, will take note on that.

     Do I need to add pull up/down resistors(what values) to my JTAG_(TCK/DO/DI/TRST/RESET#) signals?

     Also I am still confused about where should I connect MCU-Link Pro's J7_ISP_EN (I decided to use MCU-Link Pro) to my custom board.

     From the evk board schematic, I see "ISP_CTRL" drives the "IF_ISPEN" and "IF_ISPEN" connect to "PIO0_4" with a 0Ohm resistors. Since "pio0_4" for my schematic will be pulled down to the GND, does that mean I should leave the MCU-Link Pro's J7_ISP_EN open?

mtsang_0-1745340447617.png

 

Thanks,

4/22/2025

 

 

0 Kudos
Reply

390 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mtsang 

"Do I need to add pull up/down resistors(what values) to my JTAG_(TCK/DO/DI/TRST/RESET#) signals?"

I think you can refer to it.

Harry_Zhang_0-1745468952156.png

Or you can also refer to this.

Harry_Zhang_1-1745469012329.png

This schematic is a debuger for MCX, but they are similar.

"From the evk board schematic, I see "ISP_CTRL" drives the "IF_ISPEN" and "IF_ISPEN" connect to "PIO0_4" with a 0Ohm resistors. Since "pio0_4" for my schematic will be pulled down to the GND, does that mean I should leave the MCU-Link Pro's J7_ISP_EN open?"

Sorry, i don't know why MCU-Link Pro need to connect to the J7_ISP_EN?

BR

Harry

 

 

0 Kudos
Reply

359 Views
mtsang
Contributor II

Hi Harry,

 

     Thanks for the reference for the pull up/down resistors!

 

     "Sorry, i don't know why MCU-Link Pro need to connect to the J7_ISP_EN?"

          The "J7_ISP_EN" is from the MCU-Link Pro. And I am unsure where should the signal "ISP_EN" connect to the LPC540XX. Below pic is my JTAG port on my custom board. I am wondering where MCU-Link Pro's "J7_ISP_EN" suppose to connect to my custom board. My intention is to connect MCU-Link Pro's J7 connector to my custom board's P2.

mtsang_1-1745529789501.png

Thanks,

4/24/2025

0 Kudos
Reply

266 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @mtsang 

I understand your intention, you are right.

Harry_Zhang_0-1745719927193.png

You need select one pin in P2 to connect to the PIO0_5-ISP_EN-LED_SWD_ACT.

This is for the mcu link firmware update.

If enter mcu link pro isp mode.

Harry_Zhang_1-1745720085068.png

You should communicate with is using USB mode.

 

This is the schematic diagram of MCU Link Pro.

MCU-Link Pro rev A.sch

I think this will be helpful to you.

BR

Harry

0 Kudos
Reply

540 Views
mtsang
Contributor II
Hi Harry, For my schematics: P1_1 -> VCC P1_2 -> LPC54S018JET180E_pio0_13 "FC1_SDA" P1_3-> LPC54S018JET180E_pio0_14 "FC1_SCL" P1_4-> GND P1_5-> LPC54S018JET180E_pio1_2 "FC10_MISO" P1_6-> LPC54S018JET180E_pio1_1 "FC10_MOSI" P1_7-> LPC54S018JET180E_pio2_22 "FC10_SEL1" According to the "LPC546xx and LPC540xx evk board schematic", the P1_7 "ISP_EN" connects to P0_4-ISP0 with a SWITCH that pulls to GND. From my schematic, LPC54S018JET180E_pio0_4 is the JTAG_TMS that connects to my schematics' "P2_JTAG_TMS", so do I need to add a SWITCH that pulls to GND during the programming and tie the "ISP_EN" to the "P2_JTAG_TMS"? Thanks, 4/18/2025
0 Kudos
Reply