The General Interest forum is for non-support discussion only. If you have a question about, or need help with a Silicon Labs product, please visit one of the individual product forums.
 

Application engineers do not monitor this forum.
 

View General Interest Board Guidelines ›

Hi Guys,

我目前使用的MCU是EFM32LG330來設計我公司的產品,但在使用Silicon Labs IDE

做編譯時產生錯誤,我的程序如下:

1. Menu Project -> New -> Silicon Labs MCU Project... -> kit(None),Part(EFMLG330F128),EFM32 SDK...

    -> Project setup -> energyAware Designer Project -> Next ->選project路徑後會先產生 PIN diagram我

    按"SAVE"後離開,我將source file *.c,*.h,*.lib全部複製到workspace的\src

2. 接著Menu Project -> Build Project後有叫用*.lib的function name都顯示un-defined的error

請問*.lib(binary code)與其相關聯的.h檔,我要在那邊設定關聯才會解決此問題,謝謝.

 

 

Michael Su

  • Discussion Forums
  • Answered
Answered
  • Hi Michael,

      你用的是最新版本的Simplicity Studio V3么? 我在尝试重复你的步骤时候, 并没有看到energyAware Designer Project的选项. 能否请你查验一下,把详细步骤告知我们.

     

    Thanks.
    Mark

    0
  • Hi Mark,

    我用的是Simplicity Studio V2,請看附件Import_ProjStep1~Import_ProjStep9;

    undefined reference to `PxiAlg_GetMotionFlag'...的error message是有經由.h檔有宣告library function去

    關聯至.lib但complie後有call library的5個function都發生undefined reference...的bug,

    所以請問我library與其H file如何involve,才能解此問題,謝謝.

     

     

     

    Michael Su

     

    0
  • Hi Michael,

       你可否安装最新的Simplicity Studio 3.0 来验证是否这个问题依然存在? v3.0 修复较多bug,及支持新产品. 请让我知道你的测试结果.

     http://www.silabs.com/products/mcu/Pages/simplicity-studio.aspx

    Thanks.

    Mark

    Correct Answer
    0