<?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>nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96985/nrf5340-audio-dev-kit-output-i2s-to-external-hw-codec-max98357a</link><description>Hello, 
 
 I am currently trying to connect an external hardware codec and amp (Adafruit MAX98357 I2S Class-D Mono Amp) in order to play audio via BLE Audio and I2S using two nRF5340 Audio Dev Kits (ADKs). 
 
 I have been able to properly flash the ADKs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 02 Jun 2024 23:34:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96985/nrf5340-audio-dev-kit-output-i2s-to-external-hw-codec-max98357a" /><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/487000?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2024 23:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635e1302-a5c6-48dd-a881-bb4a661d3b7c</guid><dc:creator>Elray326</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Abdulmohaimen,&lt;/p&gt;
&lt;p&gt;I apologize, I don&amp;#39;t remember exactly how I did it, but I just published the &lt;a href="https://github.com/Elray326/Project-Auris/tree/main"&gt;code&lt;/a&gt; to my Github, you&amp;#39;re welcome to take a look!&lt;/p&gt;
&lt;p&gt;Best of luck,&lt;/p&gt;
&lt;p&gt;Louie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/469457?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 11:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:285ad0a1-c2cf-4ac5-9b59-1bc4bbdae6d7</guid><dc:creator>Abdulmohaimen</dc:creator><description>&lt;p&gt;Hello Louie,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please share the function with us? Did you only define this function in the code without removing anything else?&lt;/p&gt;
&lt;p&gt;I appreciate your help.&lt;/p&gt;
&lt;p&gt;Thanks in advandce&lt;/p&gt;
&lt;p&gt;Abdulmohaimen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/421171?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 07:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e832e8a2-5c77-472b-b0d1-6d265fd2f960</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;No problem, and glad you&amp;#39;ve gotten it to work! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/421105?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 17:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55887954-f254-4afc-81ec-510218872ff4</guid><dc:creator>Elray326</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;I was able to successfully use the MAX98357A as an external codec for the NRF5340 Audio Dev Kit by removing any relevant code for the cs47l63, particularly by having the function&amp;nbsp;cs47l63_comm_reg_conf_write() in hw_codec.c return 0. I was able to figure this out by using the debugger, setting breakpoints, and figuring out where in the code the board would fault.&lt;/p&gt;
&lt;p&gt;I did not have to add the external hw codec to a dts overlay file, but I did follow the rest of your instructions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Louie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/414195?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 15:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4df9bdf-430b-4bda-b7ed-c3312d093bb0</guid><dc:creator>Elfving</dc:creator><description>[quote user="Elray326"]&lt;p&gt;I would like to know how to connect an external HW codec. Do I need to use the P10 header? If so, how do I configure it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You should&amp;nbsp;add the external hw codec to a dts overlay file of the board. Also, (like what was mentioned in one of the cases you linked to) you should create an API to replace the&amp;nbsp;&lt;span&gt;API in hw_codec.h.&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;However, I do not know how to do the following instructions:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;ll go through the steps&amp;nbsp;below:&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;img style="height:11px;" height="11" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5826.pastedimage1677135793422v4.png" width="266" alt=" " /&gt;&amp;nbsp;To do this it would be best to simply search for the terms in the project using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ctrl+shift+F in VSC.&amp;nbsp;You&amp;#39;ll find hw_codec_init() in audio_system.c. CS47L63 code can be found all over I guess.&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;img style="height:32px;" height="32" src="https://devzone.nordicsemi.com/resized-image/__size/614x64/__key/communityserver-discussions-components-files/4/8168.pastedimage1677135783992v3.png" width="306" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Create a version of hw_codec_on_board_set() that sets hw_codec_sel to high, and then modify hw_codec_init to run that instead.&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;img height="44" src="https://devzone.nordicsemi.com/resized-image/__size/906x88/__key/communityserver-discussions-components-files/4/4848.pastedimage1677135944058v5.png" width="453" alt=" " /&gt;&lt;/p&gt;
&lt;div&gt;I do not think there are any that comes with the default audio application.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
[quote user="Elray326"]is there any way to run the external HW codec at 3.3V directly from the Audio Dev Kit?[/quote]
&lt;p&gt;Yeah the 5340 can provide 1.8 V to 3.3 V regulated supply for external components. &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.pdf"&gt;See section&amp;nbsp;4.7.2 in the product spec for more info on that&lt;/a&gt;. Though I do not know how easy this is on the Audio DK itself. I&amp;#39;ll have to get back to you on that, but I assume the answer is that it is impossible, and you&amp;#39;ll have to get the 3.3 v some other way.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/413342?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 20:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9526a16-f1f2-4c0d-9e65-3b0c5b0e0e5f</guid><dc:creator>Elray326</dc:creator><description>&lt;p&gt;Also, is there any way to run the external HW codec at 3.3V directly from the Audio Dev Kit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/413118?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 20:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e30aa844-ba96-4f0a-ba93-129967bd5357</guid><dc:creator>Elray326</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;probed&amp;nbsp;the 1.2v and 1.8v pins that you suggested and am seeing the proper voltages, thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to know how to connect an external HW codec. Do I need to use the P10 header? If so, how do I configure it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Louie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/412488?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 12:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2500a392-190a-4576-aec8-afa7f57642ef</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user=""]I am trying to use the I2S interface header pins&amp;nbsp;(P10, specifically BCLK, FSYNC, DOUT, GND, and a power pin) on the ADK and connect them to the MAX HW codec breakout, but after probing the pins, no signal seems to be coming from them.[/quote]
&lt;p&gt;Have you configured it to use this brakeout board?&lt;/p&gt;
[quote user=""]Only the 1v8 pin seems to be outputting 2V (why 2V?). On a separate note, can you please explain what the difference is between 1V2 and 1V8 is?[/quote]
&lt;p&gt;That is odd, it should output 1.2v and 1.8v there. Are you comparing to ground? Are you powering it from USB? Have you shorted anything on it? Where exactly are you measuring? &lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677579343821v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I guess we can start with this. I see you also want more&amp;nbsp;detailed instructions on how to connect an external HW codec, but we can get back to that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Audio Dev Kit Output I2S to External HW Codec (MAX98357A)</title><link>https://devzone.nordicsemi.com/thread/412009?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 14:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f31d77-3331-424b-b26b-971f3f411831</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Elray,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>