Content originally posted in LPCWare by Tsuneo on Wed Feb 13 20:17:10 MST 2013
Quote:
How can a place a breakpoint when my bootloader loads the FW ?
Surely, my bad. We can't apply source level debug to the bootloaded code.
OK, move to heuristic approach.
In main_hid.c, the Report descriptor, abReportDesc, is declared in this style.
static U8 abReportDesc[] = {
and this declaration causes trouble.
On the other hand, the Device and Configuration descriptors are declared in this style,
static const U8 abDescriptors[] = {
This declaration works fine.
Add "const" to abReportDesc declaration, and try how it goes.
static const U8 abReportDesc[] = {
If it would solve the enumeration problem, it suggests a problem on linker script for the bootloaded code.
- variables with initializer are not initialized well.
Tsuneo