2024-11-05 12:06 AM
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.
2024-11-05 3:01 AM
@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":
Perhaps you need the same here?
2024-11-05 6:12 AM
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
2024-11-05 7:06 AM
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:
After launching the fw (F8) on CubeIDE, I am able to connect the pilot at 1843200 Baudrate.
2024-11-07 11:55 PM
2024-11-08 5:40 AM
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 ?
Regards.
2024-11-08 6:26 AM
Hello @Alex10,
Could you please share your .stwb6 file?
2024-11-08 6:34 AM
2024-11-08 7:38 AM
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?
2024-11-08 7:38 AM
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
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.