Understanding CAN Bus Protocol – CANOpen Series Tutorial 02

Understanding CAN Bus Protocol - CANOpen Series Tutorial 02

Follow Our Public Account to Not Miss Any Updates!! This tutorial was originally published by the author strongerHuang in September 2018. Tags: CAN, CANOpen, CanFestival Copyright: Commercial Use Prohibited Disclaimer:This document is for personal learning use only. Please contact the author for authorization before reprinting. 1Introduction The previous article discussed CAN and CANOpen, and I … Read more

Deep Dive Analysis of CanFestival Architecture

Deep Dive Analysis of CanFestival Architecture

Follow/Star Public Account to never miss any updates! This tutorial is originally published by the author strongerHuang in October 2018. Tags: CAN, CANOpen, CanFestival Copyright: Commercial use prohibited Disclaimer:This document is for personal learning use only. For reprinting, please contact the author for authorization through the public account. 1Introduction In the previous article of this … Read more

STM32 Bare Metal Programming 04 – Makefile Automation

STM32 Bare Metal Programming 04 - Makefile Automation

Makefile: Build Automation We can use the make command line tool instead of manually typing in “compile”, “link”, and “flash” commands, automating the entire process. The make tool uses a configuration file called Makefile to read the instructions for executing actions. This automation is great because it also documents the process of building firmware and … Read more

How to Ensure Compatibility Between Keil4 and Keil5 When Replacing STM32 with GD32?

How to Ensure Compatibility Between Keil4 and Keil5 When Replacing STM32 with GD32?

1. Project Background Due to the unavailability of STM32 chips, we have to use domestic alternative chips. This article uses the GigaDevice GD32F103C8T6, so it’s necessary to download the corresponding MCU firmware library and device library from the official website. Then I found that the examples in the firmware library are written in Keil4 projects, … Read more

Why Keil Hasn’t Been Phased Out Despite Its Challenges

Why Keil Hasn't Been Phased Out Despite Its Challenges

This topic seems like a false proposition, because I think Keil is not very difficult to use, except for frequent lag, inexplicable freezes, and lack of flexible expansion. In fact, as an embedded software development tool, Keil has a long-standing presence and wide application in the industry. Although some people believe that Keil has some … Read more

2.4G Wireless Module NRF2401 Overview

2.4G Wireless Module NRF2401 Overview

The RF24L01+ operates in the 2.4~2.5GHz frequency band, features automatic retransmission, has 6 data transmission channels, and a maximum wireless transmission rate of 2Mbits. The MCU can access the chip’s registers for configuration via the SPI interface, enabling control of the module and the realization of wireless communication through this module. For specific details, refer … Read more

STM32G4 TIM+SPI+DMA Application Example

STM32G4 TIM+SPI+DMA Application Example

Currently, there are STM32 users developing products using the STM32G474R chip, where TIM1 is used for power drive, with TIM1 operating in center-aligned counting mode. There is a demand to trigger external ADC device sampling at the moment indicated by the arrow in the figure below during each cycle of TIM1. After the ADC completes … Read more

Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Someone is using the STM32G4 internal SPI configured as a slave full-duplex mode, using DMA for receiving. When the DMA is configured to CIRCULAR mode, problems occur where data transmission results in CRC verification failures and reception anomalies. If the DMA transfer mode is configured to NORMAL, there are no issues, and the received data … Read more

Can MCU Access Non-Standard SPI Interfaces?

Can MCU Access Non-Standard SPI Interfaces?

Currently, many precision analog-to-digital converters (ADCs) have a Serial Peripheral Interface (SPI) or some form of serial interface to communicate with controllers, including Microcontroller Units (MCUs), DSPs, and FPGAs. The controller writes to or reads from the internal registers of the ADC and reads the conversion codes. The PCB wiring for SPI is simple, and … Read more