<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5998/flash-programming-pca10028-on-mac-os-x-file-is-of-unknown-supported-format</link><description>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&amp;gt;loadbin s110_nrf51822_7.1.0_softdevice.hex 0
J-Link&amp;gt;loadbin Blinky_ble.hex 0x16000
J-Link&amp;gt;r</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Mar 2015 07:25:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5998/flash-programming-pca10028-on-mac-os-x-file-is-of-unknown-supported-format" /><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20959?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 07:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e5c2d63-3292-45c1-a018-592bf1f5d8ba</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;ups, true, sorry then for the stupid question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20961?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 07:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3006b01-fcd7-4c89-89c6-30cbc8cb3a82</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s your problem then, you have TWO loadbin on that line, you want ONE&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;J-Link&amp;gt;loadbin loadbin Blinky_ble.hex 0x16000 Downloading file [loadbin]...File is of unknown / supported format.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That command says &amp;quot;please load a file called &amp;#39;loadbin&amp;#39;&amp;quot; and if you look at the error message it telsl you the file it&amp;#39;s trying to download is called &amp;#39;loadbin&amp;#39;. &amp;quot;Downloading file [loadbin] .. &amp;quot;, not Blinky_ble.hex which is what you actually want to upload.&lt;/p&gt;
&lt;p&gt;it should say&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;J-Link&amp;gt;loadbin Blinky_ble.hex 0x16000 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(edited to remove a whole load of typos)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20958?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 07:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb9196c3-dd0e-46eb-b8ec-64c0bb1ce9e8</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;this is the actual output using JLinkExe through command line, that is not working... Do you want the Command log from RKNRFGO that is working ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20957?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 07:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0634a79c-b25e-43b9-845a-3c2b308da1e6</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;ok so what was the actual output then? Can you copy and paste the actual output from the actual failure. This ought to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20960?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 07:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91e45a83-64c1-45e2-80b3-16a04398a0cc</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;this error, the doubled-up loadbin error was a Copy&amp;amp;Paste error
J-Link&amp;gt;loadbin loadbin Blinky_ble.hex 0x16000
Downloading file [loadbin]...File is of unknown / supported format.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20956?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 06:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6850e174-87dd-4ae8-a5b2-d6ef20e05da7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;ok that&amp;#39;s good - however it&amp;#39;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.&lt;/p&gt;
&lt;p&gt;If it can read the HEX file then it must be valid, so JLinkEXE can read it too.&lt;/p&gt;
&lt;p&gt;Can you repost the output/error you&amp;#39;re now getting after you fixed the doubled-up loadbin error, it really ought to &amp;#39;just work&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20955?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 06:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94bd5ed6-3770-49dc-a3a5-45f98971912c</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;The same HEX works fine with RKNRFgo.app. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20943?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 06:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49540eea-c50a-4af2-a388-3076c5694519</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;I understand and every tool is always welcome if it makes live easier. But referring to another tool when nullpointer said he used to use JLink, is not part of the solution. At least I think.
I did not know JLink also could use hex files. Thanks for that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20953?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 06:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2468ba17-7bc9-4d54-95bf-5f647c62d725</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I merely explained what &amp;#39;Larry&amp;#39; meant when he mentioned nrfjprog, or at least what I think he meant. As I said I wish I&amp;#39;d called it something else, like rknrfjprog, but I didn&amp;#39;t at the time and it&amp;#39;s a bit late now. You&amp;#39;re very welcome not to use it, I wrote it for my purposes and made it available for anyone who happened to find it useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20952?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 06:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af8ace7a-8bca-4a76-b4c9-c5652a9003a6</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;@RK: Yes I know about rkntfgo. But this is as I mentioned not nfrprog. Not in name, neither in functionality. Also the JLink tools have much more functionality than your program. It is also not cross-platform and not generic to arm controllers. Therefore using gnu tooling and interfaces like Jlink and OpenOCD (I prefer this one) are a single solution and a much more flexible solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20951?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 00:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef800c18-c4ae-44a9-ba18-cb16a40e547e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;@marcel - rknrfgo, which is a GUI OS X app for flashing chips comes with a mac &amp;#39;version&amp;#39; of nrfjprog (which I really wish I&amp;#39;d called something else as the options aren&amp;#39;t the same as the real one) which can, or not, make life simpler.&lt;/p&gt;
&lt;p&gt;@larry the loadbin command has always been documented to only take a &amp;#39;bin&amp;#39; file however it&amp;#39;s always quite happily allowed hex files too. You shouldn&amp;#39;t need the 0x16000 for  a hex file (hex files know where they live) so you could try removing that. Try &amp;#39;loadfile&amp;#39; instead, see if that works better.&lt;/p&gt;
&lt;p&gt;Last option - you really do have an invalid file - want to post it somewhere? I assume you already fixed the double &amp;#39;loadbin&amp;#39; as the file it&amp;#39;s reporting to be invalid is &amp;#39;loadbin&amp;#39; not your hex file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20950?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 22:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64a0ccb0-3f58-4d7c-98c7-fe7296a14417</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;As I mentioned. You need to convert the hex file to bin. I use objcopy which is part of the gnu tooling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20954?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f608592-30c9-438c-abda-6cbca0095485</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I&amp;#39;ve been using &amp;quot;&lt;a href="http://sourceforge.net/projects/rknrfgo/"&gt;RKNRFgo.app&lt;/a&gt;&amp;quot; and it is loading the device just fine for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20949?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea7b03c8-638d-47e3-8cfd-ab62e00f68c9</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;It was an error ( loadbin 2 times) anyway, I only see the HEX file to download.. &lt;a href="https://github.com/mbedmicro/mbed/tree/master/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_1_0"&gt;github.com/.../s110_nrf51822_7_1_0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20948?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e77cb9-8a0a-4d98-8973-41d0ea73fd31</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;@Larry: there is no nrfprog on a Mac. And why is it simpler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20947?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a4cf78-bdf1-44eb-a02d-c1ee38a0f46c</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;This is wat I do. This is a script called flash-sd.jlink. Works on Mac OS X and Linux&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;device nrf51822
speed 1000
w4 4001e504 1
loadbin s110_nrf51822_7.1.0_softdevice.bin 0
r
g 
exit
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You also do: loadbin loadbin. Why 2 times?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20946?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:067d21a8-bc0a-4af1-bc0a-a431c8ddd80d</guid><dc:creator>Larry</dc:creator><description>&lt;p&gt;have you tried nrfprog? I only use that to program, much simpler that setting up j-link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20945?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 20:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca6621e-3a22-40a2-90dd-0fe2bde4486e</guid><dc:creator>nullpointer</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried with the binary file with the same result: File is of unknown / supported format.
Anyway, I use HEX format for the softdevice and it works fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash Programming PCA10028 on Mac OS X: File is of unknown / supported format</title><link>https://devzone.nordicsemi.com/thread/20944?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 19:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2c0cb43-72a5-408e-8942-45b924f52568</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;You need to convert the intel hex file into a binary file. You can use e.g. objcopy for this.
JLinkExe only supports binary files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>