2019-01-25 09:32 AM
2019-01-28 02:42 AM
hi,
i just found a solution. i was using the STM32L496G-DICO.i was trying to preform the example project in the MOOC training provided by st "STM32L4 hands-on-sessions".
"https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/stm32cubemx-and-cubeHhal-basics.html"
you can see vedio number 35 if you want to know exactly what i was doing.
the problem was that a error accured when compiling "the usb handler hUsbDeviceFS is not defined" . But when i reviewed the project structures it was defined in one of the includes….
i just Added hUsbDeviceFS as a global variable in the main ( I added this line : USBD_HandleTypeDef hUsbDeviceFS; ) and every think worked fine.
Kind Regards,
Hamza
2019-01-28 12:47 AM
Hello,
Could you please give us more details on your environment and which device are you using? Are you usig CubeMX or example from Cube firmware package and which versions?
Maybe, you should review the structure of the projects provided in the Templates of CUbe package for supported tool chains, and map them to yours.
Kind Regards,
Imen
2019-01-28 02:42 AM
hi,
i just found a solution. i was using the STM32L496G-DICO.i was trying to preform the example project in the MOOC training provided by st "STM32L4 hands-on-sessions".
"https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/stm32cubemx-and-cubeHhal-basics.html"
you can see vedio number 35 if you want to know exactly what i was doing.
the problem was that a error accured when compiling "the usb handler hUsbDeviceFS is not defined" . But when i reviewed the project structures it was defined in one of the includes….
i just Added hUsbDeviceFS as a global variable in the main ( I added this line : USBD_HandleTypeDef hUsbDeviceFS; ) and every think worked fine.
Kind Regards,
Hamza
2020-06-09 03:02 AM
I think this should be more correct. Since it's already declared in the usb_device.c
extrern USBD_HandleTypeDef hUsbDeviceFS;