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
  • Hi uLipe,

    The values in the manual have been achieved using the highest size optimization and with the DEBUG define not set.

    Either way, 128 KBytes is certainly too much.

    Could you provide us the map file for analysis?

    Regards,

    Yan
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.