2015-06-15 05:09 AM
i want to build Audio_playback_and_record project for usb library but there are some problems. i downloaded this project (stsw-stm32zip) from
http://www.st.com/web/en/catalog/tools/PF257904#
. i have changeddefined symbols as below. wrote MEDIA_USB_KEY instead ofMEDIA_IntFLASH which was default. but compiler gives following errors for this setting:Error[Li005]: no definition for ''USBH_OTG_ISR_Handler'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\
Obj\stm32f4xx_it.o]
Error[Li005]: no definition for ''USB_OTG_BSP_TimerIRQ'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\
Obj\stm32f4xx_it.o]
Error[Li005]: no definition for ''Command_index'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\Obj\
stm32f4xx_it.o]
Error[Li005]: no definition for ''USBH_Init'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\Obj\main.o]
Error[Li005]: no definition for ''USBH_Process'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\Obj\main.o]
Error[Li005]: no definition for ''USBH_MSC_cb'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\Obj\main.o]
Error[Li005]: no definition for ''USR_Callbacks'' [referenced from D:\docs\usb\stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Audio_playback_and_record\EWARM\MEDIA_IntFLASH\Obj\main.o]
and my workspace files appearence is like this:
why are some of folders and files shown like this? there is waverecorder.c or usb_bsp.c in my project folder.
i cant figure out how to build this project.
#audio_playback_and_record #know-your-tools
2015-06-15 01:07 PM
Not an IAR user. Suggest you right click (or whatever) check for options/path data for file. Then look at project options, or multi-platform build options, to select file used in this build.
Failing that consider removing the files from the project and re-adding them back in.Read the documentation for your tools, and discuss with your support contacts.2015-06-25 04:22 AM
i have checked options and paths.
re add the files back but none of them work. but i have found the solution by chance.right click the folder/file that signed with cross then click on options. then uncheck ''exclude from build''