This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

simpleBLEperipheral using OAD: linker error when OAD_KEEP_NV_PAGES is disabled

Other Parts Discussed in Thread: CC2540

Hello,

I have

Fatal Error[e72]: Segment BLENV_ADDRESS_SPACE must be defined in a segment definition option (-Z, -b or -P)

when link simpleBLEperipheral with OAD and OAD_KEEP_NV_PAGES is disabled.

So how to fix the problem?

Thanks,

Alex.

  • Are you using IAR 8.20.2? The BLEv1.4.0 release should be built with IAR 8.20.2, and you may see linker issues is using the wrong version.

  • I'm using IAR 8.30.3. So I'll downgrade IAR to 8.20.

    Thanks.

  • HI all,

    I have learned the hard way that being lured by 'new updates' available for the IAR compiler are very misleading and had to go through removing my so called updates. So now I'm back at 8.20.2 of the IAR Compiler and working with TI v1.4 Stack for the CC2540 (256KB device)

    Unfortunately, opening your project with a newer version of the compiler update means it gets updated, so even if you revert back to older version of the compiler, you will no longer be able to open you 'old' project even though you have gone back to the 'old' IAR compiler.

    As a result of this I have lost all of my project settings after having gone back to 8.20.2 compiler, so I'm trying to rebuild my project. Looks like I'm not quite there yet as I'm getting this Linker error, too  :(


    "Fatal Error[e72]: Segment BLENV_ADDRESS_SPACE must be defined in a segment definition option (-Z, -b or -P) "

    Can you please tell me if these are correct;


    1. In my Project OPTIONS/Linker (I have LInker Configuration File (Override default checked and in the field is "$TOOLKIT_DIR$\config\devices\Texas Instruments\lnk51ew_CC2540F256_banked.xcl"

    2. In my Project OPTIONS / Debugger / Device Description file (also Override default checked with "$TOOLKIT_DIR$\config\devices\Texas Instruments\ioCC2540F256.ddf"

    Are these correct?? If so any idea what may be causing the above Linker error (e72) ??

    Thank you in advance.