Content originally posted in LPCWare by pgr on Wed Jan 28 06:05:25 MST 2015
The SWCLK signal on my custom board is conencted to SWD connector and an external pull-down resistor as recommended in the LPC82x datasheet (page 30).
On my software I disable internal pull-up to reduce power consumption using the following line of code:
Chip_IOCON_PinSetMode(LPC_IOCON, IOCON_PIO3, PIN_MODE_INACTIVE);
Then the debugging session crash with the error message 10 (as in my first post).
If I remove this line of code everything work nicely. Is sound strange to add an external pull-down and having an internal pull-up activated by default. What do you think ? Should I remove the external pull-down ?
Thanks in advance foe your feedback