<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63</link><description>Hey Nordic Team, 
 I&amp;#39;m facing an issue while flashing the audio application on our custom PCB. The interfaces of the custom PCB pretty much match those of nRF5340 Audio DK. However, when I try to flash the audio application, it throws this error 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Mar 2025 12:29:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63" /><item><title>RE: CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/thread/526914?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 12:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:707ae061-8199-4e58-a738-cf111e6e994d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There might be problem with SPI communication. You could try to look into SD card code which also uses SPI in audio application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/thread/526727?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 11:10:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcca5aff-305d-4c54-a73e-2c86f77e6df5</guid><dc:creator>SohamGhugare</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63/526722"]Can you provide additional details about this? What did you do exactly when you isolated the function, and it ran fine?[/quote]
&lt;p&gt;Took the codec files, put them in a separate project and called the hw_codec_init() function, thats it. This works perfectly fine without any errors, and I even tried&amp;nbsp;writing a tone generator config&amp;nbsp;to the codec and that worked as well.&amp;nbsp;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63/526722"]Which board did you use for testing?[/quote]
&lt;p&gt;We are using our custom PCB for testing, the interfaces are quite the same as the nRF5340 Audio DK. (I&amp;#39;m attaching the PCB images below)&lt;/p&gt;
&lt;p&gt;This is everything I have noticed with the audio application as of now:&lt;/p&gt;
&lt;p&gt;(Toolchain v2.9.0, SDK v2.9.0): The entire application code works perfectly fine on the audio dk. But on custom PCB, the HW Codec fails to initialize in the application code, however if I run the hw codec code separately without enabling any other interfaces, it works perfectly fine.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63/526722"]Can you provide full application log?[/quote]
&lt;p&gt;Here&amp;#39;s the entire application log&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***

HL [00:00:02.254,852] &amp;lt;inf&amp;gt; fw_info: 
         nRF5340 Audio nRF5340 Audio DK cpuapp                      
         NCS base version: 2.9.0                            
         Cmake run : Sun Mar 09 00:25:22 2025
HL [00:00:02.254,852] &amp;lt;inf&amp;gt; fw_info: ------- DEBUG BUILD -------
HL [00:00:02.254,882] &amp;lt;inf&amp;gt; fw_info: HEADSET left device
HL [00:00:02.329,437] &amp;lt;inf&amp;gt; bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 6.0 (0x0e), Revision 8299
HL [00:00:02.329,650] &amp;lt;inf&amp;gt; bt_mgmt: Local identity addr: FD:6E:86:18:20:38 (random)
HL [00:00:02.548,431] &amp;lt;err&amp;gt; CS47L63: Failed to reset CS47L63
HL [00:00:02.548,431] &amp;lt;err&amp;gt; audio_system: Failed to initialize HW codec: -6
HL [00:00:02.548,431] &amp;lt;err&amp;gt; main: ERR_CHK Err_code: [-6] @ line: 634
HL [00:00:02.548,461] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x0000000c  r2/a3:  0x0000000b
HL [00:00:02.548,461] &amp;lt;err&amp;gt; os: r3/a4:  0x00000003 r12/ip:  0x20003ba8 r14/lr:  0x0005485d
HL [00:00:02.548,461] &amp;lt;err&amp;gt; os:  xpsr:  0x29100000
HL [00:00:02.548,461] &amp;lt;err&amp;gt; os: s[ 0]:  0x00063bc4  s[ 1]:  0x00054915  s[ 2]:  0x000353a5  s[ 3]:  0x00000004
HL [00:00:02.548,492] &amp;lt;err&amp;gt; os: s[ 4]:  0x2001c6c8  s[ 5]:  0x000353a5  s[ 6]:  0x000353a5  s[ 7]:  0x2001c6c8
HL [00:00:02.548,492] &amp;lt;err&amp;gt; os: s[ 8]:  0x2001c690  s[ 9]:  0xffffffff  s[10]:  0xffffffff  s[11]:  0x00054959
HL [00:00:02.548,492] &amp;lt;err&amp;gt; os: s[12]:  0x000649d0  s[13]:  0x000645cc  s[14]:  0xfffffffa  s[15]:  0x0000027a
HL [00:00:02.548,492] &amp;lt;err&amp;gt; os: fpscr:  0x000353a5
HL [00:00:02.548,522] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000028f8
HL [00:00:02.548,522] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
HL [00:00:02.548,553] &amp;lt;err&amp;gt; os: Current thread: 0x20005f58 (main)
HL [00:00:02.548,553] &amp;lt;err&amp;gt; error_handler: Caught system error -- reason 3. Entering infinite loop&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PCB Images:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WhatsApp-Image-2025_2D00_03_2D00_11-at-16.31.39.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WhatsApp-Image-2025_2D00_03_2D00_11-at-16.31.39-_2800_1_2900_.jpeg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/thread/526722?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 10:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:279b80cd-51b2-4d66-adfc-961616940483</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="SohamGhugare"]isolating the same function and running it separately works perfectly fine. I even tried isolating and printing the device id, it prints correctly, but with the audio application it just prints 0x00.[/quote]
&lt;p&gt;Can you provide additional details about this? What did you do exactly when you isolated the function, and it ran fine? Which board did you use for testing?&lt;br /&gt;&lt;br /&gt;Can you provide full application log?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/thread/526599?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 15:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1014dd5a-d9ca-472b-9b32-5248cf8138d1</guid><dc:creator>SohamGhugare</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I tried the workaround, it didn&amp;#39;t work either. I&amp;#39;m getting the same error of Failed to initialize HW codec.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119648/cs47l63-failed-to-reset-cs47l63/526546"]Have you made any changes to hw_codec_init()?[/quote]
&lt;p&gt;No, I haven&amp;#39;t made any changes to the hw_codec_init function. As I said, isolating the same function and running it separately works perfectly fine. I even tried isolating and printing the device id, it prints correctly, but with the audio application it just prints 0x00.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CS47L63: Failed to reset CS47L63</title><link>https://devzone.nordicsemi.com/thread/526546?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 12:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55d5ec43-9389-4671-8d0d-bdf4284959ad</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There was&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_audio/page/UG/nrf5340_audio/hw_limitations.html"&gt;hardware limitation&lt;/a&gt;&amp;nbsp;for the nrf5340_audio-dk hardware v1.0.0 where it was possible that CS47L63 AD-DA converter fails to start. Can you check if workaround described on the linked page fixes the issue in your case?&lt;br /&gt;&lt;br /&gt;Have you made any changes to hw_codec_init()?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>