I am trying PCA10040 examples on bluefeather arduino board , all of them works perfect and i am programming those examples by using jlink and ses. But when i try the same examples with the same setup and tools on my custom board, the only examples with no SD ones are working. If there is any softdevice in the example project, p0.17 is blinking and thats all. I assume it can not boot. When i swap chips between bluefeather and my custom boards everything works as expected on my custom board with the nrf52 that i transferred from arduino board.
When i check the PCA10040 examples which has sd , they contain sd hex too. How can i solve this problem. As i know bootlaoder is located in Sd hex .
The problem occurs if i not "erase all" before i download anything tonrf52.
Next question is , why doesnt it works without "erase all" , i mean it alresdy burns sd and app together , what prevent it to boot?
You should always do an "erase all" when flashing an application onto your nRF in order to make sure it is a "clean" device. Otherwise, you risk that the new firmware tries to overwrite the old one, which is likely what's causing this failure. Just to confirm. You are flashing your devices using DFU, correct? Is this DFU happening "over-the-air" (OTA) or over UART/something else?
I am flashing my device by Jlink swio interface.
The reason that i confused , when i got my device from factory , i didnt erased it all and flashed it directly and it didnt work. I am not using dfu , but since p0.17 is blinking . I think there is some software loaded from factory.