当前位置:网站首页>Summary of hardfault problem in RTOS multithreading
Summary of hardfault problem in RTOS multithreading
2022-06-25 08:43:00 【*_ Look up at the stars_*】
problem
Use minIni With INI Save the system parameters in the form of a file littlefs Caused by reading and writing under multithreading hardfault problem
To solve the process
0、 adopt RT-Thread Customize hardfault Process function print hardfault Information , Find out hardfault It happened in lvgl gui Threads ;
1、 Using the debugger to hardfault Printed lr Register address minus 5 Backtracking the address to find the occurrence hardfault The sentence is STM32 HAL Library SPI Transfer function , The library function should be OK , Incomprehensible
2、 The thought of hardfault Most of the problems are caused by pointer out of bounds or stack overflow , increase lvgl GUI Thread stack , After debugging again, it is found that hardfault, however hardfault Occurs in the event processing thread
3、 Increase the event processing thread stack ,hardfault Problem solving
summary
Through the solution process, we can find and speculate the cause : It may be due to the use of littlefs Called HAL library ,minIni call littlefs The interface of , Multi level nested function calls require a lot of stack space , And give lvgl GUI The stack of threads and event processing threads 1K, So the stack allocated to the thread should not be too stingy .
RTOS Multithreading hardfault Most of the problems are caused by stack overflows .
increase lvgl gui After thread , Debugging again found hardfault Occurs in the event processing thread , Increase the stack of event processing threads ,hardfault Problem solving
边栏推荐
- [515. find the maximum value in each tree row]
- Hyper-v:Hyper-v 第 1 代或第 2 代虚拟机
- GIL问题带来的问题,解决方法
- tp5与tp6的区别是啥呀?
- 配置、软件配置项、软件配置管理项辨析
- To achieve good software testing results, it is a prerequisite to build a good testing environment
- 声纹技术(四):声纹识别的工程部署
- 在华泰证券上面开户好不好,安不安全?
- Prepare these before the interview. The offer is soft. The general will not fight unprepared battles
- How to become a software testing expert? From 3K to 17k a month, what have I done?
猜你喜欢

How to calculate the independence weight index?

How to solve the 10061 error of MySQL in Linux

Similarity calculation method

How to do factor analysis? Why should data be standardized?

The city chain technology platform is realizing the real value Internet reconstruction!

City Chain technology platform, really Realizing value Internet reconstruction!

Exchange: manage calendar permissions

GPU calculation

How to calculate the distance between texts: WMD

各种同步学习笔记
随机推荐
In Section 5 of bramble pie project practice, Nokia 5110 LCD is used to display Hello World
How to calculate the independence weight index?
SwipeRefreshLayout+RecyclerView无法下拉问题排查
Iframe is simple to use, iframe is obtained, iframe element value is obtained, and iframe information of parent page is obtained
C language "recursive series": recursive implementation of 1+2+3++ n
Bluecmsv1.6- code audit
atguigu----17-生命周期
How to solve the 10061 error of MySQL in Linux
Go language learning tutorial (13)
Exchange: manage calendar permissions
How to implement a system call
Unity Addressable批量管理
What are the indicators of DEA?
UEFI:修复 EFI/GPT Bootloader
QSS 不同风格的按钮
关于I/O——内存与CPU与磁盘之间的关系
买股票通过客户经理的开户二维码开户资金是否安全?想开户炒股
Retrieval model rough hnsw
[515. find the maximum value in each tree row]
What is the role of software validation testing? What is the price of the confirmation test report?