当前位置:网站首页>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
边栏推荐
- Is there any risk in making new bonds
- mysql之Unknown table ‘COLUMN_STATISTICS‘ in information_schema (1109)
- 紧急行政中止令下达 Juul暂时可以继续在美国销售电子烟产品
- 如何实现一个系统调用
- Unity addressable batch management
- About i/o -- the relationship between memory and CPU and disk
- 声纹技术(二):音频信号处理基础
- Is it safe to open a stock account online now?
- 声纹技术(四):声纹识别的工程部署
- UEFI: repair efi/gpt bootloader
猜你喜欢

Easyplayer streaming media player plays HLS video. Technical optimization of slow starting speed

紧急行政中止令下达 Juul暂时可以继续在美国销售电子烟产品

软件测试月薪10K如何涨到30K,只有自动化测试能做到

linux中的mysql有10061错误怎么解决

初识生成对抗网络(11)——利用Pytorch搭建WGAN生成手写数字

How to calculate the distance between texts: WMD

NIPS 2014 | Two-Stream Convolutional Networks for Action Recognition in Videos 阅读笔记

What do various optimizers SGD, adagrad, Adam and lbfgs do?

How to design test cases

wav文件(波形文件)格式分析与详解
随机推荐
4 reasons for adopting "safe left shift"
城鏈科技平臺,正在實現真正意義上的價值互聯網重構!
Swiperefreshlayout+recyclerview failed to pull down troubleshooting
Various synchronous learning notes
如何实现一个系统调用
Is there any risk in the security of new bonds
Problems caused by Gil problems and Solutions
What are the indicators of entropy weight TOPSIS method?
Index analysis of DEMATEL model
With the beauty of technology enabled design, vivo cooperates with well-known art institutes to create the "industry university research" plan
C language: count the number of characters, numbers and spaces
openid是什么意思?token是什么意思?
声纹技术(七):声纹技术的未来
第五天 脚本与UI系统
GPU calculation
Word2vec, phrases, phraser, keyedvectors commonly used in gensim
Nips 2014 | two stream revolutionary networks for action recognition in videos reading notes
Summary of NLP data enhancement methods
Unity addressable batch management
How to solve the 10061 error of MySQL in Linux