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

nRF52840 dongle question

Hello,

I am trying to use IAR examples to debug some of the examples provided in the SDK.

I am only using examples that support the pca10059 dongle.

One example is the peripheral/Blinky.

The J-Link with IAR debugger is working. My problem is that I cannot flash the part and debug it because it is already programmed with USB bootloader.

What do I need to do please in order to be able to flash the dongle and debug it succefuly?

Thank you.

Mohammad Karaki

Parents
  • Hi Andreas,

    I installed JTAG connector and used IAr J-Link to do that.

    My question should be is how to debug any of the examples provided for the dongle?

    The dongle uses a bootloader and I am not sure how to download the example to the dongle and be able to debug it using IAR workbench.

    Is there a way to do that , whether using this method or any other one you may suggest?

    Thank you.

    Mohammad

  • Hi Andreas,

    The J-link is working fine with the dongle. My problem is how to bypass the bootloader so I can debug the code on the dongle. 

    If you have another method to debug examples on the dongle please let me know about it.

    Thanks again.

    Mohammad

  • Hi again.

    You just have to reprogram it with your IAR J-Link. However, if you do a full flash erase (which includes erasing the UICR), you will have problems unless you have a debugger which has a levelshifter.

    This is because in the UICR there is a register called REGOUT0, which sets the voltage (standard value 1.8 V). And you need to have 3.0V in order to program the chip.

    To avoid this:

     - Never delete the UICR, and if you do delete UICR you should need to make sure that you set REGOUT0 to 3.0V before you reset.

    - Or, use a debugger which supports level shifting (for example the J-Link Pro, but this debugger is expensive).

    That's why I asked which IAR J-Link you have.

    - Andreas

Reply
  • Hi again.

    You just have to reprogram it with your IAR J-Link. However, if you do a full flash erase (which includes erasing the UICR), you will have problems unless you have a debugger which has a levelshifter.

    This is because in the UICR there is a register called REGOUT0, which sets the voltage (standard value 1.8 V). And you need to have 3.0V in order to program the chip.

    To avoid this:

     - Never delete the UICR, and if you do delete UICR you should need to make sure that you set REGOUT0 to 3.0V before you reset.

    - Or, use a debugger which supports level shifting (for example the J-Link Pro, but this debugger is expensive).

    That's why I asked which IAR J-Link you have.

    - Andreas

Children
Related