<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328847#M10494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the change you suggested, but it simply returned that there was not room in m_data_2. The heap and stack are assigned to m_data_2. Since the total area is 64K, I'd think there should be some way around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the code to run the test and noted that there are two large arrays, raw_size_arr[] and test_buffer[] that would cause this. Since I only need about 10K, how would I "tell" the compiler linker that one of these variables should be allocated to m_data_2 instead of the default .bss (m_data)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 01:40:03 GMT</pubDate>
    <dc:creator>davepfaltzgraff</dc:creator>
    <dc:date>2015-01-29T01:40:03Z</dc:date>
    <item>
      <title>Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328843#M10490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I set THROUGHPUT_TEST_ENABLE to (1) and build, I get linker errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - section `.bss' will not fit in region `m_data'&lt;/P&gt;&lt;P&gt;&amp;nbsp; - region `m_data' overflowed by 9900 bytes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easy fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 18:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328843#M10490</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-01-28T18:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328844#M10491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using KDS??&lt;/P&gt;&lt;P&gt;If you want to test throughput, you should set THROUGHPUT_TEST_ENABLE as (1) in file mfs_usb.h for mqx, file msd_diskio.h for sdk.&lt;/P&gt;&lt;P&gt;For MQX, please add the below line in the&amp;nbsp; mfs_usb.h file and recompile the library.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define&lt;/TD&gt;&lt;TD&gt;THROUGHPUT_TEST_ENABLE (1)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49714iED5AC376DC39FA72/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 21:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328844#M10491</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-01-28T21:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328845#M10492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soledad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I should have mentioned that I'm working in KDS. As it turns out, I was trying to do this with just the SDK so that the adapter_cfg.h had&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define OS_ADAPTER_ACTIVE_OS OS_ADAPTER_SDK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In msd_diskio.h I had changed THROUGHPUT_TEST_ENABLE to (1) as you suggested. It was under those conditions that I got the linker error message. SO, that was my original question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I go back to adapter_cfg.h and change the OP_ADAPTER_ACTIVE_OS to OS_ADAPTER_MQX, I get a different error that will requires separate investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears to be more complex...&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328845#M10492</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-01-28T22:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328846#M10493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Short answer is the K22F is running out of available SRAM for the image generated when THROUGHPUT_TEST_ENABLE is (1).&lt;/P&gt;&lt;P&gt;I tried this test on the frdm-k64f and it too generated the error.&lt;/P&gt;&lt;P&gt;When I modified the linker file to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Uninitialized data section */&lt;/P&gt;&lt;P&gt;&amp;nbsp; .bss :&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* This is used by the startup in order to initialize the .bss section */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __START_BSS = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __bss_start__ = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.bss)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.bss*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(COMMON)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __bss_end__ = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __END_BSS = .;&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; m_data_2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--THIS WAS m_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It compiled and ran with following results (again on frdm-k64f):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USB file system test&lt;/P&gt;&lt;P&gt;Waiting for USB mass storage to be attached...&lt;/P&gt;&lt;P&gt;----- Attach Event -----&lt;/P&gt;&lt;P&gt;State = 0&amp;nbsp; Interface Number = 0&amp;nbsp; Alternate Setting = 0&amp;nbsp; Class = 8&amp;nbsp; SubClass = 6&amp;nbsp; Protocol = 80&lt;/P&gt;&lt;P&gt;Mass Storage Device Attached&lt;/P&gt;&lt;P&gt;----- Interface opened Event -----&lt;/P&gt;&lt;P&gt;vol 0 mount success&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vol 0 file.dat for write and read speed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;***************************1 write 100M test**********************************&lt;/P&gt;&lt;P&gt;write test results: time = 190248ms&amp;nbsp; speed = 538K/s&lt;/P&gt;&lt;P&gt;***************************1 read 100M test***********************************&lt;/P&gt;&lt;P&gt;read test results: time = 165232ms&amp;nbsp; speed = 619K/s&lt;/P&gt;&lt;P&gt;***************************2 write 100M test**********************************&lt;/P&gt;&lt;P&gt;write test results: time = 189899ms&amp;nbsp; speed = 539K/s&lt;/P&gt;&lt;P&gt;***************************2 read 100M test***********************************&lt;/P&gt;&lt;P&gt;read test results: time = 165233ms&amp;nbsp; speed = 619K/s&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vol 0 TEST DONE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to ask around if this test is "just too big" for K22.&lt;/P&gt;&lt;P&gt;FYI - I did try compiling for "Release" target but still image was too big.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 23:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328846#M10493</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-01-28T23:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328847#M10494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the change you suggested, but it simply returned that there was not room in m_data_2. The heap and stack are assigned to m_data_2. Since the total area is 64K, I'd think there should be some way around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the code to run the test and noted that there are two large arrays, raw_size_arr[] and test_buffer[] that would cause this. Since I only need about 10K, how would I "tell" the compiler linker that one of these variables should be allocated to m_data_2 instead of the default .bss (m_data)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 01:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328847#M10494</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-01-29T01:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328848#M10495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By changing the value of EACH_TRANSFER_SECTORS from 128 down to 64, I reduced the size of the 'test_buffer' to the point where it would fit in the .bss section. This allowed me to run the test and get the following output:&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;USB file system test&lt;/P&gt;&lt;P&gt;Waiting for USB mass storage to be attached...&lt;/P&gt;&lt;P&gt;----- Attach Event -----&lt;/P&gt;&lt;P&gt;State = 0&amp;nbsp; Interface Number = 0&amp;nbsp; Alternate Setting = 0&amp;nbsp; Class = 8&amp;nbsp; SubClass = 6&lt;/P&gt;&lt;P&gt; Protocol = 80&lt;/P&gt;&lt;P&gt;Mass Storage Device Attached&lt;/P&gt;&lt;P&gt;----- Interface opened Event -----&lt;/P&gt;&lt;P&gt;vol 0 mount success&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vol 0 file.dat for write and read speed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;***************************1 write 100M test**********************************&lt;/P&gt;&lt;P&gt;write test results: time = 170894ms&amp;nbsp; speed = 599K/s&lt;/P&gt;&lt;P&gt;***************************1 read 100M test***********************************&lt;/P&gt;&lt;P&gt;read test results: time = 166586ms&amp;nbsp; speed = 614K/s&lt;/P&gt;&lt;P&gt;***************************2 write 100M test**********************************&lt;/P&gt;&lt;P&gt;write test results: time = 171861ms&amp;nbsp; speed = 595K/s&lt;/P&gt;&lt;P&gt;***************************2 read 100M test***********************************&lt;/P&gt;&lt;P&gt;read test results: time = 166754ms&amp;nbsp; speed = 614K/s&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vol 0 TEST DONE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;Not too shabby!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 16:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328848#M10495</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-01-29T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying the throughput test with the host_msd_fatfs_frdmk22f_mqx_frdmk22f</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328849#M10496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;That is awesome.&lt;/P&gt;&lt;P&gt;Thank you for sharing your solution for frdm-k22f.&lt;/P&gt;&lt;P&gt;I will be sure to pass along to our KSDK team.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 16:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Trying-the-throughput-test-with-the-host-msd-fatfs-frdmk22f-mqx/m-p/328849#M10496</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-01-29T16:42:49Z</dc:date>
    </item>
  </channel>
</rss>

