This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compiling code

I got pca10040 dk and I am trying to run the code that was sent to me earlier by one of nordic employee. I could compile it without errors but I cant see any advertising data in the nrf connect app.

I am using nrf52 now and sdk 12.2.0.

I have made a case and my case and case number is 34506. I am posting here because I am getting faster response here.

The soft device that I am using is C:/Users/Ambimat/Desktop/abcd/components/softdevice/s132/hex/s132_nrf52_3.0.0_softdevice.hex

Thanks,

Shailav

Parents
  • Hi,

    From the build-log in the project you uploaded, you have the following linking error:

    linking...
    .\_build\nrf52832_xxaa.axf: error: L6050U: 
    The code size of this image (52380 bytes) exceeds the maximum allowed for this version of the linker.
    Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
    ".\_build\nrf52832_xxaa.axf" - 1 Error(s), 0 Warning(s).
    

    The evaluation version of Keil does not support program size of more than 32 kB. So you will have to buy a Keil license if you want to build projects above 32 kB with Keil.

    The other alternative is to switch to build tools that are not size limited, such as GCC or Segger Embedded Studio. You can find a tutorial on setting up GCC with Eclipse here, and a guide for setting up Segger Embedded Studio here.

  • Hello, Yes in the keil I am getting that error but I am using armgcc make file to build. I am uploading my code to controller via cmd line using command nrfjprog --family <nRF51/52> --program _build/.hex So code size is not a problem for me. Thanks

Reply
  • Hello, Yes in the keil I am getting that error but I am using armgcc make file to build. I am uploading my code to controller via cmd line using command nrfjprog --family <nRF51/52> --program _build/.hex So code size is not a problem for me. Thanks

Children
No Data
Related