error:not defined IAD in usb host

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

error:not defined IAD in usb host

Postby ep.hobbyiest » Tue Dec 12, 2017 3:41 am

Hi,
i am using stm32f4 discovery board.I was using USBH driver for usb host application.I got the code from Contrib repo(developed by @dismirlian).
I want to use usb stick to connect with stm32f4 board and collect some data. I don't need to use/enumarate other class devices.

Behavior:
i compiled the code and i got following error:

Code: Select all

make: *** No rule to make target `hal_usbh_lld.c', needed by `build/obj/hal_usbh_lld.o'.  Stop.
make: *** Waiting for unfinished jobs....
../../chibios30/os/hal/src/usbh/hal_usbh_uvc.c:26:6: warning: "HAL_USBH_USE_IAD" is not defined [-Wundef]
 #if !HAL_USBH_USE_IAD
      ^
../../chibios30/os/hal/src/usbh/hal_usbh_uvc.c:27:2: error: #error "USBHUVC needs HAL_USBH_USE_IAD"
 #error "USBHUVC needs HAL_USBH_USE_IAD"
  ^


i am not sure to where to define this Macro.

Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 20 guests