Content originally posted in LPCWare by cgroen on Sun Oct 04 07:50:59 MST 2015
Thanks for the correction to the code!
I'm using the LPC1549 and in a new design I will have to use the reinvoke ISP command to enable UART ISP.
I will not be using the "normal" ISP RxD and TxD pins (P0.14 and P0.15) for the UART communication, is it possible to configure the SWM prior to calling the reinvoke ISP command so that the bootloader will use the by me assigned TxD and RxD pins for the ISP ?
Or will the bootloader force P0.14 and P0.15 to be used as TxD and RxD for UART 0 ?
Ex:
Chip_SWM_MovablePortPinAssign(SWM_UART0_RXD_I, 0, 6); // Use P0.6 as RxD for UART0
Chip_SWM_MovablePortPinAssign(SWM_UART0_TXD_O, 0, 7); // Use P0.7 as TxD for UART0
Chip_IAP_ReinvokeISP(1); // 1=UART, 2=USB, 3=CAN