cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use the STM32G474VET6 in a robotic application with 3 motors and a diff GPS. Can I program it in Assembly or do I use C? If the latter is Keil a good compiler?

KDIAS.2340
Associate II
 
49 REPLIES 49

It is a relatively new part, and the "motor nuts" aren't huge into community, as most of what they build is work product.

The CubeG4 repository should have what ST is offering.

https://www.st.com/en/embedded-software/stm32cubeg4.html

Look at some of the motor dev boards, and chat with the FAE's covering motor topic.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Piranha
Chief II

Also, saying only "robotic application with 3 motors" and not mentioning what type of motors and drivers, does make it impossible to suggest anything useful...

> which is better for a beginner ~STM32CubeIDE or ECLIPSE CDT?

STM32CubeIDE is based on Eclipse CDT. But Keil is better for a beginner IMHO.

 Nothing is too easy for a beginner :(

> DMB, DSB, WFI ....

You don't need assembly, all these are CMSIS -defined intrinsics for all major compilers. -- pa

Yes, I know, but NOP is also defined by CMSIS. And, as Mr Dot (@S.Ma​)​ mentioned NOP as an example of an assembly instruction, I only appended to that idea. :)

Thanks. I tried contacting AVNET here in Toronto and although within working hours no one picked up. If you can suggest motor dev boards, would appreciate.

KDIAS.2340
Associate II

These are regular brush dc motors 12 V, 2 are the same around 2A each , third is smaller 1.6A

KDIAS.2340
Associate II

A beginner's question; How to program the 32G4, is it through the UART and if so which terminals to use?

Should be some JTAG/SWD pins you can use with an ST-LINK or similar pod

AN2606 should cover USART options https://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf

Tool, STM32 Cube Programmer https://www.st.com/en/development-tools/stm32cubeprog.html

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KDIAS.2340
Associate II

Thanks. Still trying to figure it out. Here is a pic, I think it is the 2-row connector to the left of the micro.0690X00000Bug4GQAR.jpg