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

programming custom nRF52840 chip

Hi,

We are developing a system with nRF52840 chip and we have to feed the soft device (s140) hex file & our application hex file into custom board which we are developing. Actually, i don't have any idea on this. So, please let me know the procedure to program custom nRF52840 chip. kindly, do the needful.

Thanks & Regards,

Roshan.

Parents
  • Hi Stian,

    Can we use segger embedded studio directly to flash our custom nRF chip via nRF52840 SWDIO and the SWDCLK pins ?? or we need any separate application to program custom chip?

  • Ok Stian, we will use nrfjprog to flash our custom board. If anything else, will ping you in the same case. Thanks!!

  • Hi Stian,

    I was trying to program nRF52840 DK with external (another) nRF52840 DK. I am using the connections as mentioned below,

    1. Main DK of VDD to external DK VDD.

    2. VTG(pin 3) & VDD(pin 2) are shorted in main DK.

    3. SWDIO and SWDCLK of main DK to external DK (SWDIO,SWDCLK)

    4. GND on main DK from P1 -> GND Detect on main DK to P20 to GND Detect on external board on P20.

    Above are the connections I made and I am getting error as mentioned below,

    1. In nRF connect App: "Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)". 

    2. In Segger Embedded Studio: "Failed to connect to target.
    No idcode detected.
    Please check connection and Target Interface Type".

    NOTE : External DK is not connected to any power source. it's only connected to VDD of main DK to VDD of external DK.

    Kindly, do the needful.

    Best Regards,

    Roshan.

Reply
  • Hi Stian,

    I was trying to program nRF52840 DK with external (another) nRF52840 DK. I am using the connections as mentioned below,

    1. Main DK of VDD to external DK VDD.

    2. VTG(pin 3) & VDD(pin 2) are shorted in main DK.

    3. SWDIO and SWDCLK of main DK to external DK (SWDIO,SWDCLK)

    4. GND on main DK from P1 -> GND Detect on main DK to P20 to GND Detect on external board on P20.

    Above are the connections I made and I am getting error as mentioned below,

    1. In nRF connect App: "Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)". 

    2. In Segger Embedded Studio: "Failed to connect to target.
    No idcode detected.
    Please check connection and Target Interface Type".

    NOTE : External DK is not connected to any power source. it's only connected to VDD of main DK to VDD of external DK.

    Kindly, do the needful.

    Best Regards,

    Roshan.

Children
Related