Other Parts Discussed in Thread: C2000WARE
Tool/software: TI C/C++ Compiler
Compiler crashes while compiling example C:\ti\c2000\C2000Ware_3_01_00_00\device_support\f2837xd\examples\cpu1\launchxl_f28379d\cpu01\ccs\CPU1_Flash
It crashes on the following code:
F2837xD_Adc.c
------------------------------
oid CalAdcINL(Uint16 adc)
{
switch(adc)
{
case ADC_ADCA:
if(0xFFFF != *((Uint16*)CalAdcaINL))
{
//
//trim function is programmed into OTP, so call it
//
(*CalAdcaINL)();
}
------------------------------
If I comment out this string:
// (*CalAdcaINL)();
then I can compile this module.
I created simple c file to reproduce this problem, generated pp file (during crash) is following:
------------------------------
void f()
{
void (*fun_ptr)(void) = (void (*)(void))0x0703B4;
(*fun_ptr)();
}
------------------------------
Command used for compilation:
C:\Users\Slava\workspace_v10\Test1\Debug>"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/Users/Slava/workspace_v10/Test1" --include_path="C:/Users/Slava/workspace_v10/Test1/f2837xd/common/include/" --include_path="C:/Users/Slava/workspace_v10/Test1/f2837xd/common/deprecated/" --include_path="C:/Users/Slava/workspace_v10/Test1/f2837xd/headers/include/" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all --define=CPU1 --define=_FLASH --define=_LAUNCHXL_F28379D -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment "../compiller_bug.c"
Please, help