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.

>> INTERNAL ERROR: Space required for local variables exceeds maximum in _main

Guru 15580 points
Can someone help me diagnose this problem? CCSv5.1, C5515.
>> INTERNAL ERROR: Space required for local variables exceeds maximum in _main

This may be a serious problem. Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.

Cannot continue compilation - ABORTING!
  • Mike,

    Please send us the source file that generates this error along with the compile options used so we can reproduce the problem. The best would be a preprocessed file. Please see this page for information on how to create a preprocessed file. If you prefer to not attach it to the forum, you can share it via private conversation.

  • That message means you've got too many local variables in your function.  C55x can't handle a call frame that large.  You'll need to make some of them static local or global variables, or dynamically allocate them.