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.

OAD in CC2541

Hi,

I read the "Developer's guide for OAD for CC254x" document.

My application size is 154 KB at the moment and i want to do OAD of my application.

As i read in the document code space is divided between image A and B equally which is around 126 KB. 

Please suggest how can i do OAD with this ?

Regards,

Smitesh mali

  • Hello Smitesh,

    Section 12 on Page 11 of that guide details how to maximize image B while minimizing image A.  There was a posting that addressed the issue here:

    http://e2e.ti.com/support/low_power_rf/f/538/t/246875.aspx

    Another option is to change the optimization settings in IAR and see if that results in a more compact code.  There is usually a trade off for speed vs size.

    You can also try writing tighter code.  Depending on you level of familiarity with ASM, you can optimize your code by writing certain portions of it in assembly.

    Thanks,

  • Hi greenja,

    Thanks for your reply.

    In IAR i had already kept "high optimization".

    Other thing is that i am using "SimpleBLECentral" project.

    Stack of this project occupies around 121 KB.

    I have added peripheral files like "Keyfob_config.c" , "keyfob_peripheral,c" and "peripheral.c"

    to work in both central and peripheral mode.

    It makes around 134 KB code size.

    My application occupies only 20 KB out of 154 KB.

    How can i reduce ble stack code to reach under 126 KB