I have the same problem except I am programming my custom board using an LPC-link 2 board.
I made an extremely simple program as seen below.
/*
===============================================================================
Name : TestProject.c
Author : $(author)
Version :
Copyright : $(copyright)
Description : main definition
===============================================================================
*/
#include "chip.h"
#include <cr_section_macros.h>
// TODO: insert other include files here
// TODO: insert other definitions and declarations here
int main(void) {
SystemCoreClockUpdate();
Chip_GPIO_Init(LPC_GPIO_PORT);
Chip_SCU_PinMuxSet(3, 5, SCU_MODE_FUNC0);
Chip_GPIO_SetPinDIR(LPC_GPIO_PORT, 3, 5, 1);
while(1)
{
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 3, 5, 0);
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 3, 5, 1);
}
return 0 ;
}
===============================================================================
Using the LPCXpresso4337 dev board and stepping through the code I was able to toggle the on board LED. I then plugged in my custom PCB and changed the code so instead of toggling pin 3.5 its toggling pin 1.8. I viewed the GPIO-PORT peripheral in LPCXpresso and see that pin 1.8 is getting set and cleared as i step through but no response on the PCB. The line i'm trying to toggle is simply going to an expansion header and has an external 100k pull up to 3V3. The line just stays high the whole time (viewing the line through a CRO).
I have tried toggling other lines just to be sure but all of them have the same issue. I realise the dev board is a 4337 chip an my custom board chip is a 4367 but that shouldn't matter as they have the same memory mapping.
I've tried programming through both SWD and JTAG.
I've also tried programming the board with similar code but with a delay in between toggles and programmed the board through CMSIS-DAP V5.147. The message says the board is programmed successfully but still no activity on the custom board. Again this method worked for the LPCXpresso4337 board but not my custom board.