Compiler warnings. Help needed!

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Compiler warnings. Help needed!

799件の閲覧回数
miguelallende
Contributor I

Hello.

I'm compiling a big code using the motor control toolbox and I receive a message in the matlab command window while compiling:

 

#   Optimizer computes it would need more than 172M of memory to compute 

#   memory def-use chains.  Some optimizations disabled

#   Limit currently set to 150M

#   Increase limit using '#pragma opt_usedef_mem_limit 172'

 

The .elf file is generated but the microcontroller doesn't start. If I modify the code (deleting some tables) the warning disappear and the microcontroller works. The .elf dile is 661kB and the micro memory is 1MB so I'm not running out of memory.

Do anyone knows how to increase this limit for compiling the complete code?.

 

Thanks in advance.

Miguel.

ラベル(1)
0 件の賞賛
0 返答(返信)