I’ll be running the 32-bit version which works just as well on 64-bit Windows.Īt the first screen I chose the options that don’t require Admin rights. Visit the Cygwin website and download and run the setup executable. The first thing I do after powering up my Windows system is to open up a cygwin xterm. I’ve used it for as long as I can remember and, although it’s not without it’s limitations, I could not do without it. Step 1: Install CygwinĬygwin is an ambitious open-source project designed to replicate a Posix command-line environment as close as can be done on Windows. I’m using the 64-bit version of Windows in this tutorial but the same steps apply if you’re using the 32-bit version and where a choice exists between installing a 32 or 64 bit version of something I’ll make it clear which one I’m using.
I’ll be running the tutorials myself inside a fresh installation of each of the operating systems to ensure that no steps are missed and by the time we’re done you’ll have a free and modern development system ready to write and debug code for the STM32 MCU family. I’ll be covering Windows 7 in this article and Ubuntu Linux in a followup. The development environment will include an installation of my stm32plus library that makes it easier to access the STM32 peripherals using C++ programming techniques. I’ll cover setting up the graphical Eclipse IDE as well as a command line environment.
#LIBUSB ON CYGWIN TUTORIAL HOW TO#
It’s been a while since I wrote an article about my stm32plus C++ library for the STM32 series of MCUs so I thought I’d combine a long overdue catchup with a step-by-step tutorial that will show you how to set up a completely free and unrestricted STM32 development environment from scratch.