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

How do you setup Ozone to work with the nRF51DK?

Hello,

I have installed Ozone (V2.22g) on Kubuntu (16.10 64bit) and attached a nRF51DK via USB. I can successfully run a test program using nrfjprog with the following script:

# Commands to flash nRF51-DK using RF5x-Command-Line-Tools-Linux64
PATH=$PATH:/opt/nRF5x-Tools/nrfjprog/:/opt/nRF5x-Tools/mergehex/
nrfjprog --recover -f NRF51
nrfjprog --program Test.hex --verify --chiperase -f NRF51
nrfjprog --rbp ALL -f NRF51
nrfjprog -r -f NRF51

However, when I try to debug the same program with Ozone it fails and I get the following output:

J-Link software found at: 
File.Open ("/home/paul/test.jdebug");
Project.SetDevice ("nRF51422_xxAC");
Project.SetHostIF ("USB", "");
Project.SetTargetIF ("SWD");
Project.SetTIFSpeed ("1 MHz");
Project.AddSvdFile ("Cortex-M0.svd");
Project.AddSvdFile ("/home/paul/Projects/Embedded Projects/nRF5 SDK 12.1.0/svd/nrf51.svd");
File.Open ("/home/paul/Projects/Embedded Projects/NRF5x/nRF51x22 Lazarus Test/Test.elf");
File.Open: completed in 38 ms
Debug.Start();
J-Link: Device NRF51422_XXAC selected.
J-Link: Found SWD-DP with ID 0x0BB11477
J-Link: AP-IDR: 0x04770021, Type: AHB-AP
J-Link: Found Cortex-M0 r0p0, Little endian.
J-Link: FPUnit: 4 code (BP) slots and 0 literal slots
J-Link: CoreSight components:
J-Link: ROMTbl 0 @ F0000000
J-Link: ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
J-Link: ROMTbl 1 @ E00FF000
J-Link: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
J-Link: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
J-Link: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
J-Link: ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
J-Link: connected to target device
J-Link error: Verification of RAMCode failed @ address 0x20000000.
Write: 0xA801BE00 F0009900
Read: 0x00000000 00000000
Failed to prepare for programming.
Failed to download RAMCode!

What have I missed?

Thanks, Paul

Related