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

Have a problem with compile under GCC

Hey everyone, I'm trying to compile blinky example, using ARM on Mac OS X. I use st-link 2 to flash it. So, the first when I do 'make' command I've got errors

Makefile:220: Cannot find include folder:  ../../../config/ble_app_hrs_pca10028_s130
Makefile:220: Cannot find include folder:  ../../../config

So, I changed this lines for ../config \

It was compiled without errors, but when I flashed it with openocd I did nothing....

I don't see led blink, the same errors with other examples, i.e. hrm, when I flash my board with hex which was come with SDK, everything is ok, but my compiled files don't work

Moreover, makefile has 51422 instead of 51822

Parents
  • The Makefile errors are a issue in SDK 12. Nordic are aware of this (as I reported it) and I believe it will get fixed in a later release of the SDK.

    You can ignore those errors or just remove those lines from the Makefile

    Re: Code not running

    The SDK code is targetted at the QFAC device with 32k RAM. If you are using an nRF51822QFAA it will not work

    This can be fixed for the Blink example by changing the linker file and reducing the RAM size by 0x4000

    However, the other possible cause is that your nRF51822 device is too old if its a QFAA

    You need to have QFAAH0 or newer to use V12 of the SDK with the S130 SD

    Another possible cause of problems is that you have not actually managed to upload the code or the soft device

    I presume you have pre-flashed the S130 V2.0 SD to the device and also you have read back the chip to confirm that the SD is installed.

    Then you need to do the same thing with the application code.

    I'd also recommend you think about using some other method to upload, e.g. BlackMagic Probe - as I think that can be flashed to the STlink hardware

Reply
  • The Makefile errors are a issue in SDK 12. Nordic are aware of this (as I reported it) and I believe it will get fixed in a later release of the SDK.

    You can ignore those errors or just remove those lines from the Makefile

    Re: Code not running

    The SDK code is targetted at the QFAC device with 32k RAM. If you are using an nRF51822QFAA it will not work

    This can be fixed for the Blink example by changing the linker file and reducing the RAM size by 0x4000

    However, the other possible cause is that your nRF51822 device is too old if its a QFAA

    You need to have QFAAH0 or newer to use V12 of the SDK with the S130 SD

    Another possible cause of problems is that you have not actually managed to upload the code or the soft device

    I presume you have pre-flashed the S130 V2.0 SD to the device and also you have read back the chip to confirm that the SD is installed.

    Then you need to do the same thing with the application code.

    I'd also recommend you think about using some other method to upload, e.g. BlackMagic Probe - as I think that can be flashed to the STlink hardware

Children
Related