VPC was generating incomplete code for SPI initialization. This was fixed. Recently I tested the generated code on a library and a project that works with Adafruit 160x80 0.96" TFT display - soon to be published. Changes are published in repository and can be seen here https://gitlab.com/funlw65/vscode_nucleo_l152re/commit/8e7b23a9
VPC version 3.4.3 bugfix
At code generation time, inside vpc_gpio_init() function, when PB6 pin was defined it had the name of PB7 pin. Fixed and uploaded on the repository. You can see the changes here.
VPC version 3.4.2 bugfix
Fixed MCO (Master Clock Output) functionality. This was broken with changes made in version 2.0 Bugs: 1. Setting PA8 pin as MCO from LQFP64 window or Pinout window had no effect on Clock window. 2. Having PA8 pin function set to other than "N/A" or "CLOCK", entering in Clock window would have re-set the pin … Continue reading VPC version 3.4.2 bugfix
VPC version 3.4.0 update
Just a minor addition. The user defined pin labels now appear permanently visible in the LQFP64 window. This will help the hardware team get in sync with the software team. Before, the user defined pin labels were visible only via a hint when the mouse pointer hovered over the pin - functional but unhelpful. See … Continue reading VPC version 3.4.0 update
VPC for Nucleo-F411RE ?
Right-click on image and select "View Image" to see it at full resolution. Clocks configured for the 8MHz external crystal EDIT: Oops! Corrected the mockup and updated the image. I said in a previous article that the actual size of the window (that must fit in the screen resolution of a laptop) won't allow all … Continue reading VPC for Nucleo-F411RE ?
Slotted non-blocking delays example (L152)
https://youtu.be/dGHoElzJrGg Name of the project l152_slotted_nb_delays Description Application will simultaneously blink 4 LEDs at 4 different speeds. This is a demonstration for the library presented in the previous article. It is a simple app, but more complex ones can be written like simultaneously scrolling a text on 4 (or more) 7seg LED displays. reading temperature … Continue reading Slotted non-blocking delays example (L152)
TIM6 and TIM7 slotted non-blocking delays
An array that offers "slots" for the non-blocking delays you need in your program. Before including the header of one of these two libraries, you have to define the size of the array that means, the number of the delays you need. TIM6 or TIM7 are used as counters at a frequency also defined by … Continue reading TIM6 and TIM7 slotted non-blocking delays
VPC version 3.3.3 update
Small additions, changes and bug fixes. Some triggered a revision and regeneration of all the libraries and the example projects. There are also two new libraries and a demonstration project for them that deserve their own articles. Additions When generating the code, VPC adds some clock values (from the clock settings window) on top of … Continue reading VPC version 3.3.3 update
PCF8583 RTC alarm weekdays example (L152)
Name of the project l152_pcf8583_alarm_weekdays_lcd Description The project demonstrate setting the alarm that will repeat for certain days of the week, at user's choice. Code snippet (initial code, project structure and VSCode files generated by VPC): uint8_t pcf8583_active_alarm = 0; void EXTI15_10_IRQHandler(void) { // Here would be the B1 pin interrupt handler (do where it … Continue reading PCF8583 RTC alarm weekdays example (L152)
PCF8583 RTC alarm daily example (L152)
Name of the project l152_pcf8583_alarm_daily_lcd Description The project demonstrate the setting and use of a daily alarm. The user button is used to stop the alarm. Code snippet (initial code, project structure and VSCode files generated by VPC): uint8_t pcf8583_active_alarm = 0; void EXTI15_10_IRQHandler(void) { // Here would be the B1 pin interrupt handler (do … Continue reading PCF8583 RTC alarm daily example (L152)