BUG: sleeping function called from invalid context at kernel/rwsem.c:20

本文记录了一次MCU(微控制器单元)遇到的严重错误,导致系统不断报告BUG并最终重启。错误信息显示在原子操作上下文中进行了调度,这是不被允许的,可能由软件错误引起。此外,还提到了I2C写入失败的问题,可能是由于设备或地址不存在。为解决这些问题,考虑更换MCU芯片和晶振。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MCU:

死翘翘了

主控:

[   29.783959] BUG: sleeping function called from invalid context at kernel/rwsem.c:20
[   29.791935] in_atomic(): 1, irqs_disabled(): 0, pid: 115, name: xxxxxx
[   29.799732] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.828763] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.858248] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.879860] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.900666] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.931765] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.939093] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.956681] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.979849] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   29.999891] BUG: scheduling while atomic: xxxxxx/115/0x00000101
[   30.031213] Restarting system.

i2c_write:103 write data error:No such device or address

更换MCU芯片和晶振

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值