FATFS Function Usage Notes

1.FRESULT f_opendir(DIR *dp,const TCHAR *path); Function: Open a directory parameterfunctiondpA pointer to an empty directory object structure that stores directory information about to be openedpathRoute The return value FR_OK(0) indicates that the function was executed successfully and the directory object structure was created for subsequen ...

Posted by carlosx2 on Sat, 18 Sep 2021 20:35:46 -0700

FreeRTOS and RT-Thread for Interrupt and Critical Zone Processing

1. Management of interruptions Freertos manages system interrupts by manipulating BASEPRI registers, and the management priority is defined in the header file FreeRTOSConfig.h #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY    5 Setting the maximum priority that FreeRTOS can manage does not belong to the FreeRTOS pipeline, and interrupt ...

Posted by Warmach on Sat, 18 Sep 2021 19:26:01 -0700

Transplantation of 7 feet 0.96 "to HAL library oled summary

We usually use various types of chips to do some projects. At this time, among different chips (due to different flash and io ports), it is the most troublesome process to transplant some of our original API s. The following are some of my experiences in porting OLED s to STM32F103C6T6 (the question is that C6T6 is cheap). 0.96-inch oled has m ...

Posted by frosty1433 on Sat, 18 Sep 2021 09:41:00 -0700

stm32mp157 wm8960 audio driver debugging notes

The debugging wm8960 audio driver encountered a lot of pits. After several days of research, it was finally debugged. Drive commissioning steps Whether the driver can be loaded successfully is not only the first step of debugging, but also one of the most critical steps. 1. View the hardware schematic diagram: 2. Open the corresponding devi ...

Posted by boiy on Fri, 17 Sep 2021 07:52:39 -0700

Serial DCB Parameter Meaning--WIN32 API Serial Port

DCB structure must be used when programming serial port with WIN32 API. First, first, the DCB structure typedef struct _DCB { DWORD DCBlength; DWORD BaudRate; DWORD fBinary: 1; DWORD fParity: 1; DWORD fOutxCtsFlow:1; DWORD fOutxDsrFlow:1; ...

Posted by roflpwnt on Wed, 15 Sep 2021 16:24:57 -0700

I2C communication and EEPROM

iic protocol characteristic: With few pins, simple hardware implementation and strong scalability, it does not need external transceiver equipment. It is widely used in the communication between multiple integrated circuits (IC S) in the system.Two bus lines, one bidirectional serial data line (SDA) and one serial clock lineEach device connec ...

Posted by Mchl on Wed, 15 Sep 2021 11:20:24 -0700

FreeRTOS_ time management

Portal: Blog summary post Note content reference (FreeRTOS Development Manual of punctual atom, authoritative guide of Cortex-M3, authoritative guide of Cortex-M3 and Cortex-M4, etc.) and network notes Code environment: FreeRTOS generated by CubeMX (STM32F407) outline FreeRTOS time management part mainly involves system b ...

Posted by toxic_brain on Sun, 12 Sep 2021 14:37:10 -0700

FreeRTOS_ Interrupt configuration

Portal: Blog summary post Portal: Cortex-M3_ Interrupt, exception Portal: Cortex-M3 notes_ Basics Note content reference (FreeRTOS Development Manual of punctual atom, authoritative guide of Cortex-M3, authoritative guide of Cortex-M3 and Cortex-M4, etc.) 1. Interrupt configuration macro When STM32 uses FreeRTOS, the priority g ...

Posted by mndwn on Sun, 12 Sep 2021 00:40:36 -0700

cubemx configuration stm32__ Input and output of GPIO

cubemx configuration STM32 (III)__ Input and output of GPIO 1. Establish the project and carry out core configuration According to the article 2. Use cubemx to configure STM32 (II)__ Core configuration Configure as follows: CubeMX new project CubeMX graphic configuration debug clock signal CubeMX graphic configuration clock tree CubeMX graphi ...

Posted by satyricon on Sat, 04 Sep 2021 19:35:56 -0700