1 Star 0 Fork 1

鲸落 / STM32F4_EasyLogger_SystemView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 3.43 KB
一键复制 编辑 原始数据 按行查看 历史
鲸落 提交于 2023-09-09 16:02 . (Readme):修改说明文档

#EasyLogger_ SystemView

####Introduction

  1. Developed based on STM32 Standard Peripheral Libraries V1.9.0< Br>
  2. Developed based on the latest version of FreeRTOS V10.5.1< Br>
  3. Enable the EasyLogger Async function to perform multithreaded log output< Br>
  4. SystemView monitoring function, providing new methods for monitoring system behavior< Br>
  5. This project uses the STM32F401CCU6 core board( https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dcM0m6q&id=631401381886&_u=99lhsfm0265 )Conduct development; ####Software Architecture This project is mainly developed based on FreeRTOS V10.5.1, using the STM32 Standard Peripheral Libraries V1.9.0 library and the SystemView monitoring software to provide new methods for monitoring system behavior< Br> FreeRTOS, EasyLogger, and SystemView are all stored in Third_ Under the Party folder, the STM32 standard library is located in the Libraries folder, and unnecessary functions can be directly deleted.

####Installation Tutorial

  1. This project uses STD library V1.9.0, [download address]( https://www.st.com/zh/embedded-software/stm32-standard-peripheral-libraries.html );
  2. This project uses FreeRTOS V10.5.1, [download address]( https://github.com/FreeRTOS/FreeRTOS );
  3. The EasyLooger project used in this project, [download address]( https://github.com/armink/EasyLogger );
  4. The SystemView monitoring software used in this project, version 3.52a, is available at [download address]( https://www.segger.com/downloads/systemview/ );
  5. The SystemView monitoring software needs to be used in conjunction with JLinkV9 and above versions, and there are no official restrictions on authorization, which is very conscientious;

####Instructions for use #####EasyLogger Instructions To use the Async function, EasyLogger mainly needs to complete the following key steps:

  1. Enable the serial DMA function and enable the DMA transmission completion interrupt;
  2. Create 3 binary semaphores, note: Do not create mutex semaphores, as mutexes cannot be used in interrupts;
SemaphoreHandle_ T xSemaphore_ Output_ Lock// Print out semaphore
SemaphoreHandle_ T xSemaphore_ DMA_ Lock// DMA printing completion signal
SemaphoreHandle_ T xSemaphore_ Elog_ Async// Abnormal log output semaphore
  1. Create an EasyLogger task using a signal blocking method. When there is printing information that needs to be output, a semaphore is sent, and the task is awakened for printing; EasyLogger Asynchronous Printing

#####SystemView Instructions SystemView usage steps:

  1. Download [SystemView software]( https://www.segger.com/downloads/systemview/ ), and install it;
  2. Download [SystemView Target Sources]( https://www.segger.com/downloads/systemview/systemview_target_src );
  3. Simply add the following files to the project and add the path corresponding to the header file:
SEGGER_ SYSVIEW_ FreeRTOS. c
SEGGER_ SYSVIEW_ Config_ FreeRTOS. c
SEGGER_ RTT. C
SEGGER_ RTT_ Printf. c
SEGGER_ SYSVIEW. c
  1. In the FreeRTOSConfig. h file, add a header file:
#Include "SEGGER_SYSVIEW-FreeRTOS. h"
  1. In the main. c file, add initialization configuration, which must be placed before peripheral initialization and after system startup:
SEGGER_ SYSVIEW_ Conf();
  1. Start the SystemView software, select JLink, connect to the target board, select the target board serial port, and click Start to see the system running effect; SystemView Renderings
C
1
https://gitee.com/Mathaw/STM32F4_Easylogger_SystemView.git
git@gitee.com:Mathaw/STM32F4_Easylogger_SystemView.git
Mathaw
STM32F4_Easylogger_SystemView
STM32F4_EasyLogger_SystemView
master

搜索帮助