Ok, so continuing my investigation, after several debugs I fall in the line:
status = usb_add_config(cdev, &config_driver, do_config);
This line is inside hid.c
So after several debugs inside I saw that in the function do_config the following line crashes:
status = usb_add_function(c, e->f);
I didn’t change the code of hid.c I just added the keyboard desccriptors and the register of the device as on the examples around internet.
Any help around ?
Thank you in advance