error with ERR_API_INVALID_PARAM2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error with ERR_API_INVALID_PARAM2

463 Views
lpcware
NXP Employee
NXP Employee
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,



Labels (1)
0 Kudos
Reply
1 Reply

446 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pra18 on Tue Sep 23 07:58:14 MST 2014
Hi all,

i found from usbd_cdc_user.h file that the ERR_API_INVALID_PARAM2 is returned when CDC_Read , CDC_Write, and CDC_Verify are not defined. .

where and how are these CDC_Read CDC_Write and CDC_Verify defined ? is there any example code?

I searched in the hitex4350 and other example folder in lpcopen but could not find it

Thanks in advance,
0 Kudos
Reply