Trouble with USB OTG in device mode

Actually I don’t have find a way to solve this issue: I can boot in peripheral mode but if I don’t have device already attached on USB the device mode doesn’t start correctly. Also no manner to use cdc ethernet gadget, it start correctly if device attached at boot but then no communication happen on physical layer ( Ip and route correct), from analisys seems a disalignement in ethernet packet in g_ether driver usb_f_cdc: if I setup IP on device and host side I cannot ping each other…