[SOLVED] 'find /dev/vboxusb' in upload output ??????

Post Reply
zmemw16
Posts: 1292
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

[SOLVED] 'find /dev/vboxusb' in upload output ??????

Post by zmemw16 » Fri Jul 24, 2015 3:04 am

this went away for some reason and has just re-appeared.
not sure why - however

sudo adduser stephen vboxusers

seems to fix it; you need to logout/login for the change to take effect

system is now debian 8.3 64 bit.
interestingly there's no 60-vboxdrv.rules in /etc/udev/rules.d

stephen
15/03/16

==================================================================================

running debian 8 updated as of last night,
arduino 1.6.5 32bit linux from arduino.cc
with Arduino_STM32 of about 2hrs back(21/7/15)

generic 103c8t6 20k/64k as option with stlink

googled 'find /dev/vboxdrv' mainly installation issues
added ' stlink st-link' mainly virtualbox usb pass through problems
added 'stm32' found MSI G41M-P26 info about PCI-ex 1.0 & AHCI mode
http://www.wikiguga.com/topic/2ab2384c8 ... 2bf4ac0220
is a reference to a permissions issue 600 v 666
seems i need a reboot, restarting udev after editing udev rule 60-vboxdrv.rules wasn't enough

i did a search here, no vboxdrv found in the forums
just the blink sketch
with verbose on, i get the page written messages

what's puzzling me is the 'find /dev/vboxusb' in the messages,

"grep -R -i vboxdrv *" doesn't find anything under ard165stm or sketchbooks/sketchbook_stm32
forgot ./.arduino15, nothing as well

yes i've got arduino and sketchbook dirs for each of std/stm32/teensy
./.arduino15 seems to get rebuilt as required, apart from preferences.txt and the sketchbook entry, annoyingly easy enough to adjust

any thoughts?

stephen

i've attached pictures of the usb stlink and the stm32 board, apols as via mobile and decreased resolution

=========================================
stephen@i7:~/sketchbooks/sketchbook_stm32$ ls -lt /dev|head
total 0
crw-rw-rw- 1 root tty 5, 2 Jul 24 03:13 ptmx
drwxr-xr-x 2 root root 3820 Jul 24 02:45 char
lrwxrwxrwx 1 root root 15 Jul 24 02:45 stlinkv2_2 -> bus/usb/001/051
brw-rw---- 1 root disk 8, 16 Jul 24 02:40 sdb
brw-rw---- 1 root disk 8, 32 Jul 24 02:40 sdc
drwxr-xr-x 2 root root 180 Jul 24 02:40 block
drwxr-xr-x 5 root root 100 Jul 24 02:40 disk
crw-rw---- 1 root disk 21, 2 Jul 24 02:40 sg2
drwxr-xr-x 2 root root 100 Jul 24 02:40 bsg
=========================================
dmesg shows
======================================
[59135.012574] usb 1-1.1.2: new full-speed USB device number 51 using xhci_hcd
[59135.102051] usb 1-1.1.2: New USB device found, idVendor=0483, idProduct=3748
[59135.102055] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[59135.102057] usb 1-1.1.2: Product: STM32 STLink
[59135.102059] usb 1-1.1.2: Manufacturer: STMicroelectronics
[59135.102060] usb 1-1.1.2: SerialNumber: RÿmP\xffffffc2\xffffff80VPA"\xffffffc2\xffffff87
=====================================

upload output is
======================================
/home/stephen/sketchbooks/sketchbook_stm32/hardware/Arduino_STM32/tools/linux/stlink_upload ttyUSB0 {upload.altID} {upload.usbID} /tmp/build765477510582877712.tmp/Blink.cpp.bin
USB Status [unknown]
2015-07-24T02:53:53 INFO src/stlink-common.c: Loading device parameters....
2015-07-24T02:53:53 INFO src/stlink-common.c: Device connected is: F1 Medium-density device, id 0x20036410
2015-07-24T02:53:53 INFO src/stlink-common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 1024 bytes
2015-07-24T02:53:53 INFO src/stlink-common.c: Attempting to write 13756 (0x35bc) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08002c00 erased2015-07-24T02:53:53 INFO src/stlink-common.c: Finished erasing 14 pages of 1024 (0x400) bytes
2015-07-24T02:53:53 INFO src/stlink-common.c: Starting Flash write for VL/F0/F3 core id
2015-07-24T02:53:53 INFO src/stlink-common.c: Successfully loaded flash loader in sram
Flash page at addr: 0x08003400 erased
11/13 pages written2015-07-24T02:53:54 INFO src/stlink-common.c: Starting verification of write complete
13/13 pages written2015-07-24T02:53:54 INFO src/stlink-common.c: Flash written and verified! jolly good!

