I have a C8051F340 cygnal processor and a section of code that does a CRC calculation. The calculation uses a 256 variable 16 bit integer thats initialized at compile time. Like this: static const uint16_t fcstab[256] = { initialization values };
The code compiles, but locks up before it gets to main with this variable and its initialization. If i take out the initialization and leave the variable simply declared, the code runs fine.
I've tried pdata, and idata keywords, but it seems like the array is too large. Any ideas? Thanks.