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.

TMS320F28374S: The BIN file generated by ccs is too large

Part Number: TMS320F28374S


Tool/software:

Hello, experts from Texas Instruments!

I have a question about CCS,When I added some code,the BIN file generated by ccs is too large.

Theoretically, the size was 224kb, but now it has become 1300kb.

I once encountered this problem, which was related to the size of the RAM. I increased the size allocated to the ARM, and the problem was solved. Now it has occurred again, but it seems that the allocated ARM space is large enough. I want to know what the reason is and the corresponding solution.

The following a part of cmd files:

PAGE 0 :

/* --- 保留 BOOT 相关段(起始地址更改扇区) --- */
BEGIN : origin = 0xA0004, length = 0x000002 
FLASH_APP_START : origin = 0xA0000, length = 0x000001 
/* --- 扩展 FLASH_APP_CPU 和 FLASH_APP_CLA --- */
FLASH_APP_CPU : origin = 0xA0006, length = 0x019000 
FLASH_APP_CLA : origin = 0xB9006, length = 0x002FF8 
FLASH_APP_END : origin = 0xBBFFF, length = 0x000001 
RESET : origin = 0x3FFFC0, length = 0x000002 

/* --- 调整 RAMD0 和 RAMGS0 --- */
RAMD0 : origin = 0x00B000, length = 0x004000 // 原 0x000400 → 4KB 扩展为 16KB 仅用于高频数据
// RAMD1 : origin = 0x00B800, length = 0x00800
RAMGS0 : origin = 0x00F000, length = 0x007800 // 原 0x00A800 → 42KB 减小为 30KB(用于全局变量)

//栈 及 CLA-RAM
RAMM0 : origin = 0x000123, length = 0x0002DD 
RAMM1 : origin = 0x000400, length = 0x0003F8
RAMLS0 : origin = 0x008000, length = 0x000800 //CLADataLS0
RAMLS1cpu : origin = 0x008800, length = 0x000800 //CLADataLS1
RAMLS2 : origin = 0x009000, length = 0x002000 //Cla1Prog RAMLS2

SECTIONS

{

#if defined(__TI_EABI__)
.init_array : > FLASH_APP_CPU, PAGE = 0, ALIGN(8)
.bss : > RAMD0, PAGE = 0
.bss:output : > RAMD0, PAGE = 0
.sysmem : > RAMM1, PAGE = 0
.data : > RAMGS0, PAGE = 0

.const : > FLASH_APP_CPU, PAGE = 0, ALIGN(8)

}

Best Regards,

liusuhefeng