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

NRF52840 Port pin 1.00

I am having issues using port pin 1.00 on the 52840 as GPIO. It will just not toggle.

I can successfully use most other pins, even those on the higher port. For example P1.01, P1.02 etc etc.

To control the pins I am using the nrf gpio functions: nrf_gpio_cfg_output /  nrf_gpio_pin_clear and nrf_gpio_pin_set, (the pin number being  #32 in this case).

If I configure P1.00 to be used on a peripheral, say PWM then I do see some activity but the static levels are wrong, (it will not stay low). If I map another pin to the same PWM driver the levels are fine.

As far as I can tell the other pin functions of SWO and TRACE are not enabled. I have previously configured the pin successfully as SWO but this option is disabled in this case.

Parents Reply
  • Hi,

    I think I have found the answer ..

    As I was checking the softdevice (for your query) I discovered that when I load a hex file and repower the target the line toggles. So I was probably wrong about trace activity.

    When I download using eclipse I get the problem. So I guess that some trace activity is implicitly running when I download the code which is affecting the operation of this pin. (Note there is no connection from the JTAG device to this pin).

    I am using SDK 15.2, and soft device S140 6.1.0 and  NRF_GPIO_PIN_MAP(1,0) 

    This now seems workable.

    Thanks.

Children
Related