Code size wise, using only the Standard Libraries, you get an advantage of around 3Kb in size, compared with the HAL Libraries. Disadvantages? You lose the fast prototyping features (and the sense of security) offered by the STM32CubeMX.Well, that is not a problem for the advanced programmer, but I, as a beginner, I will work … Continue reading Standard is better…
Staring at the display
After adding a conversion library and porting the LCD library from c18lib project, and adjusting the microseconds delay, I have a functional example. When you set the pins as outputs on the STM32CubeMX graphic configurator, you must rename them as follows: LCD_D7, LCD_D6, LCD_D5, LCD_D4, LCD_E, LCD_RS. Otherwise, the library will set her own default … Continue reading Staring at the display
One char after another…
I started the work to onewire library, to test the DS18B20 temperature sensor but realized that I don't know yet how to work with the serial transmission :(. So, I opened the STM32CubeMX for the configuration of a new project that will use the main serial port of the Arduino socket (on my Nucleo board, … Continue reading One char after another…
Without microseconds, you’re just an outsider
As it is, the HAL library comes with a tick at every 1 millisecond, like a "millis" in an Arduino library. It is your application's timer, allowing you to plan timed, non-blocking tasks, like in a real-time operating system. But no microsecond delay function provided 😦 . And you know, many initialization procedures or protocols … Continue reading Without microseconds, you’re just an outsider
In the blink of an … LED
I strongly desired to enter 32bit arm microcontroller world with Atmels' SAM-D21 (Cortex-M0+) microcontroller, but the Arduino Zero board came very late and expensive... then Atmel was acquired and... And STM32 it was! In form of the Nucleo board which I see it much over Arduino Zero in terms of features, and four times cheaper!So, … Continue reading In the blink of an … LED
My first Nucleo board
Nucleo L152RE board is a present for my birthday and also my first Cortex-M3 microcontroller ever. A board which must be programmed from the Linux, as is the only operating system I use. And is what I did and... failed! Why I have to start with a failure every time I go to a different … Continue reading My first Nucleo board