STM32CubeIDE - replace spaces by tabs

I wanted to configure STM32CubeIDE so that it replaces tab character by spaces, when editing source code. Easy, once one knows where to look smiley:

  • select Window > Preferences
  • select C/C++ > Code Style > Formatter
  • create a new profile, based on the profile you prefer
  • in the Indentation tab, select Spaces only for Tab policy

My macOS configuration


23-Dec-2019 - gcc

xcode-select --install
brew install gcc

18-Oct-2019 - minicom

brew install minicom

27-Sep-2019 - telnet

Installation of telnet:

Pysense: hardware setup in a virtual machine

PysenseI had to help someone starting a project which includes, among others, a Pysense board.

The development environment is Linux Mint 18.3, running in a VirtualBox virtual machine (VirtualBox version 5.2.26). The host system is a MacBook Pro running macOS Mojave.

One difficulty that the user may face with this environment relates to the USB device redirection. When the Pysense is switched to bootloader mode, for firmware upgrade, it stays in this mode less than 7 seconds, which is not long enough to configure VirtualBox.

In the following article, I describe a procedure that allows to get round this problem, and to perform the firmware upgrade.

How to set display brightness (Linux)

If not installed yet, install the xbacklight package. Then use the command:

xbacklight -set <brightnessPercentage>

Working on several different software development projects

I'm currently working on several different software development projects, for two different companies, and for me. Several different technical domains are involved: embedded, frontend and backend. And for each of them, I have to use several frameworks or toolkits.

As I've got a regular brainpower Smile, I need some tools to keep up. My current way of working:


Subscribe to Front page feed