How to initialize large Array
Posted: Mon Nov 26, 2018 8:40 pm
Hi
I need to initialize very large array, up to 2048 value.
The data are in this format
ARRAY [] =
0x00, 0x00, 0x00, 0x00, 0x00,
0xFE, 0xE0, 0x00, 0x00, 0x00
0xFF, 0x5C, 0x00, 0x00, 0x00,
0xFF, 0xF5, 0x08, 0x20, 0x00,
0xFF, 0x38, 0x00, 0x00, 0x00,
0xFF, 0x80, 0x00, 0x00, 0x00,
I initialized the array with the C code using this instruction
array [430] = {0x00, 0xFF ....};
but without success.
The compilation does not report errors, but the array is not initialized
any suggestions?
Thanks in advance
I need to initialize very large array, up to 2048 value.
The data are in this format
ARRAY [] =
0x00, 0x00, 0x00, 0x00, 0x00,
0xFE, 0xE0, 0x00, 0x00, 0x00
0xFF, 0x5C, 0x00, 0x00, 0x00,
0xFF, 0xF5, 0x08, 0x20, 0x00,
0xFF, 0x38, 0x00, 0x00, 0x00,
0xFF, 0x80, 0x00, 0x00, 0x00,
I initialized the array with the C code using this instruction
array [430] = {0x00, 0xFF ....};
but without success.
The compilation does not report errors, but the array is not initialized
any suggestions?
Thanks in advance