Hi,
We use nrf52840 and SDK 17.0.2 with Softdevice S340
We have a very strange problem and need help from Nordic. Below is my source code.
I don't have any Bootloader and My application flash range is 0x31000 - 0xF1ffff
After I build and download by IAR. Everything is OK. I can erase internal flash 1 block form 0xF2000
But If I click option -> Debugger -> Use flash loader and Override default .board file
I go to run the same source code. Erase action will cause Hardfault in below function
/* Erase flash page(s). */
static uint32_t erase_execute(nrf_fstorage_sd_op_t const * p_op)
{
return sd_flash_page_erase(p_op->erase.page + p_op->erase.progress);
}
Why? We don't have any idea how to debug this problem. Can you help me to try this problem using my source code?
Thank you.
John.