Hi David,
Short answer is the K22F is running out of available SRAM for the image generated when THROUGHPUT_TEST_ENABLE is (1).
I tried this test on the frdm-k64f and it too generated the error.
When I modified the linker file to:
/* Uninitialized data section */
.bss :
{
/* This is used by the startup in order to initialize the .bss section */
. = ALIGN(4);
__START_BSS = .;
__bss_start__ = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
__bss_end__ = .;
__END_BSS = .;
} > m_data_2 <--THIS WAS m_data
It compiled and ran with following results (again on frdm-k64f):
USB file system test
Waiting for USB mass storage to be attached...
----- Attach Event -----
State = 0 Interface Number = 0 Alternate Setting = 0 Class = 8 SubClass = 6 Protocol = 80
Mass Storage Device Attached
----- Interface opened Event -----
vol 0 mount success
******************************************************************************
* vol 0 file.dat for write and read speed *
******************************************************************************
***************************1 write 100M test**********************************
write test results: time = 190248ms speed = 538K/s
***************************1 read 100M test***********************************
read test results: time = 165232ms speed = 619K/s
***************************2 write 100M test**********************************
write test results: time = 189899ms speed = 539K/s
***************************2 read 100M test***********************************
read test results: time = 165233ms speed = 619K/s
******************************************************************************
* vol 0 TEST DONE *
******************************************************************************
I'll have to ask around if this test is "just too big" for K22.
FYI - I did try compiling for "Release" target but still image was too big.
Regards,
David