Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: OSAL USB initialization and callbacks

$
0
0

I have imported what I believe are all the necessary USB libraries into the SimpleBLEPeripheral project and have set up my USB initialization routine in the same manner as elsewhere described on this forum. However Windows won't recognize the device attached to the port after running the program (simpleJavaPeripheral won't enumerate the port). I am using the dongle and have loaded the HostTestApp which the SimpleJavaPeripheral will recognize.

Any ideas why Windows is not seeing the dongle when it runs my project?

Should the code that initializes the USB port such as uartConfig.baudRate and uartConfig.flowControl (my understanding is that USB libraries provide a virtual UART interface) go in my app's initialization function (in this case void SimpleBLEPeripheral_Init( uint8 task_id )) or somewhere else? I also call  HalUARTOpen(HAL_UART_PORT_0, &uartConfig) in this initialization function. Also, should I have the callback as its own function in SimpleBLEPeripheral.c? 


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>