USBH_MSD Class code memory consumption

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • USBH_MSD Class code memory consumption

    Hello, I'm currently working on a firmware which uses the USBH host stack, precisely is the MSD class, the code is working very well, but according Segger emUSBH Manual (2014, page 284) the code memory consumption is about 20K for USBH plus driver, and adds 8K + sizeof file systems (in my app about 27K), but when I check the map file, the USBH lib has a total code memory usage about 128KB.


    My question is, what is the build or USB config to achieve the numbers presented on user guide?

    My development platform:

    NXP LCP1788 - 512K Flash + 96K SRAM
    Keil uVision 5
    Compiler optmizations flags -O0 in debug -O2 in release.

    Thanks in advance,

    Felipe