This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52 dk won't flash anymore? Any hope?

My µvision crashed during programming and will no longer respond to trying to program it. It boots into the bootloader mode. My computer sees it but the precompiled binaries don't seem to have any affect. NRFGo also sees it. Trying to program the board appears to work from the IDE, but doesn't seem to do anything at the board. What should be my next step?

Update 1: It looks like it is hitting the HardFault_Handler right after finishing the SystemInit(void) function in system_nrf52.c. Maybe it doesn't recognize my code and just goes through its boot sequence than freezes because it doesn't know what to do next.

Update 2: It seems that it is not programming correctly. When using nRFGO, it will show the programming, then promptly show the device completely empty.

Parents
  • if Keil and nRFgo sees your device then it is not bricked. Bricked means there is no way that any debugger could connect your device and halt the CPU in time.

    You said that you are even able to reprogram but it does not have any affect, In that case i would suggest you to compile your program with no optimizations and start in debug mode to see if anything is running at all in the CPU.

  • It looks like as soon as it starts, it goes until it hits: 0x00000522 E7FE B 0x00000522 in disassembly mode and then stops. Any ideas? It stops at the same place for two different programs, one I made and a sample one. With 0 optimization this is in the HardFault_Handler/ exception handler in arm_startup_nrf52.s. It seems like it gets sent there right after finishing the void SystemInit(void) function in system_nrf52.c. Is it just not knowing what to do after the startup code is executed?

Reply
  • It looks like as soon as it starts, it goes until it hits: 0x00000522 E7FE B 0x00000522 in disassembly mode and then stops. Any ideas? It stops at the same place for two different programs, one I made and a sample one. With 0 optimization this is in the HardFault_Handler/ exception handler in arm_startup_nrf52.s. It seems like it gets sent there right after finishing the void SystemInit(void) function in system_nrf52.c. Is it just not knowing what to do after the startup code is executed?

Children
No Data
Related