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

app_twi_perform() hangs in twi_master_using_app_twi_pca10028 example.

I'm using the BMD-200-EVAL S board (using Segger JLink). I've defined SCL and SDA as:

#define ARDUINO_SCL_PIN 5
#define ARDUINO_SDA_PIN 8

When debugging into the app_twi_perform() function, I see that p_app_twi->internal_transaction_in_progress remains as 0x01 so I am perpetually in the while (p_app_twi->internal_transaction_in_progress) statement.

When allowed to run, this app_twi_perform() returns error code 3.

Questions:

  1. Have I defined ARDUINO_SCL_PIN and ARDUINO_SDA_PIN correctly? According to the BMD-200-EVAL-UG-V1.2 (6).pdf, P0.05 is the SCL and P0.08 is the SDA. I've also tried 16 and 20, as well as 7 and 30, with the same hanging result.

  2. I am defining BOARD_CUSTOM. Is this correct? The referenced pdf gives this as an instruction.

  3. I have edited the nrf.drv.config.h file to change the SCL and SDA to match what I have define in main.c. Same hanging result. Any further ideas on what I can try?

Parents Reply Children
No Data
Related