Opublikowano przez Mateusz Salamon, temu

Interrupts not working on STM32G0? What is VTOR? (HAL bug)

I haven’t had much experience with the STM32G0 family yet, but my course participants have. Recently, we were solving together a problem with interrupts not working on the STM32G031J6M6 known from the STM32G0316-DISCO board. It was an interesting problem, so I decided to share it more broadly. Handling interrupts via Read more

Opublikowano przez Mateusz Salamon, temu

How to Do Multiple Things at Once on a Microcontroller?

You’ve surely more than once on the Internet (and not only there) seen problems from people taking their first steps with microcontroller programming. One of such problems is that we can’t “do many things at once”. For example, wait for a measurement while at the same time blinking an LED Read more

Opublikowano przez Mateusz Salamon, temu Opublikowano przez Mateusz Salamon, temu

New Family of Microcontrollers for IoT – STM32U5

This post is the beginning of a larger series of articles on my blog. Something that I had my eye on since the first information from ST Microelectronics came into my hands. We’ve got a new series of microcontrollers—and not just any! The STM32U5 microcontroller family The new family has Read more

Opublikowano przez Mateusz Salamon, temu

You can have a heart attack copying projects in STM32CubeIDE!

Many beginners, when they want to introduce some test changes in their project, don’t always use Git. Sometimes there’s also a real need to clone a project in order to develop it completely separately. First thought? Copy-Paste. It’s not a bad solution, but when using CubeIDE we’ll discover that there’s quite a big problem with it.

(more…)
Opublikowano przez Mateusz Salamon, temu

How to get started with STM32?

Everyone starts with something at some point. Since you’re here you’d probably like to start your adventure with STM32 microcontrollers. I also once wanted to. Nowadays, we look for our first help on the Internet. That’s why this blog post was created. (more…)

Opublikowano przez Mateusz Salamon, temu

Happy Birthday to you! The second year of msalamon.pl! + CONTEST

Two years of me running this blog have just passed! Sometimes it’s hard for me to believe that I’ve already been working on it for so long, and yet it’s still only the beginning. Around the same time, my store also has its anniversary. True, I officially opened it in June, but I’m going to count it as part of the joint celebration 🙂 Just like a year ago, I invite you to a short summary.

(more…)
Opublikowano przez Mateusz Salamon, temu

Radio communication using nRF24L01+ modules, part 3

So far I’ve shown you how to use nRF24L01 with polling and I’ve already started doing something with interrupts. More precisely, I used the data-receive interrupt so that incoming data is read from the chip instead of constantly polling the chip to see whether something has arrived. It may not seem like much, but it was still some wasted time on communicating with the chip. What if we used the full potential of interrupts?

(more…)
Opublikowano przez Mateusz Salamon, temu Opublikowano przez Mateusz Salamon, temu

Radio communication using nRF24L01+ modules, part 2

In the previous post I showed you the simplest way to communicate between two Nucleo boards using the nRF24L01+. For sending and receiving data I used the simplest method, i.e. polling. While checking whether something arrived didn’t do much harm because I only read a single register in the chip, when transmitting I waited in vain until the transfer finished. On top of that, fixed-length data packets were being sent and received. This time I’ll show you how to send data of different lengths and how to receive messages in interrupt mode

(more…)