2024-09-07 09:47 AM - last edited on 2024-09-12 03:34 AM by Andrew Neil
Hi there,
I have been using STM32 nearly 10 years.
I did modification according to company requirements. But it doesn't mean I am very good at C,C++ or else. I understand coding if it'd in C or C++ format.
I understand mathematics, logics and conditioning.
Kindly suggest materials/ guidelines/ books/ tutorials that might help me to write coding/ debugging and finding root cause of failure.
Let's say staring with ARM cortex type M0.
Solved! Go to Solution.
2024-09-12 03:31 AM - edited 2024-09-12 03:38 AM
@Md Mubdiul Hasan wrote:Kindly suggest materials/ guidelines/ books/ tutorials that might help me to write coding/ debugging and finding root cause of failure.
98% of this is not specific to the particular microcontroller - these are general, transferrable skills.
Most of it is down to being able to analyse a problem and define a solution.
@Md Mubdiul Hasan wrote:Kindly send link only for STM32.
You can't be so narrow. You need the general topics like the Cortex-M0 architecture, general electronics, and general C programming.
For understanding the Cortex-M architectures, Joseph Yiu's Definitive Guide books are required reading:
https://www.amazon.co.uk/Books-Joseph-Yiu/s?rh=n%3A266239%2Cp_27%3AJoseph+Yiu
For understanding the STM32, the device Datasheet and Reference Manual are key documents - you will find these and much more on the Product Page for the chip in question.
Some general tips on How To Debug:
Specifically on debugging Cortex-M Hard Faults:
Some learning & reference materials for C programming:
https://blog.antronics.co.uk/2011/08/08/so-youre-thinking-of-starting-with-c/
Some more learning & reference materials applicable to embedded microcontrollers:
https://www.avrfreaks.net/s/topic/a5C3l000000UYGFEA4/t145493?comment=P-1392529
Another important skill is How To Read Compiler Error Messages:
2024-09-07 10:08 AM
Hello @Md Mubdiul Hasan
For the cortex-M0, i may suggest you the documents available on this link. Also, you can check our progarmming manuals for devices using cortex-M0 et Cotex-M0+ . Also, i may suggest you to contact ARM throw there community or to try there online trainings.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-09-07 10:35 AM
Thank you.
Kindly send link only for STM32.
2024-09-07 11:31 AM
Hello @Md Mubdiul Hasan ,
You can refer to the STM32 Academy: https://academy.st.com/s/catalog-detail-standard?ltui__urlRecordId=a603W000000XZAHQA4
Or to our articles in this link: https://community.st.com/t5/stm32-mcus/tkb-p/stm32-mcus-knowledge-base
2024-09-12 02:57 AM
Can you suggest very good books?
2024-09-12 03:06 AM - edited 2024-09-12 03:11 AM
Google it:
https://www.st.com/content/st_com/en/support/learning/stm32-education/text-books.html
https://leanpub.com/mastering-stm32
https://www.elektormagazine.com/news/advanced-programming-stm32-mcus
2024-09-12 03:31 AM - edited 2024-09-12 03:38 AM
@Md Mubdiul Hasan wrote:Kindly suggest materials/ guidelines/ books/ tutorials that might help me to write coding/ debugging and finding root cause of failure.
98% of this is not specific to the particular microcontroller - these are general, transferrable skills.
Most of it is down to being able to analyse a problem and define a solution.
@Md Mubdiul Hasan wrote:Kindly send link only for STM32.
You can't be so narrow. You need the general topics like the Cortex-M0 architecture, general electronics, and general C programming.
For understanding the Cortex-M architectures, Joseph Yiu's Definitive Guide books are required reading:
https://www.amazon.co.uk/Books-Joseph-Yiu/s?rh=n%3A266239%2Cp_27%3AJoseph+Yiu
For understanding the STM32, the device Datasheet and Reference Manual are key documents - you will find these and much more on the Product Page for the chip in question.
Some general tips on How To Debug:
Specifically on debugging Cortex-M Hard Faults:
Some learning & reference materials for C programming:
https://blog.antronics.co.uk/2011/08/08/so-youre-thinking-of-starting-with-c/
Some more learning & reference materials applicable to embedded microcontrollers:
https://www.avrfreaks.net/s/topic/a5C3l000000UYGFEA4/t145493?comment=P-1392529
Another important skill is How To Read Compiler Error Messages:
2024-09-12 04:07 AM
Reading helps, but I recommend doing that in parallel with working / playing with some real programming environment and hardware.
So get a Nucleo board, install STM32CubeIDE - and just do it!
2024-09-12 04:31 AM - edited 2024-10-07 04:57 AM
@LCE wrote:So get a Nucleo board, install STM32CubeIDE - and just do it!
Don't waste time with a blue/black/whatever pill - get a genuine ST Nucleo, which includes a genuine ST-Link, has a load of ready-to-use examples, and is well-known and well-supported by both ST and this community.
Getting Started steps:
(From an original post here, but the formatting there seems to have got corrupted)
PS:
Applying the above to a specific project:
#BeginnerGettingStarted
2024-09-12 05:22 AM
Andrew,
Your suggestions looks suitable.
I have few different STM32 board to play with.
Let's try your materials.