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

nrf52 Serialized projects exceed 32k code limit

Hi, I am trying to use the nrf52 in serialized mode, where I was successfully able to program the connectivity board (using SDK 11.0.0) However if I try to load any of the example code using Keil MDK5 on the Application board, I usually get "The code size of this image exceeds the maximum allowed for this version of the linker." I tried few of the examples and all gave me the same error.

This seems very strange given that I can compile and download the example without problems if just run code on one board but exceeds size limit if I run it as serialized projects. Can anyone tell me why these projects are so big? I am at early stage of development and I don't want to buy a Keil license just to compile example projects.

  • Hi,

    If the code size limitation of the free Keil version is limiting, you can use build tools that are not size limited, such as GCC. You can find a good tutorial on setting up GCC with Eclipse here.

    Best regards,

    Øyvind

  • Thank you very much! That tutorial was fantastic. One of the easiest to setup for eclipse and arm and I have had to setup toolchains for both ST and Freescale micros before. I am very happy with the support you guys have provided with the nrf52. Keep up the great work guys!

    -Rup

  • Also, I would like to add, it would be great if you guys provided the .cproject and .project files, just like the makefile for the example projects on the gcc eclipse version. License free IDE is the future!

  • I'll look into this. I suspect that it was decided in order to be equally supportive of all GCC IDEs.