Hi,
I'm using custom board with the nrf42840 and I need to use p1.09 as a GPIO.
How can I do this in a debugging mode (using the PCA10056 as a jlink)? Can I get a code example?
Thanks,
Daniel
Hi,
I'm using custom board with the nrf42840 and I need to use p1.09 as a GPIO.
How can I do this in a debugging mode (using the PCA10056 as a jlink)? Can I get a code example?
Thanks,
Daniel
Hi Daniel
The TRACEDATA1-4 pins will be ordinary GPIOs as long as the TRACECONFIG->TRACEMUX field is set to 0, i.e. GPIOs multiplexed onto all trace-pins.
Best regards,
Simon
Simon thanks,
I tried NRF_CLOCK->TRACECONFIG = 0; It crashes the program. Can you kindly elaborate how to do it right?
Daniel
Hi Daniel
The TRACE pins should work as GPIOs in debug mode by default in our examples. Have you tested this before making any changes? When setting the TRACEMUX to 0, you should only set bits 16 and 17. The rest of the TRACECONFIG register should be left as is.
Best regards,
Simon
Thanks Simon