This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems with CRC table

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.

0