Poor Read/Write Performance with Zephyr SDIF Driver on LPCXpresso55S69-EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Poor Read/Write Performance with Zephyr SDIF Driver on LPCXpresso55S69-EVK

1,742 Views
wima88
Contributor III

When evaluating the LPC55S69-EVK, I noticed significantly slower read/write speeds with Zephyr’s USB mass storage (using the SDIF driver) compared to the MCUXpresso SDK example.

Benchmark Results

Below are the performance comparisons using CrystalDiskMark 8.0.6:

1. MCUXpresso SDK Example (lpcxpresso55s69_dev_msc_disk_freertos_cm33_core0)
[Read]
  SEQ 1MiB: 10.903 MB/s | RND 4KiB: 4.204 MB/s
[Write]
  SEQ 1MiB: 7.756 MB/s  | RND 4KiB: 3.286 MB/s

 

2. Zephyr (Legacy USB Stack)
[Read]
  SEQ 1MiB: 1.048 MB/s | RND 4KiB: 0.985 MB/s
[Write]
  SEQ 1MiB: 0.209 MB/s | RND 4KiB: 0.351 MB/s

 ~10x slower than MCUXpresso SDK.

3. Zephyr (USB Device Next Stack)
[Read]
  SEQ 1MiB: 1.676 MB/s | RND 4KiB: 1.489 MB/s
[Write]
  SEQ 1MiB: 0.628 MB/s | RND 4KiB: 0.830 MB/s

*Still ~5-6x slower than MCUXpresso SDK.*

Debugging Attempts

  • Enabled Zephyr SDHC & SD card logs – no errors detected.

  • Confirmed SD card initialization (3.3V, 50MHz clock, correct block size).

  • Logs show successful SDIF clock configuration (24MHz → 50MHz).

[00:00:00.000] <dbg> sd: sd_init_io: Host controller support 3.3V max  
[00:00:01.000] <dbg> sdif: mcux_sdif_set_io: SDIF clock set to 400000  
[00:00:01.376] <dbg> sd: sdmmc_read_csd: Card block count 124735488, block size 512  
[00:00:01.376] <dbg> sdif: mcux_sdif_set_io: SDIF clock set to 24000000  
[00:00:01.379] <dbg> sd: sdmmc_set_bus_speed: Setting bus clock to: 50000000  

 

Environment

  • Board: LPC55S69-EVK 

  • Zephyr Version:  commit :c2d52c7f4b53a3e3691a7e6fa15af83ef72446cc(4.1.99)

Are their any Kconfig option or overlay that I need to modify ?

I’d appreciate any insights or suggestions to debug this further

Thanks in advance!

Tags (3)
0 Kudos
Reply
8 Replies

1,619 Views
wima88
Contributor III

@Harry_Zhang  Any  Update on this issue? I tested the FRDM-MCXN947  (with Zephyr) which uses the imx driver instead of the lpc driver. and results are pretty much the same as above 

Thanks 

0 Kudos
Reply

1,496 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @wima88 

 

Could you please try adding the following optimizations 

 

CONFIG_MCUX_SDIF_DMA_BUFFER_SIZE=512
CONFIG_SPEED_OPTIMIZATIONS=y
CONFIG_SDIO_STACK=y
CONFIG_MPU=n
CONFIG_ASSERT=n
CONFIG_LOG=n
CONFIG_LOG_DEFAULT_LEVEL=0

BR

Harry

0 Kudos
Reply

1,473 Views
wima88
Contributor III

Hi Harry , 

Thanks for getting back to me. with suggested Konig options I was managed to get around 2.54 MB/s. 

[Read]
SEQ 1MiB (Q= 1, T= 1): 2.516 MB/s [ 2.4 IOPS] <412859.66 us>
RND 4KiB (Q= 1, T= 1): 2.033 MB/s [ 496.3 IOPS] < 2011.94 us>

I wonder, could USB stack be the bottle neck? 

 

0 Kudos
Reply

1,333 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @wima88 

Another USB optimizations that you could give a try. 

CONFIG_UDC_BUF_COUNT=128
CONFIG_UDC_WORKQUEUE_STACK_SIZE=2048
CONFIG_UDC_WORKQUEUE_PRIORITY=0

BR

Harry

0 Kudos
Reply

1,317 Views
wima88
Contributor III

Thanks for the suggestions.

Despite all the optimizations and changes, the best I could reach was 3.1 MB/s. Have you identified the root cause of the performance issue yet? Frankly, I doubt any amount of system tuning alone will get us to full performance without addressing the underlying problem.

 

Wimansha 

