Skip to main content
brian239955
Associate
Oct 2, 2015 8:06 PM UTC
Question

STM32Cube L4 demos

Posted on October 02, 2015 at 22:06

Hi there.

Thanks for the STM32Cube software.  I have a Discovery board and would like to try some USB-OTG testing, but there are only USB demo apps for the EVAL board, is it possible to port them so they run on the Discovery board? I tried creating an initial USB-OTG HID project in CubeMX but it doesn't work.

(I'm trying to port my little speech recognition project over from the STM32F4-Discovery board - https://sites.google.com/site/stm32f4voicekeyboard/main )
    This topic has been closed for replies.

    2 replies

    Amel NASRI
    ST Technical Moderator
    Oct 7, 2015 2:16 PM UTC
    Posted on October 07, 2015 at 16:16

    Hi smith.brian.004,

    Didn't tried it, but it should be possible to port the example available for STM32L476G_EVAL to STM32L476G-Discovery.

    You have just to comment BSP related functions (it is already said in the readme.txt file: This example has been tested with STMicroelectronics STM32L476G-EVAL RevA evaluation boards and can be easily tailored to any other supported device and development board.).

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    brian239955
    Associate
    Oct 8, 2015 1:33 PM UTC
    Posted on October 08, 2015 at 15:33

    Hi Mayla.

    Thanks for the reply. I tried that (using the Projects/STM32L476G_EVAL/Applications/USB_Device/HID_Standalone application), I commented out all BSP-related calls leaving only the HAL and  USBD related calls , but the resulting binary doesn't seem to do anything, no USB device is registered when I plug the Discovery board into a host PC.