getting USB to work at all

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My target is a atmega32u4.

I can connect to it with JTAG and a USB cable.

As a practical matter, that is it.

My immediate goal is to make LUFA work at all:

A CDC that will emit ABC... at one character per second.

There isn't much else for it to do.

 

I've used LUFA before, starting when it was still MyUSB,

and that makes me want  to try it again.

My recollection is that it wasn't too hard to use once one got used to it,

but right now I'm wheel-spinning.

 

I'm open to suggestion.

 

I tried building the Virtual Serial demo with BOARD=USER,

but it choked on a missing header file, undefined LEDs and stuff.

It looked like fixing it would be a lot of work and I don't know what it does.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you're using Atmel Studio, you can use the LUFA's Studio Extension.

Take a look at this post.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there an actual usable listing/spreadsheet of the extensions, this link was the only one I founds & these extensions are arraigned like they were randomly thrown into a trash barrel.

Five click later & the same extension shows up , but perhaps a more recent (or older) vintage.  No rhyme or reason.  I think I saw the same terminal  program appear 5 different places.

 

https://gallery.microchip.com/pa...

 

 

When in the dark remember-the future looks brighter than ever.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you are looking for the LUFA extension, try:

   https://gallery.microchip.com/pa...

 

 

 

 

Last Edited: Sun. Apr 15, 2018 - 01:16 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually, if I want to integrate it with the rest of my code,

I'll need to use CMake.

 

With effort, I did get VirtualSerial to compile and link.

Haven't uploaded it yet.

I'll get back to you on the result.

 

Dean's complete reliance on garbage collection is fascinating.

Were I able to write something like LUFA,

that would be more of a complaint.

 

I did some grepping to figure out which files the demo used.

The answer surprised me.

I'm not where I can get at that now,

so that is something else I'll get back to you on.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Windows 10 wrote:
The third-party inf does not contain digital signature information
I've uploaded the demo,

but do not seem able to connect the port.

Trying to install "LUFA VirtualSerial.inf" produces the above message.

Any thought on how to fix?

 

Googling produced a somewhat horrendous answer for windows 8.

I expect there is a better.

 

Interestingly enough, Arduino tools can see the port even though it seems non-functional.

It does not show up next to (COM & LPT) the other virtual serial port that I can use.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found this depressing bit of information at http://www.fourwalledcubicle.com...​ .

Dean Camera wrote:
No LUFA provided driver INF files for Windows are signed, and thus may fail to install on systems where driver signing is enforced (e.g. Windows 8).
I'd prefer to avoid the slightly horrendous workaround I mentioned earlier.

​Anyont hae a non-horrendous idea?

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I tried the slightly horrendous method.

Didn't work.

Still got the error message.

Apparently there is no way to use LUFA on Windows 10.

I'm never buying Windows 10 or Lenovo again.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go HERE and read carefully.  I would use the command prompt method.  Remember to turn off nointegritychecks when the driver has been installed.

 

First open an elevated command prompt, then bcdedit.exe /set nointegritychecks on, install the driver, followed by bcdedit.exe /set nointegritychecks off.

 

 

 

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Tue. Apr 17, 2018 - 12:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

larryvc wrote:
Go HERE and read carefully.  I would use the command prompt method.  Remember to turn off nointegritychecks when the driver has been installed.

 

First open an elevated command prompt, then bcdedit.exe /set nointegritychecks on, install the driver, followed by bcdedit.exe /set nointegritychecks off.

I'd been here before without success.

I did it again mostly to be able to say I did.

Somehow, that seems to have helped Michael realize he did two stupids.

The first, I do not know when I did it: I moved *the* USB cable from the port I wanted to the port I did not.

I do not remember doing that.

The second I did several times: Staring at the device manager entry for

the unwanted port and not realizing why I did not see the wanted port.

 

Though not obvious yet, I suspect the port works.

 

The next thing I need to do is make the demo pat the watchdog.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

W10 seems to be stuck in test mode.

I do not know how to get out of it.

The route by which I got here seems to have only one lane.

 

Anyone know how to get out of it or whether I need to.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Methinks Michael needs to find the hat with my head in it.

Just do an ordinary restart, right?

 

Edit: nope.  Had to do bcdedit /set testsigning off

 

I'm not by the W10 machine right now.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Tue. Apr 17, 2018 - 03:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
Dean's complete reliance on garbage collection is fascinating. Were I able to write something like LUFA, that would be more of a complaint.
His design approach for this has always intrigued me. My one complaint is that because it is such a big code tree it's then building quite a lot of stuff (over quite a lot of time) that will later be discarded.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
skeeve wrote:
Dean's complete reliance on garbage collection is fascinating. Were I able to write something like LUFA, that would be more of a complaint.
His design approach for this has always intrigued me. My one complaint is that because it is such a big code tree it's then building quite a lot of stuff (over quite a lot of time) that will later be discarded.
Mine is that it inhibits understanding and figuring out what file I need in my own code.

