Content originally posted in LPCWare by KiloMike on Fri Jul 03 14:43:00 MST 2015
Quote: starblue
I've played a bit with an LPC4088 Quickstart, LPC-Link2 as CMSIS-DAP and LPCXpresso 7.8.0, with the lwip_tcpecho_freertos example. It worked fine, including debugging.
Thanks, yeah. Emboldened by a new day, I looked at it on the scope this morning. Turns out that the LPC-Link-2 board has a 100K pull-up resistor on the SWDIO line while the LPC4088 quickstart board has a 33k pull-down resistor on the same line. The two fight each other when the pin is allowed to float but it still correctly toggles high/low as required.
I then went back through my code and I found the bug. I was setting the PCLKSEL register to 0x00000000, which turns off the peripheral clock so that no clock will be provided to APB peripherals. I'd misread the 4088 user manual, paragraph 3.10.6 "PLL configuration sequence" section where it explains how to switch clocks away from a PLL output before setting up the PLL.