<?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: FW upgrade via USB CDC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97233/nrf5340-fw-upgrade-via-usb-cdc</link><description>Hi: 
 The MCUboot supports USB CDC and UART recovery, and we also can upgrade the FW via BLE and UART normally at the application level. 
 I would like to know if the normal FW upgrade supports USB CDC as well. if yes, do you have any demo code? and what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2023 14:05:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97233/nrf5340-fw-upgrade-via-usb-cdc" /><item><title>RE: nrf5340: FW upgrade via USB CDC</title><link>https://devzone.nordicsemi.com/thread/413048?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 14:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9648cea0-ef83-41c0-833e-ee9911ba29af</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The default baud rate is 115200. This is hard coded as&amp;nbsp;CDC_ACM_DEFAULT_BAUDRATE in the implementation in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/usb/device/class/cdc_acm.c"&gt;cdc_acm.c&lt;/a&gt;. It can be configured from SW by setting&amp;nbsp;CONFIG_UART_LINE_CTRL=y in the project configuration. You can see an example of that by looking at the set_uart_baudrate() function in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/connectivity_bridge/src/modules/uart_handler.c"&gt;uart_handler.c&lt;/a&gt;&amp;nbsp;(this code is using UART and not CDC ACM, but the API is the same). In most cases you will not set the baud rate via CDC though, and you can detect it if the host does. PS: you can also poll the CDC state including baud rate as shown by&amp;nbsp;poll_dtr() in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/connectivity_bridge/src/modules/usb_cdc_handler.c"&gt;usb_cdc_handler.c&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: FW upgrade via USB CDC</title><link>https://devzone.nordicsemi.com/thread/413037?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 13:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371f40ba-2f39-4dda-a3dd-d80b2a90a4b3</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your&amp;nbsp;quick reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One more question.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the maximum baud rate of the USB CDC and how to set the&amp;nbsp;baud rate?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: FW upgrade via USB CDC</title><link>https://devzone.nordicsemi.com/thread/413011?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 12:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988f85bb-8738-483f-a178-76e2cdaf9751</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are free to use USB CDC also with &amp;quot;normal&amp;quot; updates. You can see an example of that in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP Server Sample&lt;/a&gt;&amp;nbsp;(using the provided overlay files for USB CDC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>