cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started with STM32

Hello everyone.
I'm starting to work with ST .
Working on nucleo-g071rb.
I watched the videos.
I turned on an LED and managed to send a string on the UART.
I'm trying to define an array or variables and I can't.
I worked in a different environment, Atmel's codvizion.
Apparently the syntax is different.
I work in the C language.
How can I learn to define variables from arrays and such...
My project is supposed to have buttons. Turn on LEDs accordingly. Send a word according to the button via the heart.
Get OK confirmation
I'm really starting with ST .
I can't define variables from arrays and such..
I'd appreciate help
For example programs
Thanks Yitzhak.

1 REPLY 1

@User1658312518282898261 wrote:

I'm starting to work with ST ..


Are you familiar with any other microcontroller(s)?

Are you familiar with C programming? With programming in general ?

 

Here are some getting started tips:

https://community.st.com/t5/feedback-forum/1st-time-in-the-forum-hello-to-all/m-p/657526/highlight/true#M1205

https://community.st.com/t5/stm32-mcus-products/for-better-learning-stm32-programming-and-debugging/m-p/719468/highlight/true#M260690

 

Please also see the posting guide for this forum:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@User1658312518282898261 wrote:

I'm trying to define an array or variables and I can't.


So show us what you tried, and tell what problem(s) you had - see the posting guide for how to post code

 


@User1658312518282898261 wrote:

I worked in a different environment, Atmel's codvizion.

Apparently the syntax is different


You mean this: https://www.codevision.be/ ?

I've not used it, but it says that it's "ANSI C" - so should be no syntax differences.

 


@User1658312518282898261 wrote:

How can I learn to define variables from arrays and such....


That's standard C programming stuff - so any C reference, textbook, or tutorial should cover that.

Here's some C learning & reference materials - including a free online textbook:

https://blog.antronics.co.uk/2011/08/08/so-youre-thinking-of-starting-with-c/