cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_FOC_ACIM

nanda
Associate II
Posted on April 11, 2012 at 13:27

helllo, i'm new comer in here. i have project with SMT3210-MCKIT, and i used IAR EWARM 4.42 for compiler. but when i rebuild all program from strarter kit i got error like this :

'' Error[e16]: Segment CODE (size: 0x6780 align: 0x2) is too long for segment definition. At least 0x18e0 more bytes needed. The problem occurred while processing  

the segment placement command ''-Z(CODE)CODE=ROMSTART-ROMEND'', where at the moment of placement the available memory ranges were  

''CODE:20000160-20004fff'' 

   Reserved ranges relevant to this placement: 

   20000000-200000eb    INTVEC 

   200000ec-2000015f    ICODE 

   20000160-20004fff    CODE 

''

anyone can help me with this error ? thank you... 
4 REPLIES 4
bille.stello
Associate III
Posted on April 11, 2012 at 17:33

Hello,

 

it looks like you have exceeded the limitation ok 20k RAM (0x6780 - 0x18e0 = 20kbytes)memory size. Are you sure you didn't add any lines of code?

By the way, as stated in UM0483 (STM32F103xx AC induction motor IFOC software library V2.0 ), library has been validated using  IAR EWARM 5.20 which is a compiler version pretty newer compared to 4.42. Any chance for you to switch to v5.20?

Best Regards,

Billino

nanda
Associate II
Posted on April 11, 2012 at 19:27

ok, anyway thank you for your reply. i have done your suggestion, i used IAR EWARM v5.20. When i was compile there's another error :

''Error[Go013]: Deprecated optimization level ''9'' encountered in #pragma optimize, please use one of none, low,  C:\Program Files\STMicroelectronics\STM32MC-KIT\stm32 foc firmware libraries v1.0\STM32_FOC_ACIM\src\MC_Display.c 84 

''

how can i fix this error ? thank you.

nanda
Associate II
Posted on April 11, 2012 at 19:52

sory because i have many question, if i got error ''Error while running C/C++ Compiler'' it's because what? and how to fix it. thank you

saraaj100
Associate II
Posted on November 04, 2012 at 11:11

Will FOC SDK3.2 will work for 3phase AC Induction Motor. If yes means how. the ST MOTOR CONTROL WORKBENCH software will support for it.

Help me in this regard