This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 and nRF52840 GPIO questions

1.Cant make P0.09(NFC1) and P0.10(NFC2) outputs?

Tried both nRF52832 from PCA10040 and a BT module  with nRF52840 and on both cant make any of those pins outputs. Tried with code and from debugger at a stop point to config as output and set OUT high. Don’t see any error, but don’t have any output voltage. Tried other pins and everything works fine either way – from code or manually form debugger. (On PCA100400 tried and outputs on NFC antenna pins as I saw the Arduino headers are not connected)

Is there any specific settings to make  P9, P10 outputs or any limitations that I missed?

2.Is there way with SES in debug mode to see change on an input pin at debug point? The only way I found is to make a step, but is there a way to stay at the debug point, let say press a button and somehow to refresh the window that shows P0 or P1 IN registers?

Thanks

Parents Reply
  • Problem with debug window for input (IN) registers P0 or P1 is that they are not updated while I am at a debug break point. Let say I'm debugging code and hit a break point and if  I for example press a button I don't see the change in the IN register. I have used to work with other IDEs for other microcontrollers and change in IOs can be seen right away even while I'm stopped at a debug break point.

    In SES the only way to see the change for a button press for example is to press and hold the button and step away from the break point with STEP IN, STEP OUT, GO etc debug stepping command.

    So the question is if there is a better way to see a change of an input while sitting/stopped at a breakpoint without step further in the code?

Children
Related