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

nrf5280 re-config TRACEDATA pin as general gpio for pulse generation

hello Nordic

i am using nrf52840, sdk 16.0, working base on the peripheral app_ble_blinky example

i wish to use the p0_11 pin for pulse generation (not pwm), but when i try to config that pin as nrf_drv_gpiote_out_init(), i get err_code = 8 (NRF_ERROR_INVALID_STATE )

i looked into the data sheet and the forum for a bit and understood this is TRACEDATA2 pin but that it can also be configured as gpio, so the question is how to reconfigure it as gpiote (timer will generate a pulse with ppi to this pin) ?

also, since i understood the TRACEDATA has something to do with debugging, does configuring the pin as gpiote will have any affect on debugging with development board or in the future with a programmer via j-link connection to a PCB to be ?

also, i am using TRACDATA 1 (p0_12) as MOSI pin in an SPI comm and i did not get any problem there, so why is there a difference ?

best regard

Ziv

Parents Reply
  • Hi Vidar,

    I'm not using default board configuration and have my own custom board configuration. I'm also initializing the pin using nrf_gpio_cfg_output() as I'm not using events on that line. and this function does not return anything.

    For further elaboration, I'm not getting any error while initializing the pin. Things go weird when I set the line to HIGH and if TRACE is not used, I don't see any reason for my code to jump to unknown location in memory and stuck there. 

    Any thoughts you can share which can help me solve this.

Children
No Data
Related