Page 1 of 1

Store HID-descriptor in flash memory?

Posted: Fri Mar 23, 2012 7:21 pm
by confus
Hi,

I have a project where every bit of SRAM counts. So I want to store the hid device descriptor in the flash memory. I seem to recall that this is possible (correct me if I'm wrong here), but I can't remember how. I'd be happy for someone to refresh my memory (no pun intended :lol:)

Also tipps on how to make v-usb use less SRAM would be good.

Thx in advance.

Re: Store HID-descriptor in flash memory?

Posted: Mon Mar 26, 2012 3:21 pm
by Daid
the HID descriptor is stored in flash by default:

Code: Select all

PROGMEM char usbHidReportDescriptor[24] = {

PROGMEM puts it in flash.

V-USB in normal config doesn't use a lot of RAM. You can save 1 or 2 bytes by using the GPIOR registers as SRAM. But that's about it.