I've decided, Low Layer Driver it is. So, I am in the middle of porting my libraries to LL. Just finished checking the LCD4 library, and decided to make a code size comparison between the APIs (HAL and LL).The application is a "Hello World" type, testing the functionality of the library, with the main function … Continue reading Alea iacta est
TIM6 set for 1ms timer using ST Low Layer API
This is true for the STM32CubeMX 4.22.1 and STM32CubeL1 driver 1.8.0. Actually, CubeMX does not generate the complete functional code and the snippet included will serve for me as a future reference.TIM6 general timer is used as an alternative to the Systick until the Low Layer API will have the same features for the 1ms … Continue reading TIM6 set for 1ms timer using ST Low Layer API
First success with the libopencm3 library
Obvious, the first thing to try using both a new board and a new library is to blink a LED. But there were a couple of issues. 1. The first thing I had to solve, was properly setting the clock of my board in order to have a functional microseconds delay function. The libopencm3_examples project … Continue reading First success with the libopencm3 library
Nucleo headers
As this will become my online reference regarding this board, lets store some more technical details regarding the header connectors.Arduino style connectorsWell, because of the Arduino standard connector, the microcontroller pinout wirings are a mess but I'm not the one to complain, as I did the same to a couple of microcontrollers for the sake … Continue reading Nucleo headers
One Wiring language to rule them all
Finally, my Nucleo board is supported by the Arduino project (see here the core). The first effect is that the board enters in the RAD (Rapid Application Development) category of the selected Arduino compatible boards. It means also that I can test directly the TSL2591 Lux sensor (my DIY SLR film camera needs it) using … Continue reading One Wiring language to rule them all
Crossroads without signs…
Usually. I chose the complete solution, the one that helps me get the most of it. As is the case with STM32CubeMX + OpenSTM32 IDE + HAL drivers. But HAL does not give me the level of control I was used to, so Low Layer drivers are a very good addition. Unfortunately, OpenSTM32 does not offer … Continue reading Crossroads without signs…
A new morning shines at the horizon
Finally, the STM32CubeMX can generate Low Layer code for all STM32 microcontrollers! Thank you ST Microelectronics!I have taken an active pause, continuing with PIC18F microcontrollers, SDCC and XC8 compilers. Translating the library and examples for the DS18B20 temperature sensor, but these are yet to be committed in their repositories. I also tried to make an … Continue reading A new morning shines at the horizon
Your map may be old and you’ll get lost
The actual version of the HAL drivers in OpenSTM32 IDE for my board is 1.6.0 and the last official ST version is 1.7.0. So, I thought I may update it myself, how hard may be that (I had to do it anyway, as I did the upgrade also for STM32CubeMX)? And I did it, replacing … Continue reading Your map may be old and you’ll get lost
Preparing the trap for time…
Update May 12, 2017: The HAL libraries regarding I2C peripheral are just stupid! Their unneeded "simplification" gives me headaches. I'm not a newbie, you know? Well, more likely I'll use the HAL Low Layer drivers for this one...It seems that the mixed use is allowed (Chapter 4 of "Description of STM32L1 HAL and Low-layer drivers")Original … Continue reading Preparing the trap for time…
The wire has fever!
Yep! The onewire and DS18B20 libraries are ready. Built on top of the HAL layer, I was afraid that the timing won't be right... my tiredness added to that and I didn't observed that the bus is connected to a wrong wire on Nucleo board, making me to do some major changes in the source. … Continue reading The wire has fever!