Skip to main content
ZHama.1
Associate III
Mar 4, 2021 5:07 PM UTC
Solved

How do I import a BSP driver into STMCUBE IDE?

I’m very new to STM32 development so bear with me if this is a simple question. I’m trying to use an L476RG Nucleo and X-Nucleo-ihm03a1 powerSTEP01 board to control stepper motors.I’ve downloaded X-CUBE-SPN3 Driver software expansion for STM32Cube and have skimmed the following manual

the example projects only support toolchains EWARM, MDK-ARM and SW4STM32. Theres a number of files that came with the X-CUBE-SPN3 download, which files are the right driver files and how do I import them into an STMCUBEIDE project?

This topic has been closed for replies.
Cristiana SCARAMEL
ST Employee
Mar 10, 2021 2:41 PM UTC

Hello @ZHama.1​  and welcome to the ST Community.

I confirm: the SW4STM32 - System Workbench toolchain - is compliant with STM32CubeIDE.

The X-CUBE-SPN3 is compatible with the NUCLEO-F401RE, NUCLEO-F030R8, NUCLEO-F334R8 and NUCLEO-L053R8 boards.

I suggest to import one of available projects and make changes according your STM32 part number (NUCLEO-L476RG with STM32L476RG).

The path is ...\STM32CubeExpansion_SPN3_V1.6.0\Projects\Multi\Examples\MotionControl\IHM03A1_ExampleFor1Motor\SW4STM32

(if you want to drive a single motor otherwise you can choose IHM03A1_ExampleFor2Motor or IHM03A1_ExampleFor3Motor).

Let me know if these info are useful to you, if yes please "Select as Best" button to close the topic.

"If you feel a post has answered your question, please click ""Accept as Solution"""

4 replies

Cartu38 OpenDev
Graduate II
Mar 4, 2021 5:14 PM UTC

Rely on SW4STM32 data which are STM32CubeIDE compliant.

If STM32CubeIDE just rely on File > Open Project From File System. Provide path up to SW4STM32 folder at min (next level - most probably target device name - is even better)

Cristiana SCARAMEL
ST Employee
Mar 10, 2021 2:41 PM UTC

Hello @ZHama.1​  and welcome to the ST Community.

I confirm: the SW4STM32 - System Workbench toolchain - is compliant with STM32CubeIDE.

The X-CUBE-SPN3 is compatible with the NUCLEO-F401RE, NUCLEO-F030R8, NUCLEO-F334R8 and NUCLEO-L053R8 boards.

I suggest to import one of available projects and make changes according your STM32 part number (NUCLEO-L476RG with STM32L476RG).

The path is ...\STM32CubeExpansion_SPN3_V1.6.0\Projects\Multi\Examples\MotionControl\IHM03A1_ExampleFor1Motor\SW4STM32

(if you want to drive a single motor otherwise you can choose IHM03A1_ExampleFor2Motor or IHM03A1_ExampleFor3Motor).

Let me know if these info are useful to you, if yes please "Select as Best" button to close the topic.

"If you feel a post has answered your question, please click ""Accept as Solution"""
Cristiana SCARAMEL
ST Employee
Mar 22, 2021 9:27 AM UTC

Hi @ZHama.1​ ,

any news about your project progress?

"If you feel a post has answered your question, please click ""Accept as Solution"""
ZHama.1
ZHama.1Author
Associate III
Mar 27, 2021 3:22 PM UTC

Ha yes, looking back this question is ridculously straight forward.