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/CCSTUDIO-C2000: Program size can't be fitted into flash sector due to single obj is too big

Part Number: CCSTUDIO-C2000

Tool/software: TI C/C++ Compiler

Lately, i have been developing firmware application on one of the C2000 chipset which is TMS320F280049C.

I have written quite a lot of source code inside a single c source file, be it "userdefined.c".

Then when i do the compiling, i bumped into an issue which indicated that my userdefined.obj is exceeding the the flash sector size which is 4096.

Moving some of the code inside the userdefined.c into userdefined_2.c solved the issue.

Question, is there any linker method to overcome this without splitting my oversize .c file into 2 or more to solve the issue that "text can't be fitted into memory region"?