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.

Compiler/CC2650MODA: Stack and App image sizes and Flash size

Part Number: CC2650MODA
Other Parts Discussed in Thread: BLE-STACK, CC2650STK, CC2650

Tool/software: TI C/C++ Compiler

Hello,

The flash size is 128K on CC2650MODA. Our stack image size (ble_stack.hex) is about  145K, Our App image size (ble_app.hex) is about 180k.  The two images is more than 325k. The images are loaded onto our board and run just fine. How does this 325k image fit into 128K flash? When I build the images, there is no select build configuration as Release or Debug. 

Thanks,

Cindy Zhao

  • Hi Cindy, 

    Assigning an expert to comment. 

    Thanks, 
    Elin

  • Hi Cindy,

    The hex files contain meta data that the debugger uses when programming the device, not just code. This is why the hex file size is larger than the device flash. You can read more about the hex file format e.g. on wikipedia:

  • Hi Marie,

    Thanks for the quick reply.

    I have two questions on this topic.  We use CCS 10.0.  I am wondering if you have information on

    1. How could I find the ROM size of the firmware image ? 

    2.  We plan to use uart interface to upgrade firmware.  How to generate .bin file? 

    Thanks,

    Cindy

  • Hi Cindy,

    1) Please look at the .map file. All objects stored in ROM have an address that starts with 0x10.

    2) We have notes on how to create a merged bin file for the app + stack image in the OAD User's Guide, found in the docs folder of the BLE-Stack.

  • Hi Marie,

    Thank you very much for the help!

    I read the OAD User's guide.  Just we might not be able to use OAD in our firmware upgrade. Our project is based on sensorTag and the build configuration is FlashOnly_OAD. Currently we plan to use serial bootloader to upgrade our firmware.  I am trying to find the app notes or user guide on how to change the build configuration to FlashOnly, so far no luck on this.  Could you please let me know if you have the links to the docs on this topic?

    Have a wonderful day!

    Thanks,

    Cindy

  • Hi Cindy,

    There are two versions of the Sensortag project; one made for the CC2650 Launchpad (cc2650lp) and one made for the CC2650 SensorTag board (cc2650stk). If you use the cc2650stk version you will be able to choose the FlashROM build configuration.

  • Hi Marie,

    Your information is really helpful! 

    Thank you very much!

    Cindy