Author Topic: Need support from DigiStump or DigiCDC developer(s). Please help me out, here.  (Read 3214 times)

DuinoSoar

  • Newbie
  • *
  • Posts: 5

@DigiStump or DigiCDC Developer(s): Can you please help with some support here?  My DigiSpark project is stuck on this issue.

If I am posting in the wrong forum or website, or if I am asking for help from the wrong people, please point me in the right direction.  I need help with this, as I do not know anything about USB or CDC protocol.

----

So I did a little more digging into the problems I am having with the DigiCDC "Echo" example.

When I, instead, tried the DigiKeyboard example (using the HID protocol), I got the same compiler error about usbdrvasm.S, but the compile completed and the program "uploaded" into the DigiSpark okay (using Micronucleus bootloader), and I got the keyboard messages show up in my Arduino editor window (which I still had opened and which still had focus when the program started running on the DigiSpark).  So that example works just fine (despite the compiler error).

However, my DigiSpark project needs BIDIRECTIONAL serial protocol, as it needs to respond to user inputs from a terminal emulator (or something like the Arduino IDE Serial Monitor window), as well as providing outputs and statuses to the user.

So when I repeated the test with the "Echo" example using the DigiCDC library, I got the compiler error again, and the compilation still completed and uploaded.  But this time I got the Windows USB error.  In the Windows Device manager, the error said something about an invalid device configuration descriptor.  (I forget the exact message, and I do not have the DigiSpark board with me at the moment to try it again; I did all of this testing yesterday.)

I searched around some of the forums and found that others have run into this problem for the past couple of years or so (apparently since Windows 8 or 8.1), but I have not seen posted anywhere, any solution or instruction on how to fix it.

Some specific questions:
  • Is there some change I can make to the DigiCDC library source or the "Echo" example source, to fix the device configuration?  For example, can something be changed in the DigiCDC library's usbconfig.h file, to get rid of the Windows "invalid configuration" error?
  • Is there some other driver that I must install in Windows 10 to get CDC protocol to work?
  • Is there something else that needs to be done with the DigiCDC library source, the "Echo" example source, or Windows 10, in order to get the DigiSpark to communicate over USB using CDC protocol?

Please help me here; I need  a solution to this issue to continue with my project, and I have run out of things to try.  I specifically purchased some DigiSpark boards so that I could do serial communication over the USB port, but it seems I should not have done so.  I really hate the thought of having to switch to using a ATtiny85 with a software serial driver and a USB-to-serial dongle. :(

BTW, it seems that the other issue that I posted about earlier with the compiler error is not as important, since the programs will still finish compiling (and the HID examples, at least, still seem to work, although I cannot use that), but if there is a fix for the compiler error, as well, I would like to know about it.

Thanks and best regards,
   DuinoSoar.