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

Custom board not being recognized

Hi,

I have created a custom board with an NRF52832 chip on. Either programming via ULINK2 or the DK PCA10040 is no succes, board won't be recognized although it is powered.

Checked all support tickets around this subject, and wiring is set up okay including SWCLK, SWDIO, VTG GND. What else can be checked in hardware or wiring what could be the issue?

I have used the reference circuit diagram for the NRF52832 dcdc schematic.

Thanks.

Parents Reply Children
  • Which example specifically are you using?

     

    Here's an example on how to use nrfjprog:

    # Erase the chip
    nrfjprog -e
    # program softdevice
    nrfjprog --program path/to/softdevice.hex --verify
    # program the application
    nrfjprog --program path/to/app.hex --verify --reset

     

    If you do not do a erase all (nrfjprog -e), you have to add the switch "--sectorerase" when programming.

     

    Kind regards,

    Håkon

  • I have tried multple hex files, ble_app_beacon, ble_app_blinky, and ble_app_uart and after loading the softdevice correctly, all give the same error.

    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    ERROR: The area to write is not erased.

    This does not happen when taking the merged soft device with hex file. Is there some memory allocation wrong?

  • Do you have the latest nrfjprog version installed? It can be downloaded from here:

    https://www.nordicsemi.com/?sc_itemid=%7B56868165-9553-444D-AA57-15BDE1BF6B49%7D

     

    It's important that you compile a project for the S132, when this is the softdevice that you have loaded onto the nRF device.

    Could you attach one of the .hex files that you have compiled so I can have a look at the offset etc?

     

    Kind regards,

    Håkon

  • Thanks. Offsets and all look good. I had no issues programming this .hex file:

    C:\SDK\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex>nrfjprog -e
    Erasing user available code and UICR flash areas.
    Applying system reset.
    
    C:\SDK\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex>nrfjprog --program s132_nrf52_6.1.1_softdevice.hex
    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    Checking that the area to write is not protected.
    Programming device.
    
    C:\SDK\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex>nrfjprog --program 5850.nrf52832_xxaa.hex
    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    Checking that the area to write is not protected.
    Programming device.

     

    But, If I try again; I'll get this error, and would need to add the "--sectorerase" flag to nrfjprog:

    C:\SDK\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex>nrfjprog --program 5850.nrf52832_xxaa.hex --verify
    Parsing hex file.
    Reading flash area to program to guarantee it is erased.
    ERROR: The area to write is not erased.
    
    C:\SDK\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex>nrfjprog --program 5850.nrf52832_xxaa.hex --verify --sectorerase
    Parsing hex file.
    Erasing page at address 0x26000.
    Erasing page at address 0x27000.
    Erasing page at address 0x28000.
    Erasing page at address 0x29000.
    Erasing page at address 0x2A000.
    Erasing page at address 0x2B000.
    Applying system reset.
    Checking that the area to write is not protected.
    Programming device.
    Verifying programming.
    Verified OK.

     

    Kind regards,

    Håkon

Related