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
  • 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

  • Thanks for the help Håkon. Yesterday I did the 'remove everything from your pc and start over again'-fix. Somehow, something was wrong I guess. Since I have re-installed, nrfjprog, keil, downloaded new SDK files, now I can load hex files to my custom board. 

Related