Tuesday, January 23rd 2018, 8:48am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Date of registration: Jul 16th 2014

Posts: 29

Location: Hannover, Hamburg, Germany

Occupation: Software Developer


Friday, October 31st 2014, 3:49pm

writing 4 byte long bin file into a Nordic UICR

I'm currently writing a BLE boot loader for a Nordic ARM ship (nRF51422). I use cmake for my build process, that creates an elf-file, which is converted into a hex-file, which is converted into 2 bin files. One bin file is the content of the hex file, that contains the boot loader binary. The second bin file, is the content of the hex file, that describes one 32-bit value that have to be written to the so called UICR of the chip. The UICR is a flash region that is shorter than the usual pages and contains factory informations and starts at 0x10001000.

Now I have to write the second short (4 bytes) bin file to the location 0x10001014 and use this command for the task:

Source code

loadbin ble_bootloader_uicr.bin, 0x10001014

This works but results in the following error message:

Source code

Downloading file [ble_bootloader_uicr.bin]...Info: J-Link: Flash download: Flash programming performed for 1 range (1024 bytes)

****** Error: Programming failed @ address 0x10001000 (block verification error)

Can someone think of a workaround for this (beside parsing the bin-file/hex-file and writing a script that uses "w4" commands)?

In an other part of the build, I write a slightly larger bin file into an already erased UICR at address 0x10001000, without error message.

kind regards, thanks in advance and have a nice weekend ;-),


This post has been edited 1 times, last edit by "Torsten Robitzki" (Oct 31st 2014, 5:28pm)