Hello!
Line Fapi_FlashBankSectorsType sectors={};
forces TI compiler (5.2.6 and 5.2.7) to crash.
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.
Hello!
Line Fapi_FlashBankSectorsType sectors={};
forces TI compiler (5.2.6 and 5.2.7) to crash.
To address your issue, we need to reproduce it. To reproduce it we need a test case. Please submit a preprocessed form of the source file which causes the crash. Also show the build options exactly as the compiler sees them.
Thanks and regards,
-George
Code is very simple. I mean crash is related to specific compiler options.
typedef struct { int f1; int f2; } s_t;
static s_t var={};
Preprocessed form:
typedef struct { int f1; int f2; } s_t;
Command line:
C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.7\bin>armcl --check_misra="2.1,2.3,4,6.2" --preproc_with_compile --preproc_with_comment test.c
INTERNAL ERROR: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.7\bin\armacpia.exe experienced a segmentation fault
while processing function (unknown or file scope) file test.c line 6
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.
>> Compilation failure
Thank you for submitting a test case. I can reproduce the same result. I filed SDSCM00052854 in the SDOWP system to have this investigated. You are welcome to follow it with the SDOWP link below in my signature.
Thanks and regards,
-George