Selected Compilation | Embedded Software Design and Development

Selected Compilation | Embedded Software Design and Development

Follow+Star public number, don’t miss wonderful content Author | strongerHuang WeChat public account | Embedded Column In order to facilitate everyone to review and check articles on public transportation, subways, and going out, I have carefully selected and categorized some articles: Embedded Software Architecture Design Layering Ideas Common “Safety” Operations of EEPROM in Projects Ideas … Read more

Understanding the Debugging Interfaces of STM32 Cortex-M Cores

Understanding the Debugging Interfaces of STM32 Cortex-M Cores

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | Embedded Column When learning MCU development, debugging is definitely an essential step. This article discusses the debugging interfaces related knowledge using STM32F1 and Cortex-M3 as examples (the principles are similar for other series chips/cores). 1 Overview In STM32, there … Read more

Transforming the NumWorks Calculator with Raspberry Pi

Transforming the NumWorks Calculator with Raspberry Pi

MAKER:Zardam/ Translated by:Endless Fun This time we will use the Raspberry Pi Zero to study STM32, focusing mainly on DMA and interrupt aspects, to modify the NumWorks calculator.Since the NumWorks calculator is powered by the STM32F412, why not try to combine them and see what happens? If you want to experience the features of NumWorks … Read more

Accurate Measurement of 200 Sheets of Paper: A Comprehensive Analysis

Accurate Measurement of 200 Sheets of Paper: A Comprehensive Analysis

Here is another group sharing for Problem F:Re-testing the first place of this group! We are the team from Hunan Normal University (Major: Applied Electronic Technology), and we won the national first prize for Problem F in the 2019 Electric Competition. We measured 135 sheets and are very happy to be invited by Darlwen to … Read more

Understanding the Causes of FreeRTOS Task Scheduling Failures

Understanding the Causes of FreeRTOS Task Scheduling Failures

Recently, a friend and I discussed some strange aspects of the FreeRTOS code generated by STM32CubeMX. void LED01Tog(void const * argument){ /* USER CODE BEGIN LED01Tog */ /* Infinite loop */ for(;;) { HAL_GPIO_TogglePin(GPIOF,GPIO_PIN_10); osDelay(500); } /* USER CODE END LED01Tog */} We added two LED toggle functions, compiled our code, and found that the … Read more

Why C++ is Not Recommended for Microcontroller Programming

Why C++ is Not Recommended for Microcontroller Programming

Generally speaking, when programming on microcontrollers, it is either assembly or C language, and it is rare to develop with C++, so why is it not recommended to develop microcontrollers with C++? Below, I will combine Keil and STM32 to explain the content of writing a running light program in C++, to see why C++ … Read more

Understanding Programming Environments for Microcontrollers

Understanding Programming Environments for Microcontrollers

Microcontroller programming is a practical skill; programs must run on a microcontroller platform to see results and accumulate programming experience. While studying microcontroller courses at school, one might feel a disconnect due to a lack of practical application. In fact, learning about microcontrollers is simple, and the first step is to understand the programming environment. … Read more

Testing Short Circuit Current of STM32 Microcontroller I/O Ports

Testing Short Circuit Current of STM32 Microcontroller I/O Ports

1. Introduction   This is the test circuit board made for the STM32 microcontroller. The main purpose is to verify whether the software development tools are functioning normally in the newly installed computer. The microcontroller software can now be downloaded via probe clips. Below, using this test circuit board, we will perform a hazardous measurement. We … Read more

STM32 Firmware Dump Tutorial: A Comprehensive Guide

STM32 Firmware Dump Tutorial: A Comprehensive Guide

Background Finally, with some rare free time and a long-lost passion, I quickly got to work. This is also a preliminary experience, so the goal is simply to dump the program and perform basic disassembly. Toolset Introduction Software Part OpenOCD Open On-Chip Debugger, a well-known open-source hardware debugger. Supports various debuggers like (St-link) and (jlink) … Read more