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

Not succeeding to program nRF52832

HelloI am trying to program nRF52832 QFAA and am succeeding only partially: the debugger is connecting to the chip, and I can RUN step by step, however, I'm seeing only the assembly code, and am not able to point to the C code. 

I tried the following solutions: 

1) Use ST-LINK and Jlink, same results for both.

2) KEIL/ IAR IDEs, both show similar results.

When I power up the PCB, I'm not seeing the device on any BLE scanner, which implies to me that something is not working properly.

(b.t.w - my PCB is based on fanstel BT832 module, which is based on nRF52832 ).

What am I missing here?

Any suggestion would be welcome.

Thanks

  • You cannot use step mode once the softdevice (SD)  is active - this will mess up the BTLE timing, and causes the SD to throw faults at you.

    You should be able to step through your code beforte SD is activated.

    You can also look at the address of the disassembly. SD addresses below the application have no (user available) source, and in upper flash there might be a bootloader (in case you flashed one). Both won't allow the debugger to translate code addresses back to source lines - so you can only see disassembly at most.

    One other possible problem: The bootloader won't accept applications updated via debugger unless you also flash the "bootloader settings page" generated by nrfutil.

  • I found the problem.

    The example package I used was nRF5-SDK-v12-zip which is apparently not suitable for NRF52 (why does Nordic place this software kit under NRF52 dowloads!).

    When using nRF5-SDK-zip I was able to work correctly.

    Also I found out that I can only program correctly using SEGGER embedded studio. So all in all, I think Nordic has done a very poor job of making their ICs accessible, and am now considering to replace this module to another type.

Related