0 Kudos
Reply

1,611 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @wima88 

We are investigating this issue, I will inform you as soon as there is a result.

BR

Harry

0 Kudos
Reply

1,718 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @wima88 

May i ask how to tested it?

I want to test it.

BR

Harry

0 Kudos
Reply

1,713 Views
wima88
Contributor III

Hi Harry , 

Hi,

I use CrystalDiskMark as my benchmarking tool(https://crystalmark.info/en). Here’s my setup and process:

MCUXpresso SDK Setup:

  • Modified jumper P4 voltage from 1.8V to 3.3V (as per user guide Table 1, P21).

  • Downloaded the SDK example (v25.03.00) via the MCUXpresso extension in VSCode.

  • Built and flashed the lpcxpresso55s69_dev_msc_disk_freertos_cm33_core0 example.

  • After reset, the serial terminal showed the prompt: "Please insert disk."

  • Used a SanDisk Class 3 V30 SD card.

  • Connected P9 (HS-USB) and configured CrystalDiskMark (see attached screenshot).57ecc5a0-a2cc-4775-be4c-74ff59cc81ae.jpgScreenshot 2025-06-25 105150.png

  • Tested with:

    • 1MB block size

    • 1 Queue, 1 Thread

    • 9 iterations of a 32MB file

Zephyr Setup:

Used the same development environment as above.

Legacy USB Stack:

  • Example: zephyr/samples/subsys/usb/mass

  • No modifications made.

  • Build command:
west build -p -b lpcxpresso55s69/lpc55s69/cpu0
west flash

USB Next Stack:

Modified next_usb_prj.conf as follows:

CONFIG_DISK_ACCESS=y  
CONFIG_FILE_SYSTEM=y  
CONFIG_FAT_FILESYSTEM_ELM=y  
CONFIG_PRINTK=y  

CONFIG_DISK_DRIVERS=y  
CONFIG_DISK_DRIVER_SDMMC=y  

CONFIG_SDHC_LOG_LEVEL_DBG=y  
CONFIG_SD_LOG_LEVEL_DBG=y  
CONFIG_LOG_BUFFER_SIZE=2048  

CONFIG_USBD_MSC_STACK_SIZE=4096  
CONFIG_USBD_MSC_LUNS_PER_INSTANCE=5  
CONFIG_USBD_MSC_SCSI_BUFFER_SIZE=2048  

Build Command

west build -p -b lpcxpresso55s69/lpc55s69/cpu0 -- -DCONF_FILE=usbd_next_prj.conf  
west flash

 

Testing:

  • Used the same CrystalDiskMark setup for all three cases.

  • No overlay files were used in either Zephyr example.

Let me know if you need any further details!

 

Thank You

Tags (3)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2122450%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPoor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2122450%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EWhen%20evaluating%20the%3CSPAN%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FLPC55S69-EVK%2Fpd-p%2FLPC55S69-EVK%22%20class%3D%22lia-product-mention%22%20data-product%3D%223114-1%22%20target%3D%22_blank%22%3ELPC55S69-EVK%3C%2FA%3E%3C%2FSPAN%3E%2C%20I%20noticed%20significantly%20slower%20read%2Fwrite%20speeds%20with%20Zephyr%E2%80%99s%20USB%20mass%20storage%20(using%20the%20SDIF%20driver)%20compared%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMCUXpresso%20SDK%20example%3C%2FSTRONG%3E.%3C%2FP%3E%3CH4%20id%3D%22toc-hId-174012498%22%20id%3D%22toc-hId-203685273%22%3E%3CSTRONG%3EBenchmark%20Results%3C%2FSTRONG%3E%3C%2FH4%3E%3CP%20class%3D%22%22%3EBelow%20are%20the%20performance%20comparisons%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECrystalDiskMark%208.0.6%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CH5%20id%3D%22toc-hId-864573972%22%20id%3D%22toc-hId-894246747%22%3E%3CSTRONG%3E1.%20MCUXpresso%20SDK%20Example%20(%3C%2FSTRONG%3E%3CSTRONG%3Elpcxpresso55s69_dev_msc_disk_freertos_cm33_core0)%3C%2FSTRONG%3E%3C%2FH5%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5BRead%5D%0A%20%20SEQ%201MiB%3A%2010.903%20MB%2Fs%20%7C%20RND%204KiB%3A%204.204%20MB%2Fs%0A%5BWrite%5D%0A%20%20SEQ%201MiB%3A%207.756%20MB%2Fs%20%20%7C%20RND%204KiB%3A%203.286%20MB%2Fs%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CH5%20id%3D%22toc-hId--942880491%22%20id%3D%22toc-hId--913207716%22%3E%3CSTRONG%3E2.%20Zephyr%20(Legacy%20USB%20Stack)%3C%2FSTRONG%3E%3C%2FH5%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5BRead%5D%0A%20%20SEQ%201MiB%3A%201.048%20MB%2Fs%20%7C%20RND%204KiB%3A%200.985%20MB%2Fs%0A%5BWrite%5D%0A%20%20SEQ%201MiB%3A%200.209%20MB%2Fs%20%7C%20RND%204KiB%3A%200.351%20MB%2Fs%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3CEM%3E~10x%20slower%20than%20MCUXpresso%20SDK.%3C%2FEM%3E%3C%2FP%3E%3CH5%20id%3D%22toc-hId-1544632342%22%20id%3D%22toc-hId-1574305117%22%3E%3CSTRONG%3E3.%20Zephyr%20(USB%20Device%20Next%20Stack)%3C%2FSTRONG%3E%3C%2FH5%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5BRead%5D%0A%20%20SEQ%201MiB%3A%201.676%20MB%2Fs%20%7C%20RND%204KiB%3A%201.489%20MB%2Fs%0A%5BWrite%5D%0A%20%20SEQ%201MiB%3A%200.628%20MB%2Fs%20%7C%20RND%204KiB%3A%200.830%20MB%2Fs%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3E*%3C%2FSPAN%3E%3CSPAN%3EStill%20~5-6x%20slower%20than%20MCUXpresso%20SDK.%3C%2FSPAN%3E%3CSPAN%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CH4%20id%3D%22toc-hId-1534129238%22%20id%3D%22toc-hId-1563802013%22%3E%3CSTRONG%3EDebugging%20Attempts%3C%2FSTRONG%3E%3C%2FH4%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3EEnabled%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EZephyr%20SDHC%20%26amp%3B%20SD%20card%20logs%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%E2%80%93%20no%20errors%20detected.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EConfirmed%20SD%20card%20initialization%20(3.3V%2C%2050MHz%20clock%2C%20correct%20block%20size).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3ELogs%20show%20successful%20SDIF%20clock%20configuration%20(24MHz%20%E2%86%92%2050MHz).%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5B00%3A00%3A00.000%5D%20%3CDBG%3E%20sd%3A%20sd_init_io%3A%20Host%20controller%20support%203.3V%20max%20%20%0A%5B00%3A00%3A01.000%5D%20%3CDBG%3E%20sdif%3A%20mcux_sdif_set_io%3A%20SDIF%20clock%20set%20to%20400000%20%20%0A%5B00%3A00%3A01.376%5D%20%3CDBG%3E%20sd%3A%20sdmmc_read_csd%3A%20Card%20block%20count%20124735488%2C%20block%20size%20512%20%20%0A%5B00%3A00%3A01.376%5D%20%3CDBG%3E%20sdif%3A%20mcux_sdif_set_io%3A%20SDIF%20clock%20set%20to%2024000000%20%20%0A%5B00%3A00%3A01.379%5D%20%3CDBG%3E%20sd%3A%20sdmmc_set_bus_speed%3A%20Setting%20bus%20clock%20to%3A%2050000000%20%20%3C%2FDBG%3E%3C%2FDBG%3E%3C%2FDBG%3E%3C%2FDBG%3E%3C%2FDBG%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CH4%20id%3D%22toc-hId--273325225%22%20id%3D%22toc-hId--243652450%22%3E%3CSTRONG%3EEnvironment%3C%2FSTRONG%3E%3C%2FH4%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3EBoard%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FLPC55S69-EVK%2Fpd-p%2FLPC55S69-EVK%22%20class%3D%22lia-product-mention%22%20data-product%3D%223114-2%22%20target%3D%22_blank%22%3ELPC55S69-EVK%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3EZephyr%20Version%3A%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3Bcommit%20%3Ac2d52c7f4b53a3e3691a7e6fa15af83ef72446cc(4.1.99)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAre%20their%20any%20Kconfig%20option%20or%20overlay%20that%20I%20need%20to%20modify%20%3F%3C%2FP%3E%3CP%20class%3D%22%22%3EI%E2%80%99d%20appreciate%20any%20insights%20or%20suggestions%20to%20debug%20this%20further%3C%2FP%3E%3CP%20class%3D%22%22%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2139590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2139590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20the%20suggestions.%3C%2FP%3E%3CP%3EDespite%20all%20the%20optimizations%20and%20changes%2C%20the%20best%20I%20could%20reach%20was%203.1%20MB%2Fs.%20Have%20you%20identified%20the%20root%20cause%20of%20the%20performance%20issue%20yet%3F%20Frankly%2C%20I%20doubt%20any%20amount%20of%20system%20tuning%20alone%20will%20get%20us%20to%20full%20performance%20without%20addressing%20the%20underlying%20problem.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWimansha%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138224%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138224%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243115%22%20target%3D%22_blank%22%3E%40wima88%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20USB%20optimizations%20that%20you%20could%20give%20a%20try.%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20%20language-java%22%3E%3CCODE%3ECONFIG_UDC_BUF_COUNT%3D128%0ACONFIG_UDC_WORKQUEUE_STACK_SIZE%3D2048%0ACONFIG_UDC_WORKQUEUE_PRIORITY%3D0%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2134434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2134434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Harry%20%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20getting%20back%20to%20me.%20with%20suggested%20Konig%20options%20I%20was%20managed%20to%20get%20around%202.54%20MB%2Fs.%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5BRead%5D%0ASEQ%201MiB%20(Q%3D%201%2C%20T%3D%201)%3A%202.516%20MB%2Fs%20%5B%202.4%20IOPS%5D%20%26lt%3B412859.66%20us%26gt%3B%0ARND%204KiB%20(Q%3D%201%2C%20T%3D%201)%3A%202.033%20MB%2Fs%20%5B%20496.3%20IOPS%5D%20%26lt%3B%202011.94%20us%26gt%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EI%20wonder%2C%20could%20USB%20stack%20be%20the%20bottle%20neck%3F%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243115%22%20target%3D%22_blank%22%3E%40wima88%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20please%20try%20adding%20the%20following%20optimizations%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CPRE%20class%3D%22lia-code-sample%20%20language-markup%22%3E%3CCODE%3ECONFIG_MCUX_SDIF_DMA_BUFFER_SIZE%3D512%0ACONFIG_SPEED_OPTIMIZATIONS%3Dy%0ACONFIG_SDIO_STACK%3Dy%0ACONFIG_MPU%3Dn%0ACONFIG_ASSERT%3Dn%0ACONFIG_LOG%3Dn%0ACONFIG_LOG_DEFAULT_LEVEL%3D0%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2129971%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2129971%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243115%22%20target%3D%22_blank%22%3E%40wima88%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20investigating%20this%20issue%2C%26nbsp%3BI%20will%20inform%20you%20as%20soon%20as%20there%20is%20a%20result.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2129415%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2129415%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F229957%22%20target%3D%22_blank%22%3E%40Harry_Zhang%3C%2FA%3E%26nbsp%3B%20Any%26nbsp%3B%20Update%20on%20this%20issue%3F%20I%20tested%20the%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FFRDM-MCXN947%2Fpd-p%2FFRDM-MCXN947%22%20class%3D%22lia-product-mention%22%20data-product%3D%222740-1%22%20target%3D%22_blank%22%3EFRDM-MCXN947%3C%2FA%3E%26nbsp%3B%20(with%20Zephyr)%26nbsp%3Bwhich%20uses%20the%20imx%20driver%20instead%20of%20the%20lpc%20driver.%20and%20results%20are%20pretty%20much%20the%20same%20as%20above%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2123270%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2123270%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Harry%20%2C%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EHi%2C%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20use%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECrystalDiskMark%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eas%20my%20benchmarking%20tool(%3CA%20href%3D%22https%3A%2F%2Fcrystalmark.info%2Fen%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fcrystalmark.info%2Fen%3C%2FA%3E).%20Here%E2%80%99s%20my%20setup%20and%20process%3A%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1970991788%22%20id%3D%22toc-hId--254155554%22%3E%3CSTRONG%3EMCUXpresso%20SDK%20Setup%3A%3C%2FSTRONG%3E%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3EModified%20jumper%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EP4%20voltage%20from%201.8V%20to%203.3V%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(as%20per%20user%20guide%20Table%201%2C%20P21).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EDownloaded%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESDK%20example%20(v25.03.00)%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Evia%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMCUXpresso%20extension%20in%20VSCode%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EBuilt%20and%20flashed%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Elpcxpresso55s69_dev_msc_disk_freertos_cm33_core0%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eexample.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EAfter%20reset%2C%20the%20serial%20terminal%20showed%20the%20prompt%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%22Please%20insert%20disk.%22%3C%2FEM%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EUsed%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESanDisk%20Class%203%20V30%20SD%20card%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EConnected%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EP9%20(HS-USB)%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20configured%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECrystalDiskMark%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(see%20attached%20screenshot).%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2257ecc5a0-a2cc-4775-be4c-74ff59cc81ae.jpg%22%20style%3D%22width%3A%20200px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2257ecc5a0-a2cc-4775-be4c-74ff59cc81ae.jpg%22%20style%3D%22width%3A%20200px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344664iED20FDC457B00A58%2Fimage-size%2Fsmall%3Fv%3Dv2%26amp%3Bpx%3D200%22%20role%3D%22button%22%20title%3D%2257ecc5a0-a2cc-4775-be4c-74ff59cc81ae.jpg%22%20alt%3D%2257ecc5a0-a2cc-4775-be4c-74ff59cc81ae.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202025-06-25%20105150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202025-06-25%20105150.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344665i3E93899693170A99%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202025-06-25%20105150.png%22%20alt%3D%22Screenshot%202025-06-25%20105150.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ETested%20with%3A%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E1MB%20block%20size%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E1%20Queue%2C%201%20Thread%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E9%20iterations%20of%20a%2032MB%20file%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CH3%20id%3D%22toc-hId-163537325%22%20id%3D%22toc-hId--2061610017%22%3E%3CSTRONG%3EZephyr%20Setup%3A%3C%2FSTRONG%3E%3C%2FH3%3E%3CP%20class%3D%22%22%3EUsed%20the%20same%20development%20environment%20as%20above.%3C%2FP%3E%3CH4%20id%3D%22toc-hId-854098799%22%20id%3D%22toc-hId--1371048543%22%3E%3CSTRONG%3ELegacy%20USB%20Stack%3A%3C%2FSTRONG%3E%3C%2FH4%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3EExample%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ezephyr%2Fsamples%2Fsubsys%2Fusb%2Fmass%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3ENo%20modifications%20made.%3C%2FP%3E%3C%2FLI%3E%3CLI%3EBuild%20command%3A%3C%2FLI%3E%3C%2FUL%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Ewest%20build%20-p%20-b%20lpcxpresso55s69%2Flpc55s69%2Fcpu0%0Awest%20flash%3C%2FCODE%3E%3C%2FPRE%3E%3CH4%20id%3D%22toc-hId--953355664%22%20id%3D%22toc-hId-1116464290%22%3E%3CSTRONG%3EUSB%20Next%20Stack%3A%3C%2FSTRONG%3E%3C%2FH4%3E%3CP%20class%3D%22%22%3EModified%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Enext_usb_prj.conf%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eas%20follows%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ECONFIG_DISK_ACCESS%3Dy%20%20%0ACONFIG_FILE_SYSTEM%3Dy%20%20%0ACONFIG_FAT_FILESYSTEM_ELM%3Dy%20%20%0ACONFIG_PRINTK%3Dy%20%20%0A%0ACONFIG_DISK_DRIVERS%3Dy%20%20%0ACONFIG_DISK_DRIVER_SDMMC%3Dy%20%20%0A%0ACONFIG_SDHC_LOG_LEVEL_DBG%3Dy%20%20%0ACONFIG_SD_LOG_LEVEL_DBG%3Dy%20%20%0ACONFIG_LOG_BUFFER_SIZE%3D2048%20%20%0A%0ACONFIG_USBD_MSC_STACK_SIZE%3D4096%20%20%0ACONFIG_USBD_MSC_LUNS_PER_INSTANCE%3D5%20%20%0ACONFIG_USBD_MSC_SCSI_BUFFER_SIZE%3D2048%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EBuild%20Command%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Ewest%20build%20-p%20-b%20lpcxpresso55s69%2Flpc55s69%2Fcpu0%20--%20-DCONF_FILE%3Dusbd_next_prj.conf%20%20%0Awest%20flash%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId--963858768%22%20id%3D%22toc-hId-410797707%22%3E%3CSTRONG%3ETesting%3A%3C%2FSTRONG%3E%3C%2FH3%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3EUsed%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Esame%20CrystalDiskMark%20setup%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20all%20three%20cases.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3ENo%20overlay%20files%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewere%20used%20in%20either%20Zephyr%20example.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%20class%3D%22%22%3ELet%20me%20know%20if%20you%20need%20any%20further%20details!%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2123100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Poor%20Read%2FWrite%20Performance%20with%20Zephyr%20SDIF%20Driver%20on%20LPCXpresso55S69-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2123100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F243115%22%20target%3D%22_blank%22%3E%40wima88%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMay%20i%20ask%20how%20to%20tested%20it%3F%3C%2FP%3E%0A%3CP%3EI%20want%20to%20test%20it.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E