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/TM4C1294KCPDT: Array initialization with TIVA part

Part Number: TM4C1294KCPDT

Tool/software: TI C/C++ Compiler

Hi Support,

my customer need to initialize arrays as following,(standard C) but compiler is giving errors:

  

and the compiler is set as following.

can you kindly help me to identify the issue?

Thanks

Alberto

  • Alberto Soattin said:
    my customer need to initialize arrays as following,(standard C) but compiler is giving errors:

    The #include has to be on a line by itself. E.g. the following compiles, where the ParameterHeader.csv file contained just a comma-separated list of integers:

    const char csv_header[] =
    {
    #include "ParameterHeader.csv"
    };