当前位置:网站首页>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
边栏推荐
- How to calculate the positive and negative ideal solution and the positive and negative ideal distance in TOPSIS method?
- 35岁腾讯员工被裁员感叹:北京一套房,存款700多万,失业好焦虑
- How to design test cases
- 4 raisons inconnues d'utiliser le "déplacement sûr à gauche"
- linux中的mysql有10061错误怎么解决
- Getting to know the generation confrontation network (11) -- using pytoch to build wgan to generate handwritten digits
- How to do factor analysis? Why should data be standardized?
- Sharepoint:sharepoint server 2013 and adrms Integration Guide
- Analysis of a video website m3u8 non perceptual encryption
- Problems caused by Gil problems and Solutions
猜你喜欢
检测点是否在多边形内
Software engineering review questions
Easyplayer streaming media player plays HLS video. Technical optimization of slow starting speed
Bluecmsv1.6- code audit
Getting to know the generation confrontation network (11) -- using pytoch to build wgan to generate handwritten digits
NIPS 2014 | Two-Stream Convolutional Networks for Action Recognition in Videos 阅读笔记
LVS-DR模式单网段案例
How to calculate the correlation coefficient and correlation degree in grey correlation analysis?
获取扫码的客户端是微信还是支付宝
Summary of NLP data enhancement methods
随机推荐
Iframe is simple to use, iframe is obtained, iframe element value is obtained, and iframe information of parent page is obtained
买股票通过客户经理的开户二维码开户资金是否安全?想开户炒股
Summary of NLP data enhancement methods
各种同步学习笔记
C language "Recursion Series": recursively realizing the n-th power of X
开户券商怎么选择?在线开户是安全么?
QSS 不同风格的按钮
How to calculate the correlation coefficient and correlation degree in grey correlation analysis?
Index analysis of DEMATEL model
【515. 在每个树行中找最大值】
声纹技术(七):声纹技术的未来
4 raisons inconnues d'utiliser le "déplacement sûr à gauche"
Hyper-v:hyper-v generation 1 or generation 2 virtual machines
The city chain technology platform is realizing the real value Internet reconstruction!
tp5与tp6的区别是啥呀?
How to calculate the fuzzy comprehensive evaluation index? How to calculate the four fuzzy operators?
微信小程序_7,项目练习,本地生活
Is there any risk in the security of new bonds
进击的技术er,遇见实习岗位信息
Discrimination of configuration, software configuration items and software configuration management items