<?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>NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95310/nrf52840-as-usb-peripheral-and-usb-host</link><description>Hi Everyone, 
 I am using NRF52840 in my project and working on sdk 17.0.2. My application includes the following:- 
 1) Send aquired data from sensors to the desktop via USB. 
 2) Receive data from the desktop application via USB. 
 
 We are also using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jan 2023 08:41:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95310/nrf52840-as-usb-peripheral-and-usb-host" /><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404731?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 08:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2162282d-65c8-4f75-ad3f-6748fc1aedb5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Snehal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, that is why I do not understand why you are enabling a RAM disk.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404700?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 07:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974f7ce4-e77c-4556-b3f8-18125d58cae6</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; My goal is to create a file inside the flash memory chip. And when USB is plugged into the device it should be seen as a drive on laptop/desktop and I should be able to access the file which was created in the flash chip.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404697?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 07:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e34806-cd7e-4ee3-a040-5aa7bb72fc73</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Snehal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the RAM disk going to be used for?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404677?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 05:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329e4cf1-acf7-4b3b-a19f-0abecdc8f455</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I changed the values according to the&amp;nbsp;&lt;span&gt;ble_app_hrs_freertos example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x100000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x40000&lt;br /&gt;FLASH_START=0x27000&lt;br /&gt;FLASH_SIZE=0xd9000&lt;br /&gt;RAM_START=0x20005978&lt;br /&gt;RAM_SIZE=0x3a688&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000&lt;/p&gt;
