Tag Archives: CubeMX

Printer from calculator, part 2

Continued from part 1. The printer from the calculator is a neat toy, but we want a real USB printer. So, using my new STM32F103 CubeMX USB printer class for communication with the host computer and some tricky INT based … Continue reading

Posted in Anything, MCU | Tagged , , , , | Leave a comment

ARM:0018 STM32CubeMX hack – printer class device

This article is about printer class device for STM32F103 and STM32CubeMX. Somehow there is NO printer device class example in whole internet. There ar CDC or HID examples copied from same STM32CubeMX example with minimal explanation, few of mass storage … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0016 STM32CubeMX – problems with RTC

This is a very short message about proper initialization of RTC (real time clock). There is one trick designed in HAL and in several internet resources it is wrongly described. Proper RTC init: Find “MX_RTC_Init(void)“, scroll to “USER CODE BEGIN … Continue reading

Posted in Anything, MCU | Tagged , , | Leave a comment

ARM:0012 STM32CubeMX – USB HID mouse

Next canned project for STM32F103 MCU using the cube- USB HID mouse. HID (human interface device) means it is the standard device compatible with all computers with USB ports. STM32CubeMX has all device descriptors and init procedures already built in. … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0011 STM32CubeMX – Pin interrupts

Next tutorial- interrupts, keyboard (PS2 input) and USB COM port. I have a small keyboard in my stash. It was from some flop device made by Amstrad. This keyboard has a 4 pin connector and I had hoped that it … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0009a – bug in CubeMX makefile

First you generate code, then you regenerate code, do make and… > “make.exe” all make.exe all -C .. make.exe[1]: Entering directory ‘F:/MyDoks/elektronika/ARM/daiktas-cube/SINGLE_UART’ Makefile:118: *** missing separator. Stop. make.exe[1]: Leaving directory ‘F:/MyDoks/elektronika/ARM/daiktas-cube/SINGLE_UART’ make.exe: *** [makefile:3: all] Error 2 > Process Exit … Continue reading

Posted in Anything, MCU | Tagged , , | 1 Comment

ARM:0010 STM32CubeMX- USB 2 COM dongle

This article is also an introduction, but this time a bit more practical- USB to serial port (COM) dongle. This tutorial will show how to create USB devices from “canned” software using only STM32CubeMX. For this example I used some … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0009 STM32CubeMX tool from STM MCUs

There will be several posts about using the cheapest MCU board from China. So called Bluepill- PCB containing STM32F103C8T6 microcontroller, USB connector and some small elements. For a few bucks/euros we have upto 72MHz CPU, 64Kb of ROM and up … Continue reading

Posted in Anything, MCU | Tagged , , | Leave a comment