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.

CC2540 with IAR Kickstart version 7.60 (code size error)

Other Parts Discussed in Thread: CC2540, SIMPLICITI

Hello,

 

I am trying to get familiar with the CC2540. I purchased the mini dev kit and downloaded IAR kickstart for 8051 version 7.60. I installed what I thought was the latest patch (EW8051-7.60.6-EV). When I tried to compile the included SimpleBLEPeripheral project I get the error "too much object code produced for this package".

 

I know the kickstart version is code limited to 4kb, but is it so limited that I can't even compile the sample application that comes with the dev kit? Or is there something else that might be wrong?

 

Thank you,

Ryan

  • Hi Ryan,

    First of all, there is a compile flag to let you double the allowed code.    However,  this may not guarantee the example still fits within this limitation.

    You will also need to make sure you have all patches for IAR installed (see this post regarding using the --ks_version compile flag)

    http://e2e.ti.com/support/low_power_rf/f/155/p/70559/258913.aspx#258913

    Basically, you should give the --ks_version compile flag a try.   See the attached document

    Cheers,
    Lisa

    6787.IAR_16kB.doc

  • The --ks_version flag still does not give you enough code size for compiling with the the Bluetooth LE stack. As far as I know, it is intended for SimpliciTI. In order to compile with the BLE stack, you will need a full version of IAR. It is possible to download a 30 day trial version. After that, you have to purchase an IAR licence, or use pre-compiled images only.

  • Thanks Lisa and hec,

    I tried the --ks_version command line option and it did increase the size to 16k.  However, like hec said, it's still not enough to compile the sample program. I guess I will have to download the 30 day trial and then try to convince my advisor that I need the full version :)

     

    Thank you for your help,

    Ryan