Summary of Exciting Articles on Automotive Electronics Embedded Systems – Issue 2

Summary of Exciting Articles on Automotive Electronics Embedded Systems - Issue 2

Since the update of the first article on May 30, 2021, until today, the last day of 2023, we have authored 138 original articles over the course of more than two years. From initial learning notes to now being able to share some experience summaries, we have grown continuously along the way, thanks to everyone’s … Read more

Do Microcontroller Projects Require Software Architecture?

Do Microcontroller Projects Require Software Architecture?

Follow+Star Public Account Number, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | Embedded Column It is often heard that someone says: “For such a small project like a microcontroller, why consider software architecture…” Although microcontroller projects are small, they are still projects, as the saying goes, “Though the sparrow is … Read more

Memory Optimization Techniques in Microcontroller Development (C Language Version)

Memory Optimization Techniques in Microcontroller Development (C Language Version)

First, let’s talk about As we all know, the biggest difference between microcontroller programming and computer programming is that microcontrollers have very limited resources, and most low-end microcontrollers do not have an operating system. Except for some embedded-level chips that use Linux, most operations are done with simple RTOS, and some simple applications or chips … Read more

Understanding CRC Principles and Applications in Microcontrollers

Understanding CRC Principles and Applications in Microcontrollers

转自 | 瑞萨嵌入式小百科 CRC:Cyclic Redundancy Check,即循环冗余校验码。 CRC是数据通信领域中最常用的一种查错校验码,其特征是信息字段和校验字段的长度可以任意选定。 循环冗余检查(CRC)是一种数据传输检错功能,对数据进行多项式计算,并将得到的结果附在帧的后面,接收设备也执行类似的算法,以保证数据传输的正确性和完整性。 —来自百度百科 学电子、计算机相关专业的同学都应该学习过CRC的基础原理。其原理说难不难,可以说就是一个公式。同时,说简单也不简单,这个公式里面包含的内容不简单。 点击查看大图 网络上关于CRC基础原理的内容比较多,可以搜索关键词“循环冗余校验”进行查询。 今天结合瑞萨RA MCU自带硬件CRC计算单元给大家讲讲其原理及监听应用。 瑞萨RA单片机硬件CRC计算单元采用固定的多项式发生器来计算8位或者32位数据的CRC校验值,对数据传输或数据存储的一致性、完整性进行验证。这篇文章重点介绍RA MCU中的CRC模块和使用方法。 RA MCU中的CRC 计算单元规格如下: 点击查看大图 注1. 该函数不能划分CRC计算中使用的数据。以8位或32位为单位写入数据。 CRC 计算单元框图如下: 那么接下来就是如何使用了,打开工程中的configuration.xlm文件,在Stacks窗口中,可以通过“New Stack → Monitoring → CRC (r_crc)”添加该模块。该模块的属性窗口如下: 点击查看大图 在应用程序中使用CRC模块的基本例程如下: void crc_example (){uint32_t length;uint32_t uint8_calculated_value;length = sizeof(g_data_8bit) / sizeof(g_data_8bit[0]);crc_input_t example_input ={.p_input_buffer = g_data_8bit,.num_bytes = length,.crc_seed = 0,};/* Open CRC module with 8 … Read more

Easily Run Linux on STM32

Easily Run Linux on STM32

Follow+Star Public Account Number, don’t miss exciting content Author | strongerHuang Material Source | ST, MYiR Official Website Last month, STMicroelectronics launched the new generation of 64-bit Cortex-A35 core, with a frequency of up to 1.5GHz STM32MP2x series microprocessors (MPU), which has taken the STM32MP series processors to a new level. Recently, I received a … Read more

Making AI Accessible with STM32

Making AI Accessible with STM32

▲ Click the above to follow STM32 Artificial intelligence has moved from a high-tech domain to multi-scenario applications,and in this process, embedded technology will become an important carrier platform for AI implementation. Not long ago, the 2020 World Artificial Intelligence Conference (WAIC) just concluded in Shanghai, reigniting the concept of artificial intelligence in the industry. … Read more

Understanding STM32 Clocks

Understanding STM32 Clocks

Introduction to STM32 Clock Sources 1. The main clock sources of STM32 are: Internal Clock External Clock Phase Locked Loop (PLL) Frequency Multiplier Output Clock 1.1 Detailed Introduction HSI (Internal High-Speed Clock) It is an RC oscillator with a frequency of up to 8MHz, which can be used as the system clock and PLL input. … Read more

Detailed Explanation of STM32 Microcontroller Minimum System

Detailed Explanation of STM32 Microcontroller Minimum System

STM32F103RCT6: STM32F103RCT6 is an embedded microcontroller integrated circuit (IC) with a 32-bit Cortex-M3 core processor, a speed of 72MHz, a program memory capacity of 256KB, program memory type of FLASH, RAM capacity of 48K, and package LQFP64. STM32 Microcontroller Naming Rules: Minimum System of STM32 Microcontroller: The so-called minimum system of the microcontroller is a … Read more

Key Steps to Implement Bootloader Jump in STM32 Microcontroller

Key Steps to Implement Bootloader Jump in STM32 Microcontroller

This issue’s topic: More and more embedded devices now support remote automatic upgrades, eliminating the need for a downloader. This greatly facilitates device maintenance. To enable remote upgrades, it is necessary to write program code that supports upgrades, which can be referred to as BootLoader. This means dividing the device’s program code into two parts: … Read more