Closed pwilkowski closed 1 year ago
There is lot of not supported
For sure, however n-able core literally includes tinyusb in it, I did try it before, now im checking updated version. I do not think this is an issue of any of those as simply buffer seems to be empty, so my best bet is that i am missing something?
For above platform/board/IDE, you should ask them for support. I don't use any of those and won't be able to provide any info.
Ok so last question, perhaps this may make those things clearer:
Inside function
// Add interface descriptor
// - Interface number will be updated to match current count
// - Endpoint number is updated to be unique
bool Adafruit_USBD_Device::addInterface(Adafruit_USBD_Interface &itf) {
uint8_t *desc = _desc_cfg + _desc_cfg_len;
Serial.printf("sizes: %d %d\n",_desc_cfg_maxlen, _desc_cfg_len);
I have placed simple debug, both _desc_cfg_maxlen
and _desc_cfg_len
are zero. Where/how can i configure them?
Imo it doesnt have anything to do with board platform or ide.
Operating System
Windows 10
Arduino IDE version
PlatformIO Core, version 6.1.7
Board
nrf52840 DK
ArduinoCore version
n-able-Arduino 0.1.1
TinyUSB Library version
adafruit/Adafruit TinyUSB Library@^2.2.1
Sketch as ATTACHED TXT
Compiled Log as ATTACHED TXT
There is no log as there is no error, usb simple hid in out example simply fails at
if (usb_hid->begin()) {
and returns falseWhat happened ?
I have dug deeper and it seems like this is the problem
Adafruit_USBD_Device.cpp
function
bool Adafruit_USBD_Device::addInterface(Adafruit_USBD_Interface &itf) {
around the code
desc_end returns 32 so this is probably some trivial problem or perhaps a lack of define?
How to reproduce ?
Create project in platformio with following config:
Make Cpp/H file named USB.h, USB.cpp, create empty header with simple include
Copy contents of the file i attached at the beginning to USB.cpp
In main setup. Execute
USB::init();
Debug Log
Failx2 32USB failed!
Screenshots
No response