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

PCA10000 and SDK 11

I'm trying to build the blinky example in SDK 11 and load it onto a PCA10000. I'm using the make file in PCA10031/blank/armgcc and am building this under linux. If I use blinky_blank_pca10031.hex which is in the hex directory, then I can load and run this using JLinkExe. Can anybody help explain what I am doing wrong. Thanks

  • Not really - because there's far too little information in your question. You say you are trying to build the example, but you don't say what the problem is, is it not building at all, does it not work, in what way does it not work if it doesn't work, are there make errors, run errors, does the chip burst into flames?

  • Thanks for responding. My dev machine is running Ubuntu 15.04. I have downloaded and installed the SDK11, J-Link tools, and the armgcc tools and I am using the PCA10000. My aim is to use the blinky example to make sure that my dev environment is working correctly and also program the PCA10000. In the SDK, I navigate down to:

    ~/SDK11/examples/peripheral/blinky/hex
    

    I then run:

    JLinkExe -device nRF51
    

    This allows me to connect to the PCA10000.

    I then:

    loadfile blinky_blank_pca10031.hex
    

    I then run erase, then enter r, then g (as per devzone.nordicsemi.com/.../7). The LED on my PCA10000 changes colour as I would expect so I can see that ~/SDK11/examples/peripheral/blinky/hex/blinky_blank_pca10031.hex and my steps to program it to my board and run it are working correctly. I exit JLinkExe.

    I then navigate to: ~/SDK11/examples/peripheral/blinky

    I modify main.c to change the delay in order to get the LED to flash quicker (again, this is merely to prove my dev environment).

    I save the file then navigate to:

    ~/SDK11/examples/peripheral/blinky/pca10031/blank/armgcc
    

    I then run:

    make
    

    This generates a directory called _build and everything appears to build correctly. This contains .hex .out .bin .map and some other files from the make process. I navigate to:

    ~/SDK11/examples/peripheral/blinky/pca10031/blank/armgcc/_build
    

    I then run:

    JLinkExe -device nRF51
    

    I then:

    loadfile nrf51422_xxac.hex
    

    I then erase, enter r, then enter g. Nothing happens. No flashing LED, flames, sparks or explosions.

    I assume that blinky_blank_pca10031.hex was generated using IAR or Keil and so can't really tell much from comparing the .hex files other than to say that they're both very similar in size.

    I have tried to copy:

    ~/SDK11/examples/peripheral/blinky/pca10031 to ~/SDK11/examples/peripheral/blinky/pca10000
    

    I have changed any references of pca10031 to pca10000 and rerun the make file but with no success.

    Am I missing a step or am I not editing the correct files? Any help is much appreciated.

    Thanks.

  • You first loadfile and then you erase the chip? Have you tried to run a self build hex file, without modifying the source? (just to make sure, that your process is working)

  • What do you mean by run a self build hex file?

  • Take the original source, build the hex file from source and try to run it. Just to make sure, that your code changes are not the reason, for the failure.

Related