After a forced five-day break for family-related stuff I’m back at it,
The Nordic web-site really is poorly organised. It’s very hard to know where to begin, or how to solve problems.
Today I tried to get the s130 demo app running. This demo app could be very helpful to us because it allows you to simultaneously be a controller, and a peripheral, which is fundamental for our app.
However, most demos are compiled for Keil uVision-5 but this demo has been generated under uVision-4. Of course it doesn’t compile, and I had to install uVision-4 so I could figure out what needed to be changed to make it work. It took all day to downgrade to ‘4’, and I ended up doing a re-install of the whole laptop because the registry got damaged.
Anyway, I manged eventually to install ‘4’, compile it and, <fanfare of trumpets> I managed to get it to output the appropriate diagnostics on the serial port. At least it is saying that the things that I know can’t work, “are not working”, so that’s kind of progress.
Sadly the program cannot be downloaded in the usual way directly from the IDE. You have to use a different manual flashing tool, which is awkward. Worse you can’t debug it with breakpoints and all that stuff. It’s another bloody mess.
I need to get a bunch more parts of the demo working before I can start to understand if it really works, but at least it was a baby step in the right direction.
I have to keep telling myself that each one of these hurdles surmounted, is between us and the folks who may be chasing us.
I sent a query about the flashing to Nordic:
Load “C:\Nordic Semiconductor\nRF51 SDK_v126.96.36.199\Nordic\nrf51822\hex\Example\s130_demo_app\build\S130_demo.axf”
Set JLink Project File to “C:Nordic SemiconductornRF51 SDK_v188.8.131.52Nordicnrf51822hexExamples130_demo_appJLinkSettings.ini”
* JLink Info: Device “NRF51822_XXAA” selected (257 KB flash, 16 KB RAM).
DLL: V4.92 , compiled Sep 30 2014 09:33:42
Firmware: J-Link OB-SAM3U128 V1 compiled Aug 22 2014 17:25:44
S/N : 480209391
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xE00FF003
VTarget = 3.300V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1
JTAG speed: 2000 kHz
Include “C:\Nordic Semiconductor\nRF51 SDK_v184.108.40.206\Nordic\nrf51822\hex\Example\s130_demo_app\s130_demo_loader.ini”
LOAD %L INCREMENTAL
Insufficient RAM for Flash Algorithms !
Error: Flash Download failed – “Cortex-M0”