Wednesday, December 13th 2017, 8:02am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

uLipe

Beginner

Date of registration: Apr 8th 2015

Posts: 5

1

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,

Felipe

SEGGER - Yan

Super Moderator

Date of registration: Feb 28th 2014

Posts: 23

2

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?

Regards,

Yan

Similar threads