<?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[uart0和写flash之间是否存在冲突]]></title><description><![CDATA[<p>FR8008A，目前使用PA0和PA1做uart0使用中断接收传感器数据（1s一次），同时设备隔一段时间保存一次flash。<br />
现在发现二者同时开启时可能会出现flash_erase后设备卡死无法写入flash的情况（可正常触发wdt并重启），flash操作之前GLOBAL_INT_DISABLE也没有效果，还是会卡死。<br />
这种可能是什么情况？<br />
目前的解决方法是在flash操作之前NVIC_DisableIRQ(UART0_IRQn)，flash操作之后再重新NVIC_EnableIRQ(UART0_IRQn)，这种方法是否存在风险？</p>
]]></description><link>http://www.freqchip.net:4567/topic/1797/uart0和写flash之间是否存在冲突</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 05:27:37 GMT</lastBuildDate><atom:link href="http://www.freqchip.net:4567/topic/1797.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 May 2026 09:35:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to uart0和写flash之间是否存在冲突 on Invalid Date]]></title><description><![CDATA[<p>FR8008A，目前使用PA0和PA1做uart0使用中断接收传感器数据（1s一次），同时设备隔一段时间保存一次flash。<br />
现在发现二者同时开启时可能会出现flash_erase后设备卡死无法写入flash的情况（可正常触发wdt并重启），flash操作之前GLOBAL_INT_DISABLE也没有效果，还是会卡死。<br />
这种可能是什么情况？<br />
目前的解决方法是在flash操作之前NVIC_DisableIRQ(UART0_IRQn)，flash操作之后再重新NVIC_EnableIRQ(UART0_IRQn)，这种方法是否存在风险？</p>
]]></description><link>http://www.freqchip.net:4567/post/4380</link><guid isPermaLink="true">http://www.freqchip.net:4567/post/4380</guid><dc:creator><![CDATA[zzr]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>