2020-02-09 06:58 AM
2020-02-29 03:28 PM
You've got a custom board, with random motors. No one here was involved in your design. I'm not sure this stuff is the trivial exercise you think it is.
If you want examples, perhaps look at ST provided board/motor combinations related to the STM32G4, and apply what you learn there to your specific case.
https://www.st.com/content/st_com/en/about/media-center/press-item.html/n4187.html
You should engage with ST Motor FAE's, perhaps they can suggest seminars or motor hack-fest type events, or suggest contractors for motor applications.
2020-03-26 05:54 PM
I was trying to understand the C code for Blinky but with limited success, may be need a refresher on C. Any suggestions welcome
2020-03-27 11:29 AM
> may be need a refresher on C. Any suggestions welcome
Would recommend to look at courses and articles of Jacob Beningo.
I like his style of explaining things.
And then, more tools and TDD:
-- pa
2020-03-27 03:27 PM
Thanks, but looking for something quick; ordering and getting a book - 2 weeks? with this virus. Having trouble with this line:
tid_thrBUT = osThreadNew (thrBUT, NULL, NULL);
2020-03-27 04:26 PM
This virus time gives ideal chance to read a book.
Maybe he has some electronic format - pdf or doc ...
> Having trouble with this line:
tid_thrBUT = osThreadNew (thrBUT, NULL, NULL);
This is a function call. osThreadNew is the function name. To the right of it are 3 parameters. To the left hand of it is the returned value.
-- pa
2020-03-27 05:20 PM
Thanks. What do the 3 parameters signify
2020-03-28 03:09 PM
I tried the book by Kerighan & Ritchie' it gave the foll ex.:
lower = 0; /* lower limit of temperature table * /
upper = 300; /* upper limit * /
step = 20; /* step size * /
Based on this the Blinky code should follow i.e. lower = thrBUT, upper = NULL, step = NULL but this does not make sense!
Any thoughts?
2020-04-30 04:34 PM
Trying to use Keil for compiling my C program. As a start, I tried compiling the Blinky.c program done by Keil - no luck, although I didn't change anything, got 114 errors, tried another ex, same. So, something I am missing (as always!)
2020-05-02 09:33 AM
> What do the 3 parameters signify
Are you incapable of even using Google?
But before even touching RTOS, you should learn the basics.
> I was trying to understand the C code for Blinky but with limited success, may be need a refresher on C. Any suggestions welcome
One can refresh only knowledge he already knows. In your case you must learn the C and MCUs. Probably the best tutorial to start with is this one: