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
  • QFAA = 256 flash, 16k RAM QFAB = 128k flash 16k RAM QFAC = 256k flash 32k RAM

    This information was posted recently in response to another similar question. Its also in the nRF51822 product specification document

    I'm not sure why it used to work in SDK 6, I suspect the linker file was different.

    Just modify you linker file and reduce the RAM size by 0x4000 if you want to try to build for the QFAA

    Note. Some examples will not build with only 16k and you will get a linker error. e.g. The proximity example would not build for me when I changed the linker file to support QFAA

Reply
  • QFAA = 256 flash, 16k RAM QFAB = 128k flash 16k RAM QFAC = 256k flash 32k RAM

    This information was posted recently in response to another similar question. Its also in the nRF51822 product specification document

    I'm not sure why it used to work in SDK 6, I suspect the linker file was different.

    Just modify you linker file and reduce the RAM size by 0x4000 if you want to try to build for the QFAA

    Note. Some examples will not build with only 16k and you will get a linker error. e.g. The proximity example would not build for me when I changed the linker file to support QFAA

Children
No Data
Related