STM32芯片:STM32F030C8TX
MCU通过TI 充电芯片供电,在充电芯片给系统供电并给电池充电过程中,主板的温度非常高(表面温度不超80度),导致MCU程序挂了,IWDG都不起作用了,log如下:
[18:04:31][main:] feed_dog
[18:04:31][bq25890:] reg:0xb read: 0x96
[18:04:31][bq25890:] bq25890_led_update_status
[18:04:31]psr: 0x00000000
[18:04:31] pc: 0x00000002
[18:04:31] lr: 0x08007119
[18:04:31]r12: 0x200019f0
[18:04:31]r03: 0x08002f45
[18:04:31]r02: 0x0000f7ff
[18:04:31]r01: 0x00000100
[18:04:31]r00: 0x00000001
[18:04:31]hard fault on thread: bat_thre
[18:04:31] thread pri status sp stack size max used left tick error
[18:04:31]———— —— ———- ————— ————— ————— ————— —-
[18:04:31]%-8.*s 0x08 suspend 0x00000150 0x00000400 0x00000150 0x14 000
[18:04:31]bat_thre 0x02 ready 0x000000c0 0x00000400 0x00000130 0x00000008 000
[18:04:31]tshell 0x19 suspend 0x00000088 0x00000400 0x00000088 0x0000000a 000
[18:04:31]tidle 0x1f ready 0x00000054 0x00000100 0x00000054 0x0000000b 000
部分code:
线程会一直跑:
static void battery_thread(void *p)
{
更多回帖