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

why does the supplied ble_app_hrs_c not even work with it's own development board?

I'm trying to load ble_app_hrs_c on the nrf51dk and im getting the error

"error: L6047U: The size of this image (34328 bytes) exceeds the maximum allowed for this version of the linker"


doing searches for this error and example shows that the NRF_Logger function was added in after SDK12 to allow for more easier debugging...
it ends up filling up the size limitations of the program or chip? I'm not sure..


thats pretty ironic no?


the only solution stated is to disable nrf_logging in the sdkconfig file.. this works........... but makes the whole example pointless because i dont have uart...

im very confused by this, why would the nrf51dk examples not even work with the nrf51dk and provide pointless workarounds?
Parents
  • No it doesn't fill up the chip - it exceeds the link size of the free version of Keil, which is a limitation of the free version of keil. That's the error message you're getting.  The code compiles perfectly fine with GCC, with a licensed version of Keil or IAR or, with the most recent versions of the SDK, Segger Embedded Studio, which is free for Nordic Development work. 

    So either buy a Keil license or compile it with another toolchain. I recommend the latter as Keil is .. 'orrible. 

Reply
  • No it doesn't fill up the chip - it exceeds the link size of the free version of Keil, which is a limitation of the free version of keil. That's the error message you're getting.  The code compiles perfectly fine with GCC, with a licensed version of Keil or IAR or, with the most recent versions of the SDK, Segger Embedded Studio, which is free for Nordic Development work. 

    So either buy a Keil license or compile it with another toolchain. I recommend the latter as Keil is .. 'orrible. 

Children
Related