I'd like to start a discussion because I'm sure some of you might have some great advice. I'd really like to get better at programming for embedded systems. I see my friend who is a computer science student and he's doing some interesting projects at work and he's got stackoverflow at his disposal and not only he's enjoying it but also learining a lot.
I know that to get better at any kind of programming you have to keep practicing. But I feel if I'm completely on my own and just trying and trying until I succeed. This way I will progress slowly and my motivation will be low. But if there are some resources, some online discussion groups, anything really, then the learning can be much more effective and enjoyable.
For example I was writing a configuration code for the clock and PLL peripheral of the STM32. It can easily take a couple of days to dig yourself through the manuals and configure all the registers. My code works but then I found a sample code for configuring PLL for another type of STM32 microcontroller. I feel that it gave me knew perspective on how to deal with many things in the future.
Another example would be my current project. I'm using a temperature sensor from TSic that uses ZACwire protocol for sending the measured data. I'm planning on using the STM32's timers and external interrupts to capture the data. But as I checked the datasheet there was a sample program written in PIC assembly. I figured that is another great way of doing it. Plus you can train yourself at thinking in a programming sense; how the program should look like, what do you need, what are the steps to accomplish the task and so on. I really enjoy these kind of stuff. It's just that it feels difficult doing it on my own with no one to compare it to or show to and get some kind of a feed back.
I'd love to practice more and have some examples to see how it can be done so I get new insights into programming. I just don't know where to find such things. Is there some kind of a forum that focuses on embedded programming and discussing about the logic behind the program, be it in C or assembly or something else. Any kind of discussion groups? I knwo for electrical stackexchange, which is great, but it's not just embedded stuff. Are there some sample codes to look at and learn from? Even chefs read books and look at menus of other restaurants to get inspiration for new dishes. There must be something like that for embedded programming as well.
--------------------------------------- Posted through