Hello, I am asking for your help again.
I just managed to brick the chip that I am working with. The problem is that I am not able to erase or program the flash. However, other than that the firmware is running fine and I am able to event connect a central to the board.
The problem has something to do with the "pstorage" module and "sd_app_evt_wait" since I was working on module storing data in the flash.
I've tried this solution but it did't help.
Is there any other way to erase the flash?
Edit: Here is the sequence of commands that I have tried in the JLink console:
si 1 r h
w4 4001e504 2
w4 4001e50C 1
w4 4001e514 1 r