Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


STM32F746 discovery CDC example

Hello, all, new here...

I’m pulling my hair out trying to convert some code from an 8051 to STM devices. I was able to convert my code to a STM32F407 disco without much trouble thinking back. I had some issues but overall I fought thru them.

I then purchased the STM32F746 discovery board thinking that I could take advantage of the larger display to turn a PC connected device into a stand along unit. I started with Tilen’s codde over on stm32-discovery and just couldn’t get the code working. I then found the examples int he STMF7 cube directory and tested the HID example where the board appears as a mouse and moves the cursor. No trouble at all.

I then started the CDC project and it compiles correctly, puts traces up on the LCD,etc, but the PC just won’t react when I plug in the USB cable to the HS port. I tried both HS and FS modes changing the compiler defines as taught in the instructions. Basically, the example starts with initializing the hal, clock, and then initializes the host usb as below:

USBH_Init(&hUSBHost, USBH_UserProcess,0) which points to USBH_UserProcess which never gets called after the remainder of the USB class registration, etc. I can plug, unplug cables, etc. and it is almost like the USB code isn’t initialized.

Anybody get this code working? I need USB VCP to send commands to the board. This code has the LCD logger working so that will help me get started working with the screen so that’s great. If I could only get the VCP working I would be rolling.


Thanks for looking.

Jerry

58 views and no comments? Come on, people, there has to be a solution. I’ve read a few of them about not sending before it is initialized. Basically, the PC never enumerates the device. Looking at the code, the example where it calls USBH_Init(&hUSBHost, USBH_UserProcess, 0), if you look in the module where USBH_Init is definded, it looks like it should be calling another module as the comments don’t match.

I would love to communicate with someone that has this working on an F746 discovery board.

Thanks


I was able to transfer data using the version which uses the STlink VCP. I don’t know if I like using it or not. I would like to see a working example using the HS (or even FS) port.

 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs