ROM USB MIDI cant seem to get Interrupts to fire

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ROM USB MIDI cant seem to get Interrupts to fire

1,677 次查看
BetoGreen
Contributor III

I am trying to get a ROM USB MIDI device running on an LPC51U68 using MCUxpresso  similar to the Microchip MIDI tone generator example . ( which runs out of the box ) 

I am to be able to initialize and register the Rom handlers without errors . Same descriptor which is working with Microchip example.

ret = USBD_API->hw->Init(&g_hUsb, &desc, &usb_param);  = LPC_OK

ret = USBD_API->core->RegisterClassHandler(hUsb, ADC_ep0_hdlr, pAdcCtrl);  = LPC_OK

ret = USBD_API->core->RegisterEpHandler(hUsb, pSubs->ep_index, ADC_iso_out_hdlr, pSubs);  = LPC_OK

USBD_API->hw->Connect(g_hUsb, 1);   is OK and my computer enumerates it fine.

 

But I cant seem to get any Interrupts to fire for the registered class ADC_ep0_hdlr or other EP handlers.

Any one have any ideas?  Do they only fire if I receive something, so do I need to send something to my device or should the class handler fire all the time when the usb link is open?

Any way to debug this?

 

 

 

0 项奖励
回复
1 回复

1,657 次查看
BetoGreen
Contributor III

Got them to fire but WriteEP crashing. I guess I'll submit a ticket... seems pointless talking to myself.

0 项奖励
回复