When I try to write a UUID into the UICR registers using the method described at - Software Development Kit > nRF5 SDK > nRF5 SDK v12.2.0 > Examples > Hardware peripheral examples
My setup is:
Without changing anything in the code – and I compile the project, my resultant hex file does have the requisite: :020000041000EA :041080007856341258 :0400000500000401F2 :00000001FF
The compiler output is:
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf52832_xxaa'
assembling arm_startup_nrf52.s...
compiling app_error.c...
compiling system_nrf52.c...
compiling main.c...
linking...
Program Size: Code=728 RO-data=1060 RW-data=4 ZI-data=8196
FromELF: creating hex file...
"._build\nrf52832_xxaa.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:03
Load "C:\nRF52 DK Test Apps\examples\peripheral\uicr_config\pca10040\arm5\_build\nrf52832_xxaa.axf"
Set JLink Project File to "C:\nRF52 DK Test Apps\examples\peripheral\uicr_config\pca10040\arm5\JLinkSettings.ini"
- JLink Info: Device "NRF52832_XXAA" selected.
JLink info:
DLL: V6.12a, compiled Dec 2 2016 16:44:26 Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 14 2016 16:58:29 Hardware: V1.00 S/N : 682611635
- JLink Info: Found SWD-DP with ID 0x2BA01477
- JLink Info: Found SWD-DP with ID 0x2BA01477
- JLink Info: AP-IDR: 0x24770011, Type: AHB-AP
- JLink Info: Found Cortex-M4 r0p1, Little endian.
- JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
- JLink Info: CoreSight components:
- JLink Info: ROMTbl 0 @ E00FF000
- JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
- JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
- JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
- JLink Info: ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
- JLink Info: ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
- JLink Info: ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM ROMTableAddr = 0xE00FF000
Target info:
Device: nRF52832_xxAA VTarget = 3.300V State of Pins: TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 6 Software-Breakpoints: 8192 Watchpoints: 4 JTAG speed: 1000 kHz
Erase Failed! Error: Flash Download failed - "Cortex-M4" Flash Load finished at 18:58:29
The only issue is that the nrf52832 is an M4 core machine, but the only option available in the PACKs for this are arm5 based.
What can I do to get it to program correctly? Any other item I have played with to get the feel of this device, have all worked well when programmed into the processor.