When I debug the twi_scanner_pca example , it gets stuck at
.thumb_func
.weak HardFault_Handler
HardFault_Handler:
b . On my NRF DK2 everything is fine, on my rigado eval kit which is using nrf52810 this error occurs. I have built custom board also, I tried with and without external crystal. Besides this all the examples in peripheral folder ( same were twi scanner is ) have same behaviour .
I have tried to solve problem, it has been couple hours, tried same example from different sdk from 14 to 17 , on nrf DK2 I coded the program to read the sht21 sensor successfully and it works perfectly on my DK2 (same project files ).
I cleaned the main.c file of this example and made the minimum code as , there is same behaviour still.
#include "app_error.h"
/* TWI instance. */
int main(void)
{
while (true)
{
}
}
/** @} */