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

How can I use ERR_TO_STR_TWI() macro?

Hello,

I would like to understand how can I make use of the macro ERR_TO_STR_TWI in order to know what error is being given by my TWI module function.

I have tried something like this

  err_code = nrf_drv_twi_rx(&twi, reg_addr, rxData, bytesNumberRx);
  ERR_TO_STR_TWI(err_code);
  APP_ERROR_CHECK(err_code);

But it doesn't work at all, actually setting a breakpoint on ERR_TO_STR_TWI() shows how this call isn't invoked at all...

Any hints?

Thanks in advance

Related