Jump to content

Launchpad: Minimum stack size for USB devices

Recommended Posts

Hi. I got my code for a USB mouse working by comparing it with an example for another board. One of the things I had to change was increasing the stack size from 64 to 160 by changing the size of the pulStack vector in startup_gcc.c . I was wondering how I can diagnose that problem in the future, since I didn't get any warnings that the stack size was insufficient. 


As a side-note, I wasn't putting any large structures in the stack, so it's probably the Mouse Driver API that takes a bunch of stack space.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...