I'm trying to write some software that will allow me to program embedded controllers using the Z. I've got an unusual problem - I've gotten as far as being able to recognize the programmer, but as soon as I try to write a block of data to the controller, WHAM! Lockup. Here's where I could use some help. When I built libusb, the build enabled interrupt driven bulk data writes. Does anyone know if the USB controller in the 6000 allows for interrupt driven writes? Should I reprogram the application to use bulk writes?
I saw in the USB cables thread that someone else was getting lockup when trying to access a jukebox (I'll assume that's an MP3 player). Maybe this is something similair? I've been adding printf statements to the usb applications to try and get input on where the crash is occurring. Here's where I think the crash happens.
int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size,
int timeout)
{
/* Ensure the endpoint address is correct */
return usb_interrupt_transfer(dev, ep & ~USB_ENDPOINT_IN, bytes, size,
timeout);
}
crashes the system. Whazzup with that?
Thanks for your help, Zaurus experts!