LPC540XX Custom Board Firmware Upload

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

LPC540XX Custom Board Firmware Upload

175 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
6 Replies

145 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

128 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

110 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

102 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

15 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

104 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