&lt;p&gt;But still it is giving me the same errors. I guess the issue is in usb file attached below.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;RAM_BLOCK_DEVICE_SIZE is defined as (380 * 512) which is taking a lot of space I assume.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I change it to (100*100) I am able to compile the code.&lt;/p&gt;
&lt;p&gt;But the code says&amp;nbsp;Windows fails to format volumes smaller than 190KB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you suggest something?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/usb_5F00_msc.c"&gt;devzone.nordicsemi.com/.../usb_5F00_msc.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Snehal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404674?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 04:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60094767-9278-447e-997a-a153215b1e9a</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Okay I will try and get back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404577?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 13:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f52e6e8-7bc8-4c6b-8361-8442010b0615</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The&amp;nbsp;section placement macros you posted earlier&amp;nbsp;appear to be for the nRF52833, not the nRF52840 which has 256K of RAM and 1MB of flash. Please use the &amp;#39;pca10056&amp;#39; configuration for the ble_app_hrs_freertos example as a reference for what values to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404504?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 09:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d2650c-7713-42d5-afd7-bfb7c6b865c5</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;I have SPI,I2C,BLE,DFU all in my project along with new USB MSC drivers. My code uses FreeRTOS.&lt;/p&gt;
&lt;p&gt;I would have uploaded the code but having currently having issues&amp;nbsp;uploading&amp;nbsp; it. Can you suggest how to increase RAM?&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Snehal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404480?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 08:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cfc7b0b-71a7-49c0-a82a-ac814c749113</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The linker error&amp;nbsp;shows that you&amp;nbsp;do not have any RAM left, so we need to find out what is taking up this much RAM in your application. Can you upload it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404454?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 07:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7e32bc-3101-4241-8c20-e4e4e4fcdaa8</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;OK.. Currently I am trying to test the code. I have included all drivers in my source code. I am getting following error after adding all drivers:-&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:68px;max-width:558px;" alt=" " height="68" src="https://devzone.nordicsemi.com/resized-image/__size/1116x136/__key/communityserver-discussions-components-files/4/pastedimage1673509203924v1.png" width="558" /&gt;&lt;/p&gt;
&lt;p&gt;My Flash placement is like this . The project includes BLE drivers as well&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673509475896v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673509541348v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can I solve this??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Snehal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404453?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 07:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c922c1e4-2281-4e5f-84e0-68c44670d1af</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It basically says that the nRF will not have access to the filesystem&amp;nbsp;as long as the board is connected to a PC. This would have been clear if you had tested the example.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404442?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 05:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:430cbfe2-5363-40b1-979f-79cda0acdacc</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I found one more thing on nordic dev infocenter page.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fusbd_msc_example.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fusbd_msc_example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please check the highlighted lines. It is saying that i&lt;span&gt;f USB is connected, access to the file system from a user application is not possible because MSC is not designed to allow access to the file system from multiple sources. But my application on desktop would like to view the files and view the content inside it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am stuck here if this will be useful??&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673500629325v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404156?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 15:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90465b39-ac9a-4f4d-ac45-d34d627d6cb8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Snehal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Windows does not have native support for littlefs like it does for FAT, so I guess you do not what want to use littflefs for this.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/404140?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 14:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f32fd2-0019-4a28-8045-2980261e6226</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;One thing I noticed is the USB MSC code already has 2 files for FAT FS&amp;nbsp;diskio_blkdev.c and ff.c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess this will help implementing File system on the flash chip. Do i still need to include the littlefs library??&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/littlefs-project/littlefs"&gt;https://github.com/littlefs-project/littlefs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Snehal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403397?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee060a8-cbe1-46fc-a81f-3d124c3bd3eb</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Ok.. I have found one library for Case 1. It is for STM32 but guess can use that.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/jakakordez/max3421e-stm32/tree/master/Src"&gt;https://github.com/jakakordez/max3421e-stm32/tree/master/Src&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But here I saw some USB related files too. So doubtful whether those should be included or our USB MSC will do the task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403395?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ace5ff-ccfe-4709-b3df-eec5c87cce2a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes. But we do not have a USB stack&amp;nbsp;that works with the&amp;nbsp;&lt;span&gt;MAX3421.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403394?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e8b2f29-8edc-49a4-b1ca-88a9b261c499</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;So if Case 1 also requires USB stack, will USB MSC work for both the cases?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403391?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d4ccca-dda1-4212-b753-d0036d84dce3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Snehal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry, I missed the fact that you were planning to expose an additional USB interface with the&amp;nbsp;MAX3421. I am not familiar with this chip, but from the datasheet it looks like it only handles low-level protocol operations. Thus, requiring a&amp;nbsp;USB stack with host support to be integrated on your nRF52840. I suggest you contact the chip vendor and ask if they have any reference code available for your use case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. You can use the&amp;nbsp;&lt;a title="USB MSC Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_msc_example.html?cp=8_1_4_6_50_7"&gt;USB MSC Example&lt;/a&gt;&amp;nbsp;for this part.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403376?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 12:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c4409a9-1790-49a9-b8b3-ce5a988aedf3</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;There are 2 cases in my project:-&lt;/p&gt;
&lt;p&gt;1) ID accessory(pen drive) ----&amp;gt; NRF52840.&lt;/p&gt;
&lt;p&gt;In case 1 NRF52840 should act as a USB host and detect the ID accessory as well as do some data transfer. As nrf sdk does not support USB host operation, we are going to use MAX3421.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)NRF52840 ----&amp;gt; Desktop&lt;/p&gt;
&lt;p&gt;In case 2 NRF52840 will be connected to the desktop and it should be detected as a drive on the desktop. Here Nor flash is also attached to the NRF52840 where sensor data will be saved. I will be mounting file system on this NOR flash. So when nrf52840 is connected to the desktop, the user should be able to see the files from the flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What USB drivers do I need to use in Case 1 &amp;amp; Case 2 respectively. This is my confusion. Please help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Snehal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403096?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 07:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fd4e6b9-3f3b-4660-85ee-2b4b91e12941</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Snehal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I suggest you try the examples to see how they work. If you want your USB to show up as a mass storage device (like a USB flash drive) you should use the&amp;nbsp;&lt;a title="USB MSC Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_msc_example.html?cp=8_1_4_6_50_7"&gt;USB MSC Example&lt;/a&gt;&amp;nbsp;which enables the&amp;nbsp;&lt;span&gt;USB Mass Storage Class.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403081?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 04:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf76193-95bf-4472-8672-ad257e16add1</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Will I be able to debug and flash the code into device after implementing&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="USB CDC ACM Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_cdc_acm_example.html?cp=8_1_4_6_50_3"&gt;USB CDC ACM Example&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;What is the difference between USB class storage module ,USB CDC ACM &amp;amp; usbd_ble_uart? Which one will be best suited for my application?&lt;/p&gt;
&lt;p&gt;I am also having an external NOR flash attached to nrf52840 via SPI. To mount the file system on the NOR flash I am going to use littlefs library. The main goal is that whenever the device is plugged into the laptop,&amp;nbsp;we should be able to see the device as a drive and we should be able to access the files from the external flash just like we access any pendrive when it is attached to the laptop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Will USB MSC code work for above application?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 as USB peripheral and USB host.</title><link>https://devzone.nordicsemi.com/thread/403008?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 14:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a45ca01-1a6a-4d11-9ebe-333bebcdbe61</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For USB, I would suggest starting with something simple like the&amp;nbsp;&lt;a title="USB CDC ACM Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_cdc_acm_example.html?cp=8_1_4_6_50_3"&gt;USB CDC ACM Example&lt;/a&gt;. Your board should then show up as a virtual COM port on your PC when&amp;nbsp;the USB is&amp;nbsp;connected. Next step&amp;nbsp;can&amp;nbsp;be to integrate the SPI sensor and relay the data to the COM port.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>