Hi, Alvaro,
1)How should I migrate the code to the PBC's MCU? I guess it is some header file/board file.
Can this be made automatically with MCUXpresso?
>>>>I suggest you download SDK package for LPC5514, then develop your own application.
This is SDK package link:
https://mcuxpresso.nxp.com/en/welcome
2)The PCB should always boot in ISP mode (USB-HS) , so pin 56 (PIO0_5/ TDI) is pulled to GND, and I connected a 16MHz crystal to XTAL32M_N XTAL32M_P.
Is that enough? or I'm missing something?
>>>>I suggest you connect PIO0_5 pin to a button as the EVK have done, press the button, the chip enter ISP mode(PIO0_5 is low after Reset), do not press the button, the chip will execute application code in flash after reset.
3)How can I write '001' in DEFAULT_ISP_MODE, so it will look for a firmware in USB-HS interface?
Is it done from MCUXpresso?
>>>>>You can use blhost tools to write CFPA space, for detailed information, pls refer to an12283.pdf for how to write CMPA page
https://www.nxp.com.cn/docs/en/application-note/AN12283.pdf
4)How can I ISP-boot from USB-FS (maybe will be needed in the future)?
* Currently, I'm using MCUXpresso 'Debug' option to flash the MCU, since I will boot in ISP mode with my PCB, I need a way to generate a bin file from my code, how it can be done? is there a way to do it from the terminal (without MCUXpresso), so I will be able to generate a firmware image in a CI process?
>>>>>The above AN also tell you how to download image to flash based blhost tools.
BR
XiangJun Rong