Re: User-Space Can dongles? Stlink-v3Bridge as CAN dongle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc Kleine-Budde writes:
> On 8/16/19 12:52 PM, bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> > STMicroelectronics provides STLINK-V3Set and STLINK-V3Mini ( > 10
> > Euro) primary for SWD/Jtag debugging via USB. However bridge functions
> > are implemented for Uart, GPIO, I2C, SPI and CAN. A library (*1) is
> > provided to use these bridge functions, stacking on some device
> > library (*2) stacking finally on libusb.
> 
> What do you mean by bridge functions?

Bridge is what STM call this function. They describe is as
"The bridge API (STLINK-V3-BRIDGE) is a set of source files allowing
the development of personal computer applications exercising the
STLINK-V3 bridge interface of a target board."

It is normal USB communication, with the basic USB protocol
hidden/abstracted by a library.

> 
> In a proper designed system, you want to have UART, GPIO, I2C, SPI and
> CAN drivers in the kernel, not implemented in user space.
>
This would imply the USB protocol open or reverse engineered or
leaked. For the JTAG/SWD part this is already done (OpenOCD, pyOCD,
blackmagic debug probe), also only in user space. For the "bridge
functions there are not (yet?) open specifications.

> > Using these dongles as socket-can adapters would come handy.
> 
> Does the license allow you to cerate any open source software with it?
>
https://www.st.com/content/ccc/resource/legal/legal_agreement/license_agreement/group0/87/0c/3d/ad/0a/ba/44/26/DM00216740/files/DM00216740.pdf/jcr:content/translations/en.DM00216740.pdf

looks like.

> > However this would imply a user-space socketcan adapter. Is such a
> > thing possible? 
> 
> Create a vcan and attach your userspace components to it.
> 

Is there some example code doing something similar?

Thanks
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux