SWRA845 June   2026 CC2340R5 , CC2745R10-Q1

 

  1.   1
  2.   Abstract
  3. 1Links to Hardware and Software Design References
    1. 1.1 Data Sheet and User Guide
    2. 1.2 Required and Recommended Software for Environment Setup
    3. 1.3 SDK Examples
    4. 1.4 Hardware Design References
    5. 1.5 Power Calculator Table
    6. 1.6 Links to Product QDID Certificates
    7. 1.7 HSM (CC2745) Certification
  4. 2CCS 20.0-Based Debugging Methods
    1. 2.1 How to Map a Project File to the Customer's Own Board
    2. 2.2 Evaluating RAM Consumption and Checking for Stack Overflow With Map File and ROV
    3. 2.3 How to Port Your Project in CCS 12.x to CCS 20.x for Debugging
    4. 2.4 Performing Chip Erase on the CC2745
    5. 2.5 How to Debug a Project (.out) Directly in CCS 20.x Without Importing Project Code
    6. 2.6 How to Verify Whether the Chip's RF Is Working Properly
  5. 3FAQs for Development Using CC2340 and CC2745
    1. 3.1  Why Does the Program Fail to Run Correctly Although It Has Been Successfully Flashed via UniFlash or CCS
    2. 3.2  How to Change the Tx Power for Bluetooth Devices
    3. 3.3  Why Does My Program Enter iCall_abort
    4. 3.4  How to Debug a Project with MCUboot
    5. 3.5  How to Adjust the Flash Location and Size of the App in an OAD Application
    6. 3.6  How to Customize a Section in .cmd and Use it in Code
    7. 3.7  How to Use the Non-initialized Variable Section
    8. 3.8  How to Simultaneously Send Two ADV Sets With Public and RPA Addresses
    9. 3.9  What is the Difference Between E0 and E1 on the CC2745R10 Chip
    10. 3.10 How to Enable More DMA Channels to Support My Driver Requirements

How to Customize a Section in .cmd and Use it in Code

In some project implementations, engineers want to allocate a section of their own data space to support the application, and this section is defined by a specific start address and end address. To do this, declare a new section space in the SECTIONS section of the .cmd file.

A .cmd file is a linker command file that allocates specified sections to Flash or SRAM. For information on how to use this file, see also the reference document Linker Command. Regarding Linker Command files, the primary focus is on understanding and using the Memory and Section modules. For detailed guidance, see also the Memory User Manual and the Section User Manual.

SECTIONS
{
	.mysection :
{
	__my_section_start__ = ;
*(.my_section)
__my_section_end__ = .;
} > RAM
}

In the code, use extern uint8_t __my_section_start__; and extern uint8_t __my_section_end__; to reference it.