cancel
Showing results for 
Search instead for 
Did you mean: 

Need to start with STEVAL-SPIN3204

Alex10
Associate II

Hi,

First time for me with this kind of board and ST IDEs, I need help to start the project.

The drivers are ok, I can connect the board with STM32CubeProgrammer (ST-Link).

I made a project with MC Workbench, the code is generated with no errors.

But : I don't know how to program the device. I only have .c files, and In the "Erasing & Programming" (STM32CubeProgrammer) I need to put an hex or bin file.

I miss a step, I don't know witch one.

Can someone tell me how to continue ?

I guess that after programming the STM, I'll be able to communicate and use the motor pilot and profiler.

Regards.

18 REPLIES 18
Andrew Neil
Evangelist III

@Alex10 wrote:

But : I don't know how to program the device. I only have .c files, and In the "Erasing & Programming" (STM32CubeProgrammer) I need to put an hex or bin file.


You need to compile those files using a tool such as STM32CubeIDE - that will create the hex file.

 

@Zied b. @STTwo-32 This step does seem to be entirely missing from any documentation on the STEVAL-SPIN3204 product Page:

https://www.st.com/en/evaluation-tools/steval-spin3204.html#documentation

On the Nucleo board product pages, there is always a "Getting started with SW development tools":

AndrewNeil_0-1730804445955.png

Perhaps you need the same here?

Hi Andrew,

Thank you for this reply.

I tried with STM32CubeIDE : 14:23:10 Build Failed. 893 errors, 26 warnings. (took 5s.303ms)

Do I have something to configure ?

I'm trying now with Arduino IDE : compilation is OK but the squetch can't be uploaded.

So I came back to CubeProgrammer and could program the device with the hex (arduino generated) file.

Next problem : I can't establish any UART communication (USART A is activated in the MC WB at 115200, in windows the speed of my COM(16) is 115200 too).

Something with the boot strap or another jumper ?

Regards

 

 

Hello @Alex10,

Using Motor Control WorkBench Version: 6.3.1, I generated a project 6step STEVAL-SPIN3204.
Using STM32CubeIDE Version: 1.15.0 as mentioned in the Release note available through "Workbench tool">About>Documentations>Release Notes", I compiled project with no error. I used the STM32CubeIDE to flash and debug the generated firmware through:

GMA_0-1730818876724.png

After launching the fw (F8) on CubeIDE, I am able to connect the pilot at 1843200 Baudrate.

 

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Alex10
Associate II

Hello GMA,

Thank you for this reply.

Unfortunately, compilation still goes wrong ...

I came back to STM32CubeIDE Version: 1.15.0, same compilations errors. Examples attached.

Help me please, this is a 50€ board, I bought 2.

Regards.

I'm trying to make a LED blinking or a pin toggeling uder arduino IDE, I can upload the squetch ("Eval" board selected) but nothing happens ...

I tried with PF_0, PF_1, PB_8, PA_9

Is that the right name of the pins with Arduino IDE ?

And I'm not sure : do I flash U1 or U4 ??

I have 20 years experience with MPLab and PICs, that's not my first electonic project ...

Whay am I missing ? An output pin and a delay is not enough to start ?

 

pinMode(PF_0,OUTPUT);
digitalWrite(PF_0, HIGH);
delay(1000);
digitalWrite(PF_0, LOW);
 

Regards.

 

 

 

Hello @Alex10,

Could you please share your .stwb6 file?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
Alex10
Associate II

Sure !

Just rename it .stwb6

Regards

GMA
ST Employee

Hello @Alex10,

Loading your .stwb6 on Workbench Version: 6.3.1, generating with STM32CubeMX 6.11 and FW package FW V1.11.5, I am able to compile it with STM32CubeIDE Version: 1.15.0 with no error.
Did you modify a file on MCSDK_v6.3.1-Full directory? 
Can you generate your test from an empty directory? Have a look in ~/.stm32cubemx/STM32CubeMX.log for generation errors.
Can you provide you .ioc generated file?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

Ok, leds are blinking with STM32CubeIDE.

Board and soft are OK, me too !!

So U1 is flashed, not U4.

Problems seems to be in the workbench code generation.

Regards