Tool/software: TI C/C++ Compiler
I am using CCS Version: 7.1.0.00016
I am getting following error:
>> Compilation failure
subdir_rules.mk:16: recipe for target 'Control.obj' failed
INTERNAL ERROR: C:\ti\ccsv7\tools\compiler\ti-cgt-c2000_16.9.1.LTS\bin\cg2000.exe experienced a segmentation fault
while processing function _USER1_ISR
This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.
The problem is #pragma INTERRUPT:
#pragma CODE_SECTION(USER1_ISR, ".TI.ramfunc");
#pragma INTERRUPT(USER1_ISR, HPI);
void USER1_ISR(void)
{
// some code is here
}
If change to following, the project compiles without error:
#pragma CODE_SECTION(USER1_ISR, ".TI.ramfunc");
//#pragma INTERRUPT(USER1_ISR, HPI);
interrupt void USER1_ISR(void)
{
// some code here
}
I tried adding both interrupt keywords:
#pragma CODE_SECTION(USER1_ISR, ".TI.ramfunc");
#pragma INTERRUPT(USER1_ISR, HPI);
interrupt void USER1_ISR(void)
{
// some code here
}
It created the same error.
However, I do want to use fast switching that I do not get without the #pragma . How do I fix this problem?
Thank you.
Gasha