This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51822 twi hard fault

Hi,

I've an HardFault, the program crash to the HardFault service routine at this row of the twi_hw_master.c:

--> NRF_PPI->CH[0].EEP = (uint32_t)&NRF_TWI1->EVENTS_BB;

This appens after the call twi_master_init();

The same code runs well in the DK board PCA10004 and the problem happens in my custom board, the softdevice firmware is the same.

If I disable just the twi all the rest works fine. I'm looking for additional informations because I have not test pads for test the SDA and SCL signals, so is not simple to find out what happen.

I was reading the nRF51 pdf but seems that there are not usefull information.

Thanks for your attention.

Related