GR-Rose in USB Host Configuration

Hello GR-Rose team,

Can we use GR-Rose in USB Host configuration?

If so, do we need to do any hardware modifications?

Regards,

Kamal 

Parents
  • Hi Kamal,

    You need to supply 5V to an external device. Make sure the terminal "USB0_VBUSEN" "USB0_OVRCURA" are not connected to RX65N on GR-ROSE, so you should take care the functions on these terminals are not available, for example the detection of over current.
  • Hello Yuuki-san,

    Thank you for the response on this topic.

    We have confirmed that these pins are not assigned as USB pins in the MPC configuration.
    We have connected USB Y-cable to PC, GR-Rose and USB memory stick. PC is providing the 5V supply to both GR-Rose and Memory stick.

    With this configuration, USB connection is not working.
    Observation: Upon connection of USB memory stick to Y-cable, RX-65N receives attach interrupt but after that, there are no transaction seen on the bus when checked with a USB analyzer.

    However, we have confirmed that USB host configuration is working fine with RSK-2MB board.
    Any information on this would be really helpful?

    Regards,
    Kamal
  • Hi Kamal,

    I'm not sure the cause, but the terminal P14/USB0_OVRCURA is pull-down on GR-ROSE. The example for connecting USB0_OVRCURA is pull-up according to the hardware manual of RX65N. So I think it's necessary either to change the connection of P14 or to disable the interrupt for detecting over current.
  • Hello Yuuki-san,

    Thank you for your response.

    Yes. We have disabled the interrupt for detecting over current.

    In our setup, PC is feeding power (5V) to both device and GR-Rose. Is it OK for the power being fed to GR-Rose? Would that configuration affect the working of USB Host interface of RX65N?

    Regards,
    Kamal
  • Hi Kamal-san,

    I think it's Ok. Can you try to disbale Wi-Fi module by the following code?
    The consumption of Wi-Fi module ESP8266 is high.

    PORT2.PDR.BIT.B4 = 1;
    PORT2.PODR.BIT.B4 = 0; // Disable ESP8266
  • Hello Yuuki-san,

    Thank you for the suggestion.

    We tried disabling WiFi module as suggested.
    It did not work! No change in the behaviour.

    We are thinking of doing Pull-up changes for USB0_OVRCURA pin. Is it worth a try?

    Is there any SW reference implementation for USB Host on GR-Rose?

    Regards,
    Kamal
  • Hi Kamal,

    I think there is no difference between RSK and GR-ROSE exclude USB0_OVRCURA, so it is worth to try, if you can do it.
    I'm sorry but I don't have the adapter to microB to A socket now, so I can't try your software and analyze.

    There is no SW reference for GR-ROSE USB host, because that would be used for Serial class for Arduino, rosserial for ROS and CUI for microPython as USB function.
  • Hello Yuuki-san,

    Today, we tried the board modification.
    But USB host interface did not work on the GR-Rose. The observation is still the same issue.

    Even after making GR-Rose USB Host section similar to RX65N-2MB RSK, somehow behaviour is not the same as RX65N-2MB RSK board.

    Regards,
    Kamal
Reply
  • Hello Yuuki-san,

    Today, we tried the board modification.
    But USB host interface did not work on the GR-Rose. The observation is still the same issue.

    Even after making GR-Rose USB Host section similar to RX65N-2MB RSK, somehow behaviour is not the same as RX65N-2MB RSK board.

    Regards,
    Kamal
Children
No Data