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
  • That's your problem then, you have TWO loadbin on that line, you want ONE

    J-Link>loadbin loadbin Blinky_ble.hex 0x16000 Downloading file [loadbin]...File is of unknown / supported format.
    

    That command says "please load a file called 'loadbin'" and if you look at the error message it telsl you the file it's trying to download is called 'loadbin'. "Downloading file [loadbin] .. ", not Blinky_ble.hex which is what you actually want to upload.

    it should say

    J-Link>loadbin Blinky_ble.hex 0x16000 
    

    (edited to remove a whole load of typos)

Reply
  • That's your problem then, you have TWO loadbin on that line, you want ONE

    J-Link>loadbin loadbin Blinky_ble.hex 0x16000 Downloading file [loadbin]...File is of unknown / supported format.
    

    That command says "please load a file called 'loadbin'" and if you look at the error message it telsl you the file it's trying to download is called 'loadbin'. "Downloading file [loadbin] .. ", not Blinky_ble.hex which is what you actually want to upload.

    it should say

    J-Link>loadbin Blinky_ble.hex 0x16000 
    

    (edited to remove a whole load of typos)

Children
No Data
Related