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

Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format

Hi, I have been programming PCA10028 using these commands for a while without any problem:

$ JLinkExe -device nrf51822_xxaa -if swd -speed 4000
J-Link>loadbin s110_nrf51822_7.1.0_softdevice.hex 0
J-Link>loadbin Blinky_ble.hex 0x16000
J-Link>r
J-Link>g
J-Link>exit

Suddenly I have this error flashing a Hex that I had already flashed: Downloading file [loadbin]...File is of unknown / supported format.

 MacBook-Pro-de-joanot$ JLinkExe -device nrf51822_xxaa -if swd -speed 4000
SEGGER J-Link Commander V4.96i ('?' for help)
Compiled Feb 19 2015 11:47:35
Info: Device "NRF51822_XXAA" selected.
DLL version V4.96i, compiled Feb 19 2015 11:47:28
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 28 2014 10:32:04
Hardware: V1.00
S/N: 681968347 
VTarget = 3.300V
Info: Found SWD-DP with ID 0x0BB11477
Info: Found Cortex-M0 r0p0, Little endian.
Info: FPUnit: 4 code (BP) slots and 0 literal slots
Cortex-M0 identified.
Target interface speed: 1000 kHz
J-Link>loadbin s110_nrf51822_7.1.0_softdevice.hex 0
Halting CPU for downloading file.
Downloading file [s110_nrf51822_7.1.0_softdevice.hex]...Info: J-Link: Flash download: Flash download into internal flash skipped. Flash contents already match
Info: J-Link: Flash download: Total time needed: 0.326s (Prepare: 0.087s, Compare: 0.231s, Erase: 0.000s, Program: 0.000s, Verify: 0.000s, Restore: 0.007s)
O.K.
J-Link>loadbin loadbin Blinky_ble.hex 0x16000
Downloading file [loadbin]...File is of unknown / supported format.
J-Link>
Parents Reply
  • ok that's good - however it's also rather strange as RKNRFGO just internally converts the HEX file to a binary one (actually more than one in some cases) and then calls JLinkEXE with a bunch of commands to upload the collection of bin files.

    If it can read the HEX file then it must be valid, so JLinkEXE can read it too.

    Can you repost the output/error you're now getting after you fixed the doubled-up loadbin error, it really ought to 'just work'.

Children
No Data
Related