Tuesday, May 22nd 2018, 7:30pm UTC+2

You are not logged in.

  • Login
  • Register



Date of registration: Apr 8th 2015

Posts: 5


Friday, April 10th 2015, 4:09pm

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,



Super Moderator

Date of registration: Feb 28th 2014

Posts: 26


Monday, June 22nd 2015, 10:52am

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?



Similar threads