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.

Fatal Error[e72]

Other Parts Discussed in Thread: CC2540

Hello,

   I get this error message when i try to compile keyfobdemo code on iar "Fatal Error[e72]: Segment SLEEP_CODE must be defined in a segment definition option (-Z, -b or -P)"

pls can someone assist me to solve the problem.

 

From Matthew 

  • Hi Matthew,

     

    From reading some posts on the internet regarding IAR Error[e72] 

    (This error generated by the linker) the problem appears to be in

    the .xcl description file of your device. It may be related to the fact

    your are using an old version of IAR (do you?).

     

    This information won't solve your problem, however it may give

    give you something to begin with.

     

    Br,

    Igor

  • Hello Igor,

     

    Thanks for ur response.  I am using version iar 7.60 Ev

     

    From matthew

     

     

  • Hi Matthew,

     

    Here's what TI recommends to do:

     

    In order to build all projects, be sure to upgrade and have IAR v7.60 (check!).

    Also, be sure to download and install all of the latest patches from IAR for

    full CC2540 support. Do you have the last updates?

     

     

    Edit:

    One more thing:

    Open "project options" (Alt+F7), go to the Linker menu->Config (tab)->

    linker command file (sub menu). Is the override default checked?

    and what is the device in the override line?

     

    Br,

    Igor

  • Hello Igor

    i used 4101.EW8051-7.60.6-EV patch file but this time around i get an error Error[e46]: Undefined external "primaryServiceUUID" referred in accelerometer ( C:\Users\matthew\Desktop\research thesis\Keyfobdemo\Projects\ble\KeyFob\CC2540DB\CC2540DK-mini Keyfob Slave\Obj\accelerometer.r51 )
     from matthew

  • Hi Matthew,

     

    Try to do the following:

    Go to the accelerometer.c, find there primaryServiceUUD, select this constant,

    click on right button and then click on "Go to definition of primaryServiceUUID".

    Is it jumps to gat_uuid.c and shows you this code:

    /**

     * GATT Attribute Types

     */

    // Primary Service UUID

    CONST uint8 primaryServiceUUID[ATT_BT_UUID_SIZE] =

      LO_UINT16( GATT_PRIMARY_SERVICE_UUID ), HI_UINT16( GATT_PRIMARY_SERVICE_UUID ) 

    };

    Br,
    Igor