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

nRF51822 s110 + TWI Crashes

I'm testing out TWI on pins 24/25 and I get a crash when I attempt to do a TWI transfer and I find myself in: WDT_IRQHandler ()

I'm using much of the example code:

APP_TWI_INIT(&m_app_twi, &config, MAX_PENDING_TRANSACTIONS, err_code);

app_twi_transfer_t const lm75b_init_transfers[LM75B_INIT_TRANSFER_COUNT] = { APP_TWI_WRITE(LM75B_ADDR, default_config, sizeof(default_config), 0) };

app_twi_perform(&m_app_twi, lm75b_init_transfers, LM75B_INIT_TRANSFER_COUNT, NULL);

More precisely, the function

ret_code_t result = app_twi_schedule(p_app_twi, &internal_transaction);

doesn't return...

Also, all this happens before any ble stuff happens.

thanks!

Parents Reply Children
No Data
Related