I made an attempt with the VirtualSerial demo:

grep -F '>:' VirtualSerial.lss > names.txt
vim names.txt
grep -R -F -f names.txt --include \*.c  ../../../../LUFA > files.txt
cp files.txt fn1.txt
sort -u fn1.txt | tee fn2.txt

I got 38 files, some most of which I'm sure are wrong:

../../../../LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c

../../../../LUFA/Drivers/USB/Class/Device/AudioClassDevice.c

./../../../LUFA/Drivers/USB/Class/Device/HIDClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/MassStorageClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/PrinterClassDevice.c
...

 

../../../../LUFA/Build/DMBS/DMBS/HID_EEPROM_Loader/HID_EEPROM_Loader.c
../../../../LUFA/Build/DMBS/Template/Template.c
../../../../LUFA/CodeTemplates/DeviceTemplate/Descriptors.c
../../../../LUFA/CodeTemplates/DeviceTemplate/DeviceApplication.c
../../../../LUFA/CodeTemplates/HostTemplate/HostApplication.c
../../../../LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
../../../../LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c
../../../../LUFA/Drivers/USB/Class/Device/AudioClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/CDCClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/HIDClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/MassStorageClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/PrinterClassDevice.c
../../../../LUFA/Drivers/USB/Class/Device/RNDISClassDevice.c
../../../../LUFA/Drivers/USB/Class/Host/AndroidAccessoryClassHost.c
../../../../LUFA/Drivers/USB/Class/Host/CDCClassHost.c
../../../../LUFA/Drivers/USB/Core/AVR8/EndpointStream_AVR8.c
../../../../LUFA/Drivers/USB/Core/AVR8/Endpoint_AVR8.c
../../../../LUFA/Drivers/USB/Core/AVR8/Host_AVR8.c
../../../../LUFA/Drivers/USB/Core/AVR8/PipeStream_AVR8.c
../../../../LUFA/Drivers/USB/Core/AVR8/Template/Template_Endpoint_RW.c
../../../../LUFA/Drivers/USB/Core/AVR8/USBController_AVR8.c
../../../../LUFA/Drivers/USB/Core/AVR8/USBInterrupt_AVR8.c
../../../../LUFA/Drivers/USB/Core/DeviceStandardReq.c
../../../../LUFA/Drivers/USB/Core/Events.c
../../../../LUFA/Drivers/USB/Core/UC3/EndpointStream_UC3.c
../../../../LUFA/Drivers/USB/Core/UC3/Endpoint_UC3.c
../../../../LUFA/Drivers/USB/Core/UC3/Host_UC3.c
../../../../LUFA/Drivers/USB/Core/UC3/PipeStream_UC3.c
../../../../LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c
../../../../LUFA/Drivers/USB/Core/UC3/USBController_UC3.c
../../../../LUFA/Drivers/USB/Core/UC3/USBInterrupt_UC3.c
../../../../LUFA/Drivers/USB/Core/USBTask.c
../../../../LUFA/Drivers/USB/Core/XMEGA/EndpointStream_XMEGA.c
../../../../LUFA/Drivers/USB/Core/XMEGA/Endpoint_XMEGA.c
../../../../LUFA/Drivers/USB/Core/XMEGA/Template/Template_Endpoint_RW.c
../../../../LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.c
../../../../LUFA/Drivers/USB/Core/XMEGA/USBInterrupt_XMEGA.c
 

 

 

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Tue. Apr 17, 2018 - 03:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
Edit: nope.  Had to do bcdedit /set testsigning off

But where in my post #9 did I tell you to muck with the testsigning settings?  I suggested that you read the information at the link very carefully.  Then I gave you instructions on exactly what to do.  You never did have to change the testsigning settings at all.

 

Did you got the driver installed?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Tue. Apr 17, 2018 - 04:04 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

larryvc wrote:
skeeve wrote:
Edit: nope.  Had to do bcdedit /set testsigning off

But where in my post #9 did I tell you to muck with the testsigning settings?  I suggested that you read the information at the link very carefully.  Then I gave you instructions on exactly what to do.  You never did have to change the testsigning settings at all.
I was already in testsigning mode when I read #9.

The driver might already have been installed,

but as noted, I had already done a couple stupids.

Quote:
Did you got the driver installed?
Yes.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Tue. Apr 17, 2018 - 04:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
Mine is that it inhibits understanding and figuring out what file I need in my own code. I made an attempt with the VirtualSerial demo:
Would the .map be a better place to start looking for what is actually linked in the final output? (though it will have a large "discarded" section at the top listing everything that didn't make it)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Would the .map be a better place to start looking for what is actually linked in the final output? (though it will have a large "discarded" section at the top listing everything that didn't make it)
A little: 32 files.  No XMega, Template or DBMS,

but there is HID and Host.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?