<?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[SPI的SDK Spi_Master_Slave_Demo和Spi_Master_Slave_Dma_Demo clock初始化失败。基于YTM32B1LE0-EVB开发板]]></title><description><![CDATA[<p dir="auto">程序调用CLOCK_DRV_Init，返回值为STATUS_SCU_CLK_SWITCH_TIMEOUT。程序就运行不下去了。<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1746/95c21c0d-3338-44b7-81d9-785509157490.png" alt="410546bd-4962-4308-a394-87f9159aa745-image.png" class=" img-fluid img-markdown" /><br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1746/5966f91e-ce37-49eb-b081-202771171f59.png" alt="e3ee154d-a10f-4f59-b027-2e4dbf9d7177-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">扒源码发现是<br />
CLOCK_SYS_SetScuConfiguration -&gt;<br />
CLOCK_SYS_ConfigureSystemClock(SCU_SYSTEM_CLOCK_SRC_SIRC); -&gt;<br />
在这个函数里，没有设置成要设的SIRC，超时了。</p>
<p dir="auto">但是我跑I2C的例程，是可以正常初始化的，IIC的例程可以正常运行。看了一下SCU和CMU的配置，IIC和SPI也是一样。<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1746/86fedc96-e0da-4703-af1d-e686ec6894ee.png" alt="950ef82e-7d44-4d40-91c8-3703b8132a0d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">只有IPC的配置不一样。<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1746/ce7f6f56-aa8b-440d-a7d7-b0c9a73ff339.png" alt="d52511fe-bac1-46fb-a9c7-9918a50fbfd7-image.png" class=" img-fluid img-markdown" /><br />
所以这里求助下，这是什么原因？</p>
]]></description><link>https://forum.ytmicro.com/topic/1935/spi的sdk-spi_master_slave_demo和spi_master_slave_dma_demo-clock初始化失败-基于ytm32b1le0-evb开发板</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 11:58:19 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/1935.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2026 06:47:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SPI的SDK Spi_Master_Slave_Demo和Spi_Master_Slave_Dma_Demo clock初始化失败。基于YTM32B1LE0-EVB开发板 on Fri, 08 May 2026 07:03:59 GMT]]></title><description><![CDATA[<p dir="auto">是这个问题，新生成的Demo，忘记改了。谢谢！</p>
]]></description><link>https://forum.ytmicro.com/post/8397</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8397</guid><dc:creator><![CDATA[WuXiang]]></dc:creator><pubDate>Fri, 08 May 2026 07:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to SPI的SDK Spi_Master_Slave_Demo和Spi_Master_Slave_Dma_Demo clock初始化失败。基于YTM32B1LE0-EVB开发板 on Fri, 08 May 2026 06:53:46 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://forum.ytmicro.com/topic/1500/iar-debug-clock-%E5%88%9D%E5%A7%8B%E5%8C%96%E5%A4%B1%E8%B4%A5%E9%97%AE%E9%A2%98%EF%BC%8C%E7%9C%8B%E4%B8%80%E4%B8%8B%E6%98%AF%E5%90%A6%E6%98%AF%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98">https://forum.ytmicro.com/topic/1500/iar-debug-clock-初始化失败问题，看一下是否是这个问题</a></p>
]]></description><link>https://forum.ytmicro.com/post/8396</link><guid isPermaLink="true">https://forum.ytmicro.com/post/8396</guid><dc:creator><![CDATA[Kirk]]></dc:creator><pubDate>Fri, 08 May 2026 06:53:46 GMT</pubDate></item></channel></rss>