感谢您的回复,我已经有思路了:
1.首先确定该向RF52840下载哪一个usbd_固件(这个固件可能后续我们还要开发裸机部分/协议栈不动);
2.通过桌面版nRF_Connect+红旭开发板nRF52840+蓝牙usbd的固件+手机进行蓝牙文件传输测试;
3.在全志MCU的BSP内核部分勾选USB/gadget部分实现和红旭开发板nRF52840的USB对接;
那么问题出来了:
您的截图中出现了多个usbd设备:
usbd_audio 音频设备 不关注
usbd_ble_uart_freertos 不关注
那么剩下的:
usbd
usbd_cdc_acm
usbd_ble_uart
usbd_ble_hid_composite
usbd_hid_composite
usbd_hid_generic
usbd_msc
我不知道选哪一个工程/固件
我希望nRF52840作为一个USB设备被全志MCU探测到,而且nRF52840的蓝牙和串口要能使用。
请问:
1.以上不确定的工程/固件我应该选哪一个呢?
2.是否有文档说明了上述截图目录中各个demo的用处(最近新接触这款IC文档不熟悉),7月10日早上已经找到了文档对上述的说明,但是还是不能确定用哪一个。
01.usbd
说明:This is a simple example based on USB Device HAL and driver. The example emulates a HID mouse.
02.usbd_cdc_acm :
说明: Virtual COM port, with the Nordic UART Service.
03.usbd_ble_uart
说明:
Commonly known as Virtual COM port. After connecting the USB cable, the development kit will enumerate as a COMx port on Windows hosts or as a /dev/ttyACMx device on Linux/Unix hosts. The port can be opened and closed just like a traditional serial port.
04.usbd_ble_hid_composite
说明:
This example shows how to use two HID classes as one composite device. A development kit connected to the host computer will enumerate as two independent HID classes.
05.usbd_hid_composite
说明:
This example shows how to use the HID generic class. Generic protocol is used when user-defined reports are exchanged between the USB host and the device. The example shows how to handle a HID mouse like device using the HID generic protocol.
06.usbd msc
说明:
This example shows how to configure and use the USB Mass Storage Class. A development kit connected to a host will enumerate as a single Mass Storage Class with multiple logical units.