I’ve only just recently spotted the issue. I was looking at what it would take
to put together a USB to CAN converter. The F103 USB peripheral shares a buffer
with the CAN peripheral. I’m not sure if both CAN and USB can be used at the
same time in this variant.
The F105/7 USB peripheral is on a different clock/bus completely, has OTG, and
there are two CAN peripherals.
So the F105 was the part I was considering.
I saw a Chinese converter based on a F103:
https://www.aliexpress.com/item/Free-shipping-CAN-Bus-Analyzer-USB-to-CAN-USB-CAN-debugger-adapter-communication-converter/32489958299.html
I wondered how they did it, then spotted the CP2102 USB to serial converter.
They don’t use the F103 USB at all!
Does anyone know if anyone has developed a USB-CAN converter using libopencm3?
I’ve used a mictronics.de USB<>CAN (supported by linux SocketCAN), but a CM3
version should result in a good reduction in parts count, and possibly dual CAN
channels...
Edward
> On 12/03/2017, at 2:16 PM, Warren Gay <ve3...@gmail.com> wrote:
>
> On Sat, Mar 11, 2017 at 5:39 PM, Edward Cheeseman <cheesemanedw...@gmail.com
> <mailto:cheesemanedw...@gmail.com>> wrote:
> Stm32f103 has a different USB peripheral to the f105/f107. So you need to
> find the f103 implementation. I believe the Black Magic Debug Probe uses both
> USB and f103, so would be a good place to start.
>
> The USB peripheral is described in the same RM0008 for the 103, as the
> 105/107. However, as you pointed out, there are differences. Ug. The driver I
> was attempting to use assumes OTG support which is absent in the 103.
>
> So clearly, using this driver on the 103 is barking up the wrong tree. Thanks
> for highlighting that issue.
>
> Warren
>
>
> On 12/03/2017, at 11:12 AM, Warren Gay <ve3...@gmail.com
> <mailto:ve3...@gmail.com>> wrote:
>
>> I have been trying to get a usb cdc example app up and running on the
>> stm32f103. My attempt has been adapted from the example at:
>>
>>
>> https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f3/stm32f3-discovery/usb_cdcacm/cdcacm.c
>>
>> <https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f3/stm32f3-discovery/usb_cdcacm/cdcacm.c>
>
> ------------------------------------------------------------------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford <http://sdm.link/oxford>
> _______________________________________________
> libopencm3-devel mailing list
> libopencm3-devel@lists.sourceforge.net
> <mailto:libopencm3-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
> <https://lists.sourceforge.net/lists/listinfo/libopencm3-devel>
>
>
Edward Cheeseman
Electrical Engineer
cheesemanedw...@gmail.com
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel