UsbXlater Preview

Talk about anything concerning the source code.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: UsbXlater Preview

Post by Matlo »

Thanks for the code!

I cloned the git repo and imported the UsbXlater as an eclipse project.

It didn't compile as-is, I had to replace '\' with '/' in the include paths (project properties>C/C++ Build>Settings>Tool Settings>ARM Yagarto Windows GCC C Compiler>Directories).

EDIT: I also had to replace "Stm32f2xx" with "stm32f2xx" in led.c.
GIMX creator
frank26080115
Posts: 20
Joined: Sun Oct 20, 2013 7:36 pm

Re: UsbXlater Preview

Post by frank26080115 »

yea... let's not get into OS wars

anyways, I just made some improvements, you should check for new commits and read the log, and/or subscribe to notifications if you want

the latest changes will turn the device into a virtual serial port if it detects that you are connected to a PC instead of PS3, and then it will go into a debug mode where it outputs HID report descriptor and traffic analysis data using the VCP.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: UsbXlater Preview

Post by Matlo »

frank26080115 wrote: yea... let's not get into OS wars
Not my intention!


I tried to figure out how to make the UsbXlater enter into dfu mode. How do I proceed?
GIMX creator
frank26080115
Posts: 20
Joined: Sun Oct 20, 2013 7:36 pm

Re: UsbXlater Preview

Post by frank26080115 »

oh yea, there's a jumper called boot, place a jumper block between the two pins closest to the female USB connector, then hit reset. It should then idle in system bootloader mode

there is no indication, and it won't enumerate through the micro-USB side, you need the serial port for this

the triangle symbols on the PCB are the serial port pins, and the triangles indicate the direction of the data
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: UsbXlater Preview

Post by Matlo »

It's working :)
The reset button was not working, I used my soldering iron to fix it.
I'm using the stm32flash tool from https://gitorious.org/stm32flash/stm32flash

I added the following file to prevent my system from sending stuff to the VCP when the UsbXlater is connected:

Code: Select all

cat /etc/udev/rules.d/99-stm32.rules 
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="5740", ENV{ID_MM_DEVICE_IGNORE}="1"
To read the messages coming from the VCP, I use the following commands:

Code: Select all

stty -F /dev/ttyACM0 raw
cat /dev/ttyACM0
GIMX creator
Post Reply