芯片stm32f103VB RT_Thread版本1.2.0,想要挂载SPI Flash,在finsh中mkfs(“elm”,“flash1”)中出现如下。
finsh>>mkfs ("elm","flash1")
-----LINE = 198-----
-----LINE = 205-----
-----LINE = 208-----
-----LINE = 243-----
-----LINE = 245-----
-----LINE = 249-----
-----LINE = 251-----
psr: 0x21000000
r00: 0x20001fe0
r01: 0x10000000
r02: 0xf0000000
r03: 0x00000020
r04: 0xffffffec
r05: 0x20002440
r06: 0x00000000
r07: 0x00000000
r08: 0x00000001
r09: 0xdeadbeef
r10: 0xdeadbeef
r11: 0xdeadbeef
r12: 0x08009269
lr: 0x080079b9
pc: 0x080079b8
hard fault on thread: tshell
thread pri status sp stack size max used left tick error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
tshell 0x14 ready 0x00000094 0x00000800 0x000002bc 0x00000008 000
tidle 0x1f ready 0x00000044 0x00000100 0x00000064 0x0000000d 000
timer 0x04 suspend 0x0000005c 0x00000200 0x0000005c 0x00000009 000
bus fault:
SCB_CFSR_BFSR:0x04 IMPRECISERR
我跟踪程序发现是在这个函数里面死掉的f_mount((BYTE)index, RT_NULL);求助各位大神