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.
Thanks,
4/15/2025
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.
BR
Harry
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?
Thanks,
4/16/2025
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
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
Hi @mtsang
Yes, according pio0_4 you need to add a SWITCH that pulls to GND during the programming .
tie the "ISP_EN" to the "P2_JTAG_TMS"?
No
BR
Harry
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?
Thanks,
4/22/2025
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.
Or you can also refer to this.
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
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.
Thanks,
4/24/2025
Hi @mtsang
I understand your intention, you are right.
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.
You should communicate with is using USB mode.
This is the schematic diagram of MCU Link Pro.
I think this will be helpful to you.
BR
Harry