Self cultivation of embedded software engineers: in-depth analysis of Cortex-M3 ARM code compilation, link and startup process

This paper takes the automotive MCU chip AC7811 of Wuhan Jiekai technology as the hardware platform and uses GNU GCC as the development tool. Analyze the process of Compile, Link and Loader in detail, as well as the detailed analysis of image (binary program) startup. The whole process analysis involves RW read-write DATA segment, Copy from Fla ...

Posted by Dragoon1 on Wed, 15 Dec 2021 03:14:01 +0100

STM32F103C8T6 porting uCOS based on HAL Library

preface Learn the embedded real-time operating system (RTOS), take uc/OS as an example, transplant it to stm32F103, and build at least three (tasks): two tasks control the LED on-off in 1s and 3s cycles respectively; Another task sends "hello uc/OS! Welcome to RTOS multitasking environment!" through the serial port in a 2s cycle. ...

Posted by MikeTyler on Thu, 09 Dec 2021 05:43:52 +0100

Learning Notes IV. Reading and writing EEPROM for stm32f103 hardware based on cubemx

cubemx-based stm32f103 hardware read-write EEPROM An erasable memory is introduced today. EEPROM (Electrical Erasable Programmable read only memory) is a live, erasable programmable read-only memory. It is a memory chip with no data loss after power failure. EEPROM can erase existing information and reprogram it on a computer or on a dedicated ...

Posted by noeledoran on Wed, 08 Dec 2021 11:02:37 +0100

STM32F103C8T6 porting uCOS based on HAL Library

1, Using CubeMX to build STM32F103C8T6HAL Library 1. Configure RCC 2. Configure SYS 3. Set PC13 to GPIO_Output 4. Set serial port USART1 5. Setup project 6. Generate code 7. Modify code Add a statement to the while loop in the main function while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_ ...

Posted by muralimohan001 on Sat, 04 Dec 2021 22:06:40 +0100

Punctual atom STM32F103 (Elite version) -- window watchdog

Why window watchdog?         For the general watchdog, the program can refresh the watchdog at any time before it is reset, but there is a hidden danger. It is possible that the program runs disorderly and returns to the normal place, or the disordered program just performs the refresh watchdog operation. In ...

Posted by wystan on Thu, 02 Dec 2021 22:42:25 +0100

Temperature and humidity display of OLED based on stm32

1, SPI   1. Introduction SPI (Serial Peripheral Interface) is a synchronous serial data transmission standard proposed by Motorola Company. It is a high-speed, full duplex and synchronous communication bus, which is widely used in many devices. 2.SPI interface SPI interface is often called 4-wire serial bus, which works in master / slave m ...

Posted by Balmung-San on Tue, 30 Nov 2021 19:08:34 +0100

FreeRTOS semaphore --- binary semaphore

Semaphores can be used for resource management and task synchronization. Semaphores in FreeRTOS are divided into binary semaphores, computational semaphores, mutually exclusive semaphores and recursive mutually exclusive semaphores. 0x01 binary semaphore Binary semaphore is actually a queue with only one queue item. This special queue is eith ...

Posted by Saethyr on Fri, 26 Nov 2021 13:09:45 +0100

2021-11-12 stm32ll Library Series tutorial [3] - ADC single channel acquisition

Development board: Wildfire domineering V1 Chip: stm32f103ZET6 ADC: 1 CHANNEL: 11 GPIO: PC1 To create a new project 1. Open STM32CubeMx software 2. Select chip model: stm32f103ZETx 3. Configure project properties 4. Confirm clock source 5. Configure system clock 6. Open channel 11 of ADC1 7. Configuration structure typedef struct { ...

Posted by bouba on Fri, 12 Nov 2021 16:20:42 +0100

Communication learning between openmv and stm32 (digital recognition)

Premise: software installation and learning video explanation When we use the neural network in openmv, there is no nn library for you to call in the new version. It needs to be in the old version. Baidu cloud link: https://pan.baidu.com/s/1bgLiLMxyqqL9X3h5dN8cZA   Extraction code: behn   (can you praise this alone) The basic and u ...

Posted by lunas on Thu, 11 Nov 2021 04:01:39 +0100

STM32 interrupt and DMA communication programming

1, Interrupt Data output mode: Interrupt process: Interrupt program execution process: Function of interrupt: 1. It can solve the contradiction of data transmission between fast CPU and slow external devices. 2. The CPU can serve multiple external devices in time-sharing to improve the utilization of the computer. 3. The CPU can handle th ...

Posted by predator on Mon, 08 Nov 2021 21:22:44 +0100