cancel
Showing results for 
Search instead for 
Did you mean: 

EVALSPINN32F0H60 on STM32CubeIDE

BHari.1
Associate

We are trying to evaluate the EVSPIN32F0602S1 motor driver. I've found I should use the 6 step driver firmware project EVALSTSPIN32F0H60 for this, but it turns out by default only IAR and Keil uVision are supported which we don't have. We work with STM32CubeIDE.

Since it does come with a IOC file I figured it should be no problem to generated project files for STM32CubeIDE, but somehow this doesn't work when I try it from the MX tool in the IDE. It generates only a small part of the required files.

So I tried it also directly from the STM32CubeMX tool, where it does appear to generate all required directories and files. However, I needed to configure all include paths manually to resolve compile issues.

After some time solving compile errors by adding include paths, I stranded in os_tick_gtim.c (CMSIS/RTOS2) where it tries to include RTEComponents.h, which doesn't exist. On the next line it tries: #include CMSIS_device_header, which should probably be defined in RTE_Components.h.

But this file is missing. I found it is included in other examples, where it's contents are set for that example specifically. So I have no idea how to configure it in my case, or where to find the correct file for this project.

So in short: I need some help getting this working on STM32CubeIDE. It shouldn't be that hard, I assume.

1 REPLY 1
cedric H
ST Employee

Hello @BHari.1​ ,

EVSPIN32F0602S1 is now supported by default with the MCSDK 6.1 available here.

From the MCSDK you will be able to select whether you want to run 6step or FOC Single shunt algorithm.

At generation stage, you will have the choice to generate your project with Keil, IAR or STM32CubeIDE.

Regards

Cedric