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


Compiling IHM07M1 Motor Code on Nucleo F302R8

Hi everyone. I’m new to the OpenSTM32 community, and new to all of the ST microcontrollers and boards.

I bought the Nucleo F302R8/IHM07M1 combo pack to play around with brushless dc motors. I need to connect a different motor to it, and therefore have to modify the code to get it to work. This has led me to the OpenSTM32 IDE, which I believe I have successfully installed.

My problem is setting up the IDE or importing the code. I am not familiar with Eclipse, and when I downloaded the X-CUBE-SPN7 code, I could not find a way to open or import the code. My attempts at any sort of importing has failed, and when I created a new project things looked good, but I still don’t know how to get the X-CUBE-SPN7 code into my project.

Any help would be greatly appreciated! I am a total noob at this, so I apologize if this sounds ridiculous. Setting up IDEs and compilers and importing code has always been a problem for me.

Instead of trying to figure out how to open or import the code, I tried copying the relevant (F302R8) files into my project. I compiled most of the way, and the majority of the time it was a missing include file, or there was a comment to take out to select my microcontroller. Now I’m getting errors like ‘PULL’, ‘PIN’, ‘PLL’, etc. can not be resolved. I’ve copied the entire include directories into my project, so I’m at a loss as to where these things are defined. Any help here would be appreciated, or if you think I’ve gone down the wrong path, let me know!

Hi Ronaldombre,
I have the similar problem.
I using import “Existing project into Workbench” then I copied all c h files to the project.
Additional I checked if the program import right board.
Afterwards I changed the include path from installed C:... to ${ProjDirPath}/..... (all files are in the workbench of the project)
Unfortunaltely I have still troubles with links to the header, I have many errors inside my files.
E.g main_302.c it doesn’t link variable “DISABLE” from ${ProjDirPath}/Drivers/CMSIS/Device/ST/STM32F3xx/Include

and by compiling I got measage (which I don’t know how to handle):
“make: *** No rule to make target `C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/Projects/Multi/Examples/MotorControl/Src/main_F302.c’, needed by `user/main_F302.o’. Stop”.

I waste meanwhile so many hours to get it run.
Then I installed Keil and copied the EWARM => it run perfect! But the Keil debugger is limited to 32k

If I get progress I will post it.

Hi,
I’m also running into this, and noticed that they’re all in varios folder’s “subdir.mk” under “C_SRCS += ". Since these are autogenerated, I’m not sure where it’s pulling that data. I’m just switching over from microchip, and my guess is some path location is being pulled in. Any help would be much appreciated to resolve this.

thanks

Hi,

There may be some success by copying the contents of the zip file to:

C:\Users\giuseppe scuderi-sl\Desktop\MOTOR CONTROL\Peppe\trunk\Firmware\X-Cube-SPN7-MC-6STEP

This appears to be where some of the folders should reside and where the ST bod was working from.

it is a shame the references are not relational to the location of the project files.

Mark



My solution was to associate all the files again.

One by one...

Hi.
How did you associate the files one by one?
How do you configure System Workbench project properties to take in consideration the folders tree correct like in the #includes of each files... in order to compile everything correctly?

Thanks