lpcware

Config descriptor in ROM causes HardFault

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by chris_bayley_trimble on Wed Apr 15 15:18:10 MST 2015
I have been working with a number of the LPCOpen USB examples and I have noticed that most USB Descriptors are declared const (ROM storage) but the Config Descriptors aren't (i.e. RAM storage).

I tried changing the declaration of the Config descriptors to const but then the USB stack will HardFault inside the default Ep0_handler.

Why does the Config descriptor need to be in RAM to work ?

Cheers,
Chris

Outcomes