Skip to main content
Explorer
April 30, 2025
Question

NTFS formatted USB Pendrive detection in STM32H747 controller

  • April 30, 2025
  • 6 replies
  • 1102 views

Hii Community Member,

I have a query regarding detection of NTFS based USB pendrive detection.

I am currently working on STM32H747 in which I am trying to implement simple file operation (like read-write-modify). I had implemented middleware such as FatFs as per given example.

When I tried to detect USB pendrive which was old and exFAT formatted, then controller was able to detect same and did file operation as required. But when another pen-drive (SanDisk 3.2 Gen1 128GB) was tried to detect then it was only able to perform enumeration but not able to perform file operation. 

When same pendrive formatted in exFAT and performed same activity then it was able to do file operation.

I am trying to detect NTFS based pen-drive on this microcontroller so that if user having NTFS pen-drive and trying to connect with my device then user need to able perform same. Rather than formatting to exFAT and then do so.

Kindly provide me with your valuable solutions or experience facing similar problem.

Thanks for your valuable time for helping on this.

    This topic has been closed for replies.

    6 replies

    Super User
    April 30, 2025

    @JitendraD20 wrote:

    I had implemented middleware such as FatFs .


    What do you mean, "such as" FatFS?

    If it is actually FatFS, did you check if that supports NTFS ?

     

    Technical Moderator
    April 30, 2025

    @JitendraD20 

    As far as I understand, you want to read and write NTFS formatted sticks with the STM32, right?

    Are you aware that exFAT and NTFS are not open source and Microsoft-patented that you need a licence from if you want to use it?

    As long as you use Microsoft Windows, you can use both file systems free of charge and worry-free - because you have acquired the licence with the purchase of the Windows licence or the computer. With embedded systems, however, you have to purchase this licence separately for your project.

    Regards
    /Peter

    Explorer
    April 30, 2025

    Hii @Peter BENSCH 

    Thanks for your prompt reply.

    As far as I understand, you want to read and write NTFS formatted sticks with the STM32, right? >> Yes Right

    Are you aware that exFAT and NTFS are not open source and Microsoft-patented that you need a licence from if you want to use it? >> Yes I am aware they are not open source.

    With embedded systems, however, you have to purchase this license separately for your project. >> As my product is build on bare metal approach and not on based of O.S approach. So is it still require license ? 

    Please correct me if I am wrong at a point.

    Super User
    April 30, 2025

    @JitendraD20 wrote:

    my product is build on bare metal approach and not on based of O.S approach. So is it still require license ? 

    Yes, it will.

    This will be why FatFS doesn't support it!

     

    Graduate II
    April 30, 2025

    Should be able to check for NTFS partitions by walking the Partition Table in sector 0, aka MBR

     

     

    Explorer
    May 2, 2025

    Hii @Tesla DeLorean,

    Thanks for suggestion.

    Can you walk me through how to check this one?

    Any referral document will be fine.

     

     

    Super User
    May 2, 2025

    Here you can find advise on inter-technology software research such as NTFS on STM32.

     

     

    Visitor II
    May 12, 2025

    If you want NTFS, here has a example: https://github.com/tpunix/H750PI_proj

    Explorer
    May 12, 2025

    Hii all,

    Sorry I was busy in completion of my project hence not able to respond.

    I had proceed my project with FatFs and it will be sufficient for me for my application as I will format my pendrive in exFAT format. Thus NTFS will not be strictly require.

    However, I will walk through the link shared by @ttang.11 and @Pavel A. to explore NTFS file system.

    Thanks to all for given your valuable input and time to help.