daniel-thompson / i2c-star

A clone of the i2c-tiny-usb based upon STM32 and libopencm3
GNU General Public License v3.0
127 stars 31 forks source link

Wonderful ! #2

Open MaikStohn opened 8 years ago

MaikStohn commented 8 years ago

Your tutorial for installing it is great.

Only one thing was not working out of the box for me (DFU-UTIL did not have permission to access the device, i fixed it with "sudo"):

Here my example walk through for Ubuntu:

sudo apt-get install git gcc-arm-none-eabi openocd dfu-util

git clone https://github.com/daniel-thompson/i2c-star.git

cd i2c-star; git submodule update --init --recursive

make

#connect target with stlink-v2

make -C src/bootloader flash

#connect target usb directly

sudo make -C src/i2c-stm32f1-usb flash

Thanks,

Maik

tormodvolden commented 3 years ago

Seconded, this is wonderful :) Thanks to Daniel for this great software and tutorial!

Maik, to avoid running dfu-util as root you can make the bootloader device accessible to the desktop user by installing a udev rules file, see this example. In some Linux distributions the rules file is already installed with dfu-util.