Motor Controllers: STM3210B-MCKIT: Error Example Designs don't link
Company  
ST Home | Microcontrollers

Index  »  Motor Control  »  Motor Controllers: STM3210B-MCKIT: Error Example Designs don't link
     
   Motor Controllers: STM3210B-MCKIT: Error Example Designs don't link
 Moderated by :   »  tanio  -  arnaudus  -  payet

Author
beginning argument    ( Replies received: 5 )
orion   Posted 03-03-2008 at 07:01   



Registered on :
03-03-2009

Messages : 5

 OFF-Line

Hello,

I am unable to build the PMSM and ACIM examples included with the kit without making any modification.

That's not completely true. If I build them once, no errors are reported. If I build them a second time, (just by pushing the "build" button. No other modification) For the PMSM, I get the following messages
Error[Li005]: no definition for "STO_Init" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\Obj\main.o]
Error[Li005]: no definition for "STO_InitSpeedBuffer" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\
Obj\main.o]
Error[Li005]: no definition for "STO_Get_Speed" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\Obj\
MC_State_Observer_Interface.o]
Error[Li005]: no definition for "STO_Gains_Init" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\Obj\
MC_State_Observer_Interface.o]
Error[Li005]: no definition for "__program_start" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\Obj\
stm32f10x_vector.o]
Error[Li005]: no definition for "STO_Get_Electrical_Angle" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\
Debug\Obj\stm32f10x_it.o]
Error[Li005]: no definition for "STO_Get_wIalfa_est" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\
Obj\stm32f10x_it.o]
Error[Li005]: no definition for "STO_Get_wIbeta_est" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\
Obj\stm32f10x_it.o]
Error[Li005]: no definition for "STO_Get_wBemf_alfa_est" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\
Debug\Obj\stm32f10x_it.o]
Error[Li005]: no definition for "STO_Get_wBemf_beta_est" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\
Debug\Obj\stm32f10x_it.o]
Error[Li005]: no definition for "STO_Calc_Rotor_Angle" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\
Debug\Obj\MC_State_Observer_Interface.o]
Error[Li005]: no definition for "STO_IsSpeed_Reliable" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\
Debug\Obj\MC_State_Observer_Interface.o]
Error[Li005]: no definition for "STO_Calc_Speed" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\Obj\
stm32f10x_Timebase.o]
Error[Li005]: no definition for "STO_Gains_Update" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\Copy of stm32 foc firmware libraries v1.0\STM32_FOC_PMSM\EWARM\Debug\
Obj\MC_State_Observer_Interface.o]

Analyzing the code, shows that, aside from .h files, there is no definition of these functions. Indeed, if I search for files containing the words STO_Init, no .c file exist which defines these function. There is a MC_State_observer_lib.r79 which I'm unable to link in using the IAR tool. Is there something I'm doing wrong here?


For the ACIM example, again it builds fine the first time, but on the second build I get the following error.

Building configuration: STM32_FOC_ACIM - Release
Updating build tree...
Linking
Error[Li005]: no definition for "__program_start" [referenced from C:\Program Files\STMicroelectronics\STM32MC-KIT\
Copy of stm32 foc firmware libraries v1.0\STM32_FOC_ACIM\EWARM\Release\Obj\stm32f10x_vector.o]
Error while running Linker


Pleae help.

Thanks,



 Profile   Quote  
orion   Posted 03-03-2008 at 07:37   



Registered on :
03-03-2009

Messages : 5

 OFF-Line

I think I solved the problem for the ACIM example.

Turns out that one of the grayed out options under projects/options/linker is to start at "__iar_program_start".

So, if I add the following line to stm32f10x_vector.c

#define __program_start __iar_program_start

The project compiles. I'll see if it runs/debugs tomorrow.

Still stuck with PMSM example though. Any help would be appreciated. Also any explanation as to how the project determines entry symbols would be comforting too.

Thanks,
O..



 Profile   Quote  
Billino   Posted 03-03-2008 at 11:24   



Registered on :
02-04-2005

From Italy

Messages : 9

 OFF-Line

Hello Orion,

I believe the problems you're facing are related to the EWARM version you're using. The code your trying to compile is compatible with EWARM version 4.42 (still available for download at www.iar.com) and not with version 5.11 (latest from IAR).
I'd suggest you to check for the tool version by opening the IDE and clicking on "About" in the "Help menu".

I hope it will help you.
Regards,
Lino











 Profile   Quote  
Billino   Posted 03-03-2008 at 11:24   



Registered on :
02-04-2005

From Italy

Messages : 9

 OFF-Line

Hello Orion,

I believe the problems you're facing are related to the EWARM version you're using. The code your trying to compile is compatible with EWARM version 4.42 (still available for download at www.iar.com) and not with version 5.11 (latest from IAR).
I'd suggest you to check for the tool version by opening the IDE and clicking on "About" in the "Help menu".

I hope it will help you.
Regards,
Lino











 Profile   Quote  
orion   Posted 06-03-2008 at 22:54   



Registered on :
03-03-2009

Messages : 5

 OFF-Line

Yes, reverting to the previous version compiles links and debugs correctly.

Thanks,
O..



 Profile   Quote  
cumthk   Posted 24-09-2008 at 08:20   



Registered on :
08-29-2009

Messages : 3

 OFF-Line

Dear all..
I can't find (UM0483: STM32F103xx AC induction motor IFOC software library V2.0) and (UM0492: STM32F103xx permanent-magnet synchronous motor FOC software library V2.0)in web site. Please help me find it. Or send them to me. Email:houkun@vista.aero. THANKS~~~

Best Regards
HouKun



 Profile   Quote  
On Top

Search in the forums
 
Jump To