USB Status [unknown]
find: `/dev/vboxusb': Permission denied
Waiting for tty device

should now be available.
=================================================
Attachments
2015-07-24 03.22.19.jpg
2015-07-24 03.22.19.jpg (120.17 KiB) Viewed 1052 times
2015-07-24 03.21.57.jpg
2015-07-24 03.21.57.jpg (123.32 KiB) Viewed 1052 times
Last edited by zmemw16 on Tue Mar 15, 2016 2:16 pm, edited 3 times in total.

zmemw16
Posts: 1292
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: 'find /dev/vboxusb' in upload output ??????

Post by zmemw16 » Fri Jul 24, 2015 3:19 am

browsed in the
Board index Uploaders and debuggers Black Magic Probe & other
making arduino as a programmer
mentions st link doesn't power the board
connected the usb & now i get
13/13 pages written2015-07-24T04:08:15 INFO src/stlink-common.c: Flash written and verified! jolly good!

USB Status [ttyACMx]
find: `/dev/vboxusb': Permission denied <==== not yet rebooted
Waiting for tty device /dev/ttyACM1

/dev/ttyACM1 should now be available.
================================
root@i7:/etc/udev/rules.d# ls -lt /dev|head
total 0
crw-rw-rw- 1 root tty 5, 2 Jul 24 04:09 ptmx
drwxr-xr-x 2 root root 3840 Jul 24 04:07 char
lrwxrwxrwx 1 root root 7 Jul 24 04:07 maple -> ttyACM1
drwxr-xr-x 4 root root 80 Jul 24 04:07 serial
crw-rw-r-- 1 root dialout 166, 1 Jul 24 04:07 ttyACM1
lrwxrwxrwx 1 root root 15 Jul 24 03:57 stlinkv2_2 -> bus/usb/001/053
crw-rw-rw- 1 root root 10, 203 Jul 24 03:55 cuse
crw-rw-rw- 1 root root 10, 229 Jul 24 03:55 fuse
crw-rw---- 1 root disk 10, 237 Jul 24 03:55 loop-control
================================

pls don't say add the stm32 to the dialout group:-)

stephen
rebooting via me sleeping

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 'find /dev/vboxusb' in upload output ??????

Post by RogerClark » Fri Jul 24, 2015 3:34 am

Did you run the install script in /tools/linux ?

It does various things including the dialout group stuff

zmemw16
Posts: 1292
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: 'find /dev/vboxusb' in upload output ??????

Post by zmemw16 » Fri Jul 24, 2015 4:44 am

pretty sure it was setup before, but just run the install script as root

uploading still waiting for tty device
thats different to the first try with a generic103c8t6
this board is a 103rct6
still the same problem, i was searching and found a link about ttyACM implementations not being compatible
https://my.st.com/public/STe2ecommuniti ... tviews=731
link points to
https://www.kernel.org/doc/Documentation/usb/acm.txt

dmesg gives
[ 2594.516004] usb 3-1.1.3: device not accepting address 22, error -71
[ 2594.516070] usb 3-1.1-port3: unable to enumerate USB device
[ 2708.212923] usb 3-1.1.3: new full-speed USB device number 23 using xhci_hcd
[ 2708.306398] usb 3-1.1.3: New USB device found, idVendor=1eaf, idProduct=0004
[ 2708.306402] usb 3-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2708.306403] usb 3-1.1.3: Product: Maple
[ 2708.306404] usb 3-1.1.3: Manufacturer: LeafLabs
[ 2708.306752] usb 3-1.1.3: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 2708.307192] cdc_acm 3-1.1.3:1.0: ttyACM0: USB ACM device

nothing further , ls -lt|head has
crw-rw-r-- 1 root dialout 166, 0 Jul 24 05:06 ttyACM0

lsusb has
Bus 003 Device 023: ID 1eaf:0004
Bus 003 Device 018: ID 0483:3748 STMicroelectronics ST-LINK/V2

set the boot0/1 to 1 and on reconnecting usb gives
Bus 003 Device 028: ID 1eaf:0004

dmesg
[ 4051.632640] usb 3-1.1.3: new full-speed USB device number 28 using xhci_hcd
[ 4051.722242] usb 3-1.1.3: New USB device found, idVendor=1eaf, idProduct=0004
[ 4051.722246] usb 3-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4051.722247] usb 3-1.1.3: Product: Maple
[ 4051.722248] usb 3-1.1.3: Manufacturer: LeafLabs
[ 4051.722391] usb 3-1.1.3: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 4051.722815] cdc_acm 3-1.1.3:1.0: ttyACM0: USB ACM device

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 'find /dev/vboxusb' in upload output ??????

Post by RogerClark » Fri Jul 24, 2015 4:58 am

I can't recall which boards I've tried on Linux, so its possible that some processor variants have issues

I have a RCT board, but I've not got around to installing the bootloader on it, as its not a board I use that much now that I've got some nicer F103VET boards

I can't do it now, but I'll try installing the bootloader on my F103RCT board later and see initially whether its recognised on WIndows

Leaflabs did make a F103RB and an F103RE board but not to the best of my knowledge an F103RC based board, so if this USB issue is purely on the F103RC we may be a bit stuffed unless there is a software workaround we could conditionally compile into the core.

BTW. Does the board even appear as a DFU device for upload, or is this only a tty USB serial issue ?

zmemw16
Posts: 1292
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: 'find /dev/vboxusb' in upload output ??????

Post by zmemw16 » Fri Jul 24, 2015 11:36 am

i'm using st-link with both of them, as in those pictures.

mr postman dropped off 4 103c8t6's, they're in the post with pics of the boards.
i found that post again eventually, there's a note at the end about making it sticky in Welcome
even a thread with a link to that post in the title would be good
(i bought them as they're in there:-)
4 pins sticking out from stlink(?), micro usb needing hot glue at some point, yellow boot jumpers
and the header strips.
actually i got most of them and usually 2off :-)
)
i did see somewhere that i2c works, so the i2c lcd backpacks will be useful:-)
one day he just dropped a 'tray' full of packets in the doorway:-)

the blinking led, i've seen something about bootloaders and which port/pin it is, is there a table by chip/[c|r|v|] etc?

the write seems to work, it seems to go wrong when it switches to read it back.

i don't quite follow how the usb fits in, i'd have thought it would read back via the st-link
also i don't know if they have a bootloader or not?

any posts/pointers detailing those mechanisms?

stephen

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 'find /dev/vboxusb' in upload output ??????

Post by RogerClark » Fri Jul 24, 2015 12:11 pm

There is a lot of information in the Wiki, but I think the site probably needs a FAQ
I have also done some videos on youtube, but I think you're past the stage where they'd be any use

Re:STLink

Those external STLink boards only allow upload, (and download) they don't have Serial USB (only the STLink chips soldered onto STM's nucleo line of boards have USB Serial via STLink as its different - closed source software)

Unless you specifically want to use STlink for some reason e.g. in Circuit debugging using DDD or Eclipse etc, then I'd recommend that you just upload the bootloader for that board.
Look in
https://github.com/rogerclarkmelbourne/ ... 1/binaries

and download the generic board that has the LED on the pin at the end of the bootloader name e.g. generic_boot20_pc13.bin

Docs on the bootloader are here, but its more of a technical description not an install guide.
https://github.com/rogerclarkmelbourne/ ... bootloader

Once you have the bootloader installed, just set the upload to method stm32duino bootloader and off you go.

I think if you want a discussion about the other stuff on your list, you should re-post to General Discussion, as they are not related to STLink, and also if you do a quick search there are plenty of postings about i2c etc

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 'find /dev/vboxusb' in upload output ??????

Post by RogerClark » Fri Jul 24, 2015 10:29 pm

I just tested a STM32F103RCT board using the bootloader and it works fine on Windows 7, ie it uploads fine and I'm getting output from Serial USB

Is the issue with F103RCT, that you linked to, only on Linux?

zmemw16
Posts: 1292
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: 'find /dev/vboxusb' in upload output ??????

Post by zmemw16 » Sat Jul 25, 2015 12:01 am

i stopped booting into windows in 1995 as it then forced me to at least learn how to shut down linux.
then i got interested....
i do have an infrequently used virtualbox xp session, usb pass through - not even tried it.

stephen

User avatar
RogerClark
Posts: 6370
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 'find /dev/vboxusb' in upload output ??????

Post by RogerClark » Sat Jul 25, 2015 12:20 am

OK

I'll try my F103RC board on Linux Mint later (Need to reboot into Linux)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests