lpcware

error with ERR_API_INVALID_PARAM2

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by pra18 on Tue Sep 16 07:54:34 MST 2014
Hi,

when I try to call CDC Initialisation routine by the  call USBD_API->cdc-Init  I am getting the error code ERR_API_INVALID_PARAM2. Before this step , the call to USBD_API->hw->Init is passing.


The manual says that error code is returned when we dont define the CDC_Read/Write callbacks. i have already registered callbacks for IN and OUT events and defined read and write calls also.


Here is the background what I am trying to do :

I am trying to adapt an example of USB CDC from lpcopen.

the example when run on the traget works fine but when I try to adapt the example into my codebase this problem occurs.

Can anyone point out what I might be  missing and the problem.

thanks in advance,



Outcomes