<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[写flash 后读 flash 导致 bus fault]]></title><description><![CDATA[<p dir="auto">自己写的写 flash 函数，单次写 256 Bytes，循环写 flash 后再读 flash,容易导致如下错误</p>
<pre><code>psr: 0x01000000
[22:12:35.756] r00: 0x20010ec4
[22:12:35.759] r01: 0x20010ec8
[22:12:35.759] r02: 0x02150100
[22:12:35.762] r03: 0x20010ec4
[22:12:35.762] r04: 0x0200ac05
[22:12:35.765] r05: 0xdeadbeef
[22:12:35.765] r06: 0xdeadbeef
[22:12:35.768] r07: 0x20010e38
[22:12:35.768] r08: 0xdeadbeef
[22:12:35.771] r09: 0xdeadbeef
[22:12:35.771] r10: 0xdeadbeef
[22:12:35.774] r11: 0xdeadbeef
[22:12:35.774] r12: 0x0000000a
[22:12:35.777]  lr: 0x02004101
[22:12:35.777]  pc: 0x02008280
[22:12:35.780] hard fault on thread: main

[22:12:35.780] bus fault:
[22:12:35.783] SCB_CFSR_BFSR:0x82 PRECISERR SCB-&gt;BFAR:02150100
</code></pre>
<p dir="auto">但是我如果在写之后，添加一定的延时，比如 1ms （实测过），就可以正常运行。请问可能是什么原因？</p>
]]></description><link>https://forum.ytmicro.com/topic/2035/写flash-后读-flash-导致-bus-fault</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 19:28:05 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2035.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Jun 2026 14:15:41 GMT</pubDate><ttl>60</ttl></channel></rss>