Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Using the USB for something other than a debug port

USB debug

  • Please log in to reply
2 replies to this topic

#1 ChuckZ

ChuckZ

    New Member

  • Members
  • Pip
  • 2 posts

Posted 14 January 2014 - 01:20 AM

I am evaluating the use of a Netduino Plus 2 for testing of another device (DUT) which has a USB port. I would communicate to the Netduino on the Ethernet port and then control the DUT via USB commands. There are a lot of details to work out, but, the obvious concern I have with this approach is that the USB port is needed for debugging. I certainly cannot debug while simultaneously using the USB for controlling the DUT.

 

Here are some ideas I have to work around this:

  • Develop what I could using Visual Studio and use a JTAG debugger for the full end-to-end solution (I saw another post that suggested a different board that could support JTAG)
  • Modify the core code on the Netduino and use a couple of the digital IO as a serial port for debugging (ala WinDbg)
  • Use a different device (ideally in the Netduino family) better suited for this task

I am also wondering if, assuming that I can work out the debug issues, the .NET CF has good support for using the USB as something other than a debug port.

 

I have done a modest amount of kernel/OAL/boot loader development and would prefer something like #2 if that were possible. It lets me stay in the Visual Studio environment rather than going to a JTAG debug environment.

 

Any thoughts on this or other ideas are welcome.

Thanks

 



#2 wendo

wendo

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 14 January 2014 - 06:00 AM

It sounds like you're planning on connecting two USB slave devices without a host device. Typically one end of a USB cable is a host port, and controls all the interactions. In almost all cases that is the PC, and the devices on the other end are much simpler because all of the host logic is in the PC. You can't simply connect two devices with a USB cable if neither of them can be a host/master. As far as I've seen, there isn't any code for the Netduino to turn it into a USB Host device.

 

References here

 

http://forums.netdui...-usb-host-mode/

 

http://forums.netdui...c/602-usb-host/



#3 ChuckZ

ChuckZ

    New Member

  • Members
  • Pip
  • 2 posts

Posted 14 January 2014 - 05:46 PM

Thank you. Exactly the kind of information I was hoping to get.







Also tagged with one or more of these keywords: USB, debug

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.