cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Project from Eclipse to STM32CubeIDE

RhSilicon
Lead

I found a slightly old project, and I would like to compile it with STM32CubeIDE.

It is to add HUB function in USB Host:

https://github.com/mori-br/STM32F4HUB

Does anyone know how to adapt this project to compile in STM32CubeIDE?

Or how to compile the original project?

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @RhSilicon​ and welcome to the Community :)

I advise you to refer to the Migration guide for STM32CubeIDE

UM2579: Migration guide from System Workbench to STM32CubeIDE

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

8 REPLIES 8
Imen.D
ST Employee

Hello @RhSilicon​ and welcome to the Community :)

I advise you to refer to the Migration guide for STM32CubeIDE

UM2579: Migration guide from System Workbench to STM32CubeIDE

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello @Imen DAHMEN​ ,

Thanks for the support, the project has been successfully converted and tested with STM32F407VGT6 on the Diymore board, together with a Mini Keyboard with Integrated Mouse.

Project available in this repository:

https://github.com/rtek1000/STM32F4HUB/tree/master/Project-STM32CubeIDE

Note: For some reason the X axis of the touchpad was not recognized (always show value 0), I will try to create a new project with STM32CubeIDE and insert this HUB function.

Thank you.

> https://github.com/mori-br/STM32F4HUB

We've tried to use this several years ago. It is a nice try IMHO, maybe useful to understand how a hub works, but incomplete and abandoned.

There are better alternatives.

By the way the Eclipse there is an old version of SW4STM32. Try to import it as SW4STM32.

Interesting, and how do I find these other alternatives? Are there references?

​Hello @Imen DAHMEN​ ,

I compared the HUB code with a current code generated by STM32CubeIDE.

Both basic codes are similar, but I still haven't managed to adapt the HUB function in the new code.

The new code seems to operate with an interrupt function, and the HUB code appears to be simpler.

Would it be possible for your team to make a tutorial to add this HUB function, and make it available along with the other tutorials on this subject?

Thank you.​

​[STM32 USB training - 10 STM32 USB Host library]

https://m.youtube.com/watch?v=Bsnl8BAFSOk

https://docs.tinyusb.org/

Segger ...

Note that there's some errata for hub functionality. IIRC it is mentioned in Segger's USB lib documentation.

Hi,

Thanks for the feedback. That library looks very promising. However it should not be compatible with STM32CubeIDE.

TinyUSB is currently used by these other projects:
 - Adafruit nRF52 Arduino
 - Adafruit nRF52 Bootloader
 - Adafruit SAMD Arduino
 - CircuitPython
 - Espressif IDF
 - MicroPython
 - mynewt
 - openinput
 - Raspberry Pi Pico SDK
 - TinyUF2 Bootloader
 - TinyUSB Arduino Library

https://docs.tinyusb.org/en/latest/info/uses.html

Of those supported Cores, it might be easier to implement with Arduino, however STM32 still appears to be unsupported.

Supported Cores:
 
[Cores with built-in support]:
- adafruit/Adafruit_nRF52_Arduino
- adafruit/ArduinoCore-samd
- earlephilhower/arduino-pico
- espressif/arduino-esp32
 
[Cores without built-in support]:
- mbed_rp2040

Perhaps the mynewt operating system might be the most interesting for me, as it seems to already support the STM32F4Discovery (STM32F407VG) that I currently use for the ongoing project.

Even so, I believe it will be very helpful if the ST team can add this old HUB library code to the STM32CubeIDE, as this IDE is already quite usable and quite stable.

> I believe it will be very helpful if the ST team can add this old HUB library code to the STM32CubeIDE

They've promised hub support long ago, but it is unlikely to happen since adopting ThreadX aka Azure RTOS.