<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>FATFS+QSPI+USBmsc bug</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/41792/fatfs-qspi-usbmsc-bug</link><description>hello,nordic 
 I use NRF52840 QSPI+FatFs+USB-msc(..\nRF5_SDK_15.2.0_9412b96\nRF5_SDK_15.2.0_9412b96\examples\peripheral\usbd_msc),I found there is a bug about write to flash and read from falsh. 
 bug description: 
 nrfx_err_t nrfx_qspi_write(void const</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Fri, 04 Jan 2019 14:02:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/41792/fatfs-qspi-usbmsc-bug" /><item><title>RE: FATFS+QSPI+USBmsc bug</title><link>https://test-devzone.nordicsemi.com/thread/163979?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c82c59-a71a-4b82-88a2-e5c066880ef9</guid><dc:creator>user13996</dc:creator><description>&lt;p&gt;Your response got deleted biaccidentally.&lt;br /&gt;&lt;br /&gt;&amp;quot;Hi,Jeff&lt;/p&gt;
&lt;p&gt;Not modified here, the p_erase_unit_buff inside the structure is already aligned with 4 bytes.&lt;/p&gt;
&lt;p&gt;static ret_code_t block_dev_qspi_read_req(nrf_block_dev_t const * p_blk_dev,&lt;br /&gt;nrf_block_req_t const * p_blk)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;p_work-&amp;gt;left_req = *p_blk;&lt;br /&gt;p_work-&amp;gt;req = *p_blk;&lt;br /&gt;nrf_block_req_t * p_blk_left = &amp;amp;p_work-&amp;gt;left_req;&lt;/p&gt;
&lt;p&gt;p_work-&amp;gt;state = NRF_BLOCK_DEV_QSPI_STATE_READ_EXEC;&lt;br /&gt;&lt;br /&gt;ret = nrf_drv_qspi_read(&lt;strong&gt;p_blk_left-&amp;gt;p_buff,&lt;/strong&gt;&lt;br /&gt;p_blk_left-&amp;gt;blk_count * p_work-&amp;gt;geometry.blk_size,&lt;br /&gt;p_blk_left-&amp;gt;blk_id * p_work-&amp;gt;geometry.blk_size);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;p_blk_left-&amp;gt;p_buff , this buf&amp;#39;s address maybe not aligned 4-bytes.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;my project use freeRTOS, I don&amp;#39;t use the example&amp;lt;nrf_block_dev_qspi.c&amp;gt;,I changed the code.&amp;nbsp;Attach my code，you&amp;nbsp;can refer to this.&amp;quot;&lt;br /&gt;&amp;nbsp;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3173.my_5F00_block_5F00_dev_5F00_qspi.c"&gt;test-devzone.nordicsemi.com/.../3173.my_5F00_block_5F00_dev_5F00_qspi.c&lt;/a&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1512.QSPI_5F00_driver.c"&gt;test-devzone.nordicsemi.com/.../1512.QSPI_5F00_driver.c&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FATFS+QSPI+USBmsc bug</title><link>https://test-devzone.nordicsemi.com/thread/163340?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 02:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6324be68-db16-442f-8af9-d4e40570e1b4</guid><dc:creator>user9150</dc:creator><description>&lt;p&gt;I think it is the same problem, just modify the QSPI block driver code&amp;lt;nrf_block_dev_qspi.c&amp;gt;, let the write/read buf pointer address aligned 4bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FATFS+QSPI+USBmsc bug</title><link>https://test-devzone.nordicsemi.com/thread/163008?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 16:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5904918-62b3-407a-b6fd-508237c4a4f6</guid><dc:creator>user13996</dc:creator><description>&lt;p&gt;rc766437,&lt;/p&gt;
&lt;p&gt;Does this appear to be a related issue to the problem I&amp;#39;m experiencing?&lt;br /&gt;&lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>