cancel
Showing results for 
Search instead for 
Did you mean: 

ihm001 FOC example.

re.wolff9
Senior
Posted on December 17, 2015 at 18:17

Hi, 

I have the IHM001 motor control kit. I managed to compile the 6step example from  STM32CubeExpansion_SPN7_V1.0.0 . 

I'm using Linux, and I managed to create a Makefile for the example project.

For FOC it seems I have to use  'STM32 PMSM FOC LIBv4.2', but there I see just a few stmcx files referencing my IHM001. 

Where can I find sources for an example for my board? For example, the sources to the pre-installed app on the included '302 nucleo would be nice. 

(to prevent messing up that pre-installed app, I use my '401 nucleo for testing at the moment.)

5 REPLIES 5
smorandi
Associate
Posted on December 21, 2015 at 22:46

Hi Roger

I purchased the very same IHM001 pack and asked for the source file directly to the ST support. At the moment no feedback. If I have any feedback I will be pleased to share it. By the way I managed to use the board also to run other prototype code using Mbed compiler, but unfortunately I discovered that the P-NUCLEO-IHM001.bin file referenced in the manual is nowhere to be seen on the ST site.

Best regards

Stefano

re.wolff9
Senior
Posted on December 21, 2015 at 23:41

Its in the STM FOC LIBRARY 4.2 install somewhere. 

.....STM32CubeExpansion_SPN7_V1.0.0/Projects/Multi/Examples/MotorControl/Binary/P-NUCLEO-IHM001/P-NUCLEO-IHM001.bin

Gigi
ST Employee
Posted on January 07, 2016 at 17:39

Ciao Roger

As mentioned in the other topic you can use ST MC Workbench to configure the STM32 PMSM FOC lib v4.2 to work with the P-NUCLEO-IHM001, so you can consider it the FW example for that board.

Just a note

The original FW is a mixed of the two FW: STM32 PMSM FOC lib v4.2 and the 6-step code STM32CubeExpansion_SPN7_V1.0.0 so starting from the one or from the other you can get the same behavior of the original (what is missing is only the boot strap code that choose among the two code according to the jumper setting).

Ciao

Gigi

re.wolff9
Senior
Posted on January 10, 2016 at 16:58

Just double checking. There is a boot code that 

* configures a GPIO,

* reads the jumper

* then jumps to the appropriate location. 

* (does it adjust VTOR?)

The two example codes are compiled for different start-addresses and are both present in flash. 

Correct?

What I have managed to miss in the documentation: 

* What jumper makes the switch?'

* what GPIO is it connected to?

P.S.  The forum has a bug: it will not collapse the ''quoted messages'' after an edit of a post. 

Laurent Ca...
Lead II

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards