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
  • I'm also looking an answer for this. I'm currently using custom board with JLink as my debugger and I'm setting P0.11 line for enabling a voltage booster. As soon as I enable, I see the debugging stalls, RTT prints are stopped and code reaches some undefined location.

    Is there a way I can turn off TRACEDATA functionality so that I can use the line as plain GPIO. If yes, will that impact my debugging and RTT logging?

    Setup - nrf52840, JLink, SDK v17 (latest), SES IDE

Reply
  • I'm also looking an answer for this. I'm currently using custom board with JLink as my debugger and I'm setting P0.11 line for enabling a voltage booster. As soon as I enable, I see the debugging stalls, RTT prints are stopped and code reaches some undefined location.

    Is there a way I can turn off TRACEDATA functionality so that I can use the line as plain GPIO. If yes, will that impact my debugging and RTT logging?

    Setup - nrf52840, JLink, SDK v17 (latest), SES IDE

Children
No Data
Related