Skip to main content
marzouk_najeh92
Associate
October 22, 2016
Question

I have errors when debug and download code

  • October 22, 2016
  • 1 reply
  • 654 views
Posted on October 22, 2016 at 14:58

Error[Li005]: no definition for ''USB_Init'' [referenced from C:\Users\success\Desktop\Programme PFE ACCE_GYRO_USB\first _example\Debug\Obj\main.o] 

Error[Li005]: no definition for ''UserToPMABufferCopy'' [referenced from C:\Users\success\Desktop\Programme PFE ACCE_GYRO_USB\first _example\Debug\Obj\main.o] 

Error[Li005]: no definition for ''SetEPTxCount'' [referenced from C:\Users\success\Desktop\Programme PFE ACCE_GYRO_USB\first _example\Debug\Obj\main.o] 

Error[Li005]: no definition for ''L3GD20_TIMEOUT_UserCallback'' [referenced from C:\Users\success\Desktop\Programme PFE ACCE_GYRO_USB\first _example\Debug\Obj\stm32f3_discovery_l3gd20.o] 

Error[Li005]: no definition for ''LSM303DLHC_TIMEOUT_UserCallback'' [referenced from C:\Users\success\Desktop\Programme PFE ACCE_GYRO_USB\first _example\Debug\Obj\stm32f3_discovery_lsm303dlhc.o] 

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    October 23, 2016
    Posted on October 23, 2016 at 03:08

    So doesn't this that large chunks of code that the linker expects to see are missing from the project?

    When you #include a file it does not provide code for the functions whose interface it defines. You *still* need to have the file in the project (source or library) that provides the code for the functions.

    Review the source files described in the project.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..