USB Host Shield Software

I just got the Arduino Uno and the USB host shield up and running, but am getting an error when running Oleg Mazurov's board test when performing the USB test. I get an error code of 0xd (hrJERR - J-state instead of response) back from the MAX 3241 HRSL register. I get this code no matter what USB device I've plugged into the host shield.

Does anyone have ideas on what the cause of this is?

1 Like

but am getting an error when running Oleg Mazurov's board test when performing the USB test.

Who's test? Got a link to something you want us to look at?

Oleg put his code at GitHub - felis/USB_Host_Shield: Libraries and code for Circuits@Home Arduino USB Host Shield. I am running the 'board test' found in the examples directory of the link above. When I get to the place in the code in the function 'usbtest' that does :

case( USB_ATTACHED_SUBSTATE_GET_DEVICE_DESCRIPTOR_SIZE ):
printProgStr(PSTR("\r\nSOF generation started. Enumerating device."));
break;
case( USB_STATE_ADDRESSING ):
printProgStr(PSTR("\r\nSetting device address"));
//delay( 100 );
break;

the function 'Usb.Task' returns the error code from the MAX3421 chip.