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 Reply
  • The

    TARGETS           := nrf51422_xxac
    

    line in the makefile is effectively just a name, it is not used to determine which files are included etc and its not a compiler pre-processor define either.

    The HRS peripheral example can definitely be made to work on QFAA just by changing the linker file

    Try SDK 11

    \examples\ble_peripheral\ble_app_hrs\pca10028\s130\armgcc\

    and change ble_app_hrs_gcc_nrf51.ld

    to these settings

    MEMORY
    {
      FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
      RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0x1f80
    }
    

    , and give it a try on your QFAA . It worked for me.

Children
No Data
Related