[info] stm32 LQFP48

Hardware inside and outside of the ECU
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

stm32 LQFP48

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32 LQFP48

Post by kb1gtt »

Very nice very nice. Does R0.2 imply R0.1 was spun and that this has undergone some real world validation already? Looks low cost, could PB8 and PB9 be routed to an CAN chip? If so that could be really handy.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

kb1gtt wrote:Does R0.2 imply R0.1 was spun and that this has undergone some real world validation already?
Nope, that's mystifying Russian soul. No explanation.
kb1gtt wrote:could PB8 and PB9 be routed to an CAN chip? If so that could be really handy.
Let me ask Eugene :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

@ added CAN transceiver
Image
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

Not a hardware issue, but I've just realized how cool it is to have CAN transceiver on board: this board is now a fully selfcontained USB2CAN adapter! Just without the firmware.

I would not waste time doing to much of the firmware but it's tempting to implement a couple of ELM327-compatible commands just to get the community interested. I wonder if it is legal to implement a protocol which would resemble ELM327 protocol?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Tomin
Posts: 39
Joined: Fri Oct 18, 2013 8:03 pm

Re: stm32 LQFP48

Post by Tomin »

USB2CAN int. like Lawicel or so uses different command set than ELM.
ELM commands are not protected at all, what I know. No problem to use it.
But for clear CAN analyzing and communication "Lawicel" protocol is better (more straightforward) than ELM.
Tomas
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: stm32 LQFP48

Post by puff »

what's the use of it? just to show the ability of receiving some fake values from ecu? or the argument to mention 'elm327 support'? (i bet you can implement it in rusefi?)

thermocouple controller seems a very nice small project which would be useful and easily commercialized ;-) I wouldn't wast time and money on some useless boards (I got three sn65… CAN boards. okay, I'll use one for my experiments, but I don't know what to do with the rest of them ;-)
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: stm32 LQFP48

Post by puff »

or is it sort of a can sniffer? my be useful to add some jumpers/microswitches to choose configs (instead of recompiling the code each time you want to sniff a bus with different nitrate, time quantums, etc)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

puff wrote:what's the use of it?
I am sorry I do not follow. The use of what? the use of this stm32 board? the use of CAN? the use if CAN2USB module?

the small stm32 board is a base for all kinds of smaller devices. before we can processed with anything we need a proven schematics and PCB which would later be used in other designs
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
abecedarian
Posts: 386
Joined: Fri Nov 15, 2013 10:49 am

Re: stm32 LQFP48

Post by abecedarian »

Polarity correcting, isolated CAN BUS interface.
http://www.ti.com/lit/ug/tidu422a/tidu422a.pdf <- device description / operation / BOM
http://www.ti.com/lit/df/tidr822/tidr822.pdf <- schematic
MCU sold separately. ;)

*edit- just realized I replied to the wrong topic. Please move if so desired.
You can lead the horticulture but you can't make them think.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

more minimalistic more better :)

Image
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

Image

just placed an order
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
chingon
Posts: 20
Joined: Sat May 30, 2015 7:35 pm

Re: stm32 LQFP48

Post by chingon »

Just an fyi, the usb-can dongles from China

have this chip on board...just opened mine trying to figure this out
STM32F103C8T6
~25 or so to door...
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

STM32F103 nice pinout picture
Attachments
STM32F103.gif
STM32F103.gif (142.14 KiB) Viewed 18787 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Snake____1
Posts: 37
Joined: Sun Sep 04, 2016 6:05 pm
Location: Norway

Re: stm32 LQFP48

Post by Snake____1 »

@russian
So does this mean rusEFI can run off the STM32F103C8 MCU? :D
or
Is this "just" a CAN converter "port expander"? :roll:
(X) BMW E36 318i M50B50 Turbo (MegaSquirt (KdFI v1.3))
(X) BMW E36 325tds M70B50 (ViPEC V88)
(X) BMW E36 328i M52B28 Turbo (rusEFI PnP @me)
(✓) BMW E36 320i M70B50 (rusEFI project car)
(✓) BMW E46 325Xi M57D30 (daily)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: stm32 LQFP48

Post by AndreyB »

I suspect rusEFI would not do well without FPU, but I could be wrong. Not too hard to start on F103 but how it would behave I have no idea.

Would need to compile without engine sniffer, sensor sniffer etc to reduce RAM usage.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: stm32 LQFP48

Post by Rhinoman »

Tomin wrote:USB2CAN int. like Lawicel or so uses different command set than ELM.
ELM commands are not protected at all, what I know. No problem to use it.
ELM commands are copyright of ELM.
User avatar
mobyfab
Posts: 139
Joined: Tue Oct 29, 2013 10:09 am
Location: Versailles, France

Re: stm32 LQFP48

Post by mobyfab »

You can't use USB and CAN at the same time on the F1.

Stay away from it, it's full of silicon bugs.

If you want to do a USB-CAN bridge, go for a F072 lqfp32.
essess
Posts: 13
Joined: Thu Aug 10, 2017 7:12 pm

Re: stm32 LQFP48

Post by essess »

You can't use USB and CAN at the same time on the F1.
I was wondering if someone was going to bring this up. It's also mentioned in the datasheet. Some F1 parts allow it, but not the 103's.

Start with this and just do your own firmware if what he supplies is unacceptable.
RickyTerzis
Posts: 1
Joined: Mon Aug 28, 2017 5:47 pm

Re: stm32 LQFP48

Post by RickyTerzis »

Hi...i am a new user here. Thanks for sharing this information here. I want to know does R0.2 imply R0.1 was spun and that this has undergone some real world validation already?

http://percentagescalculator.com/
Last edited by RickyTerzis on Mon Jun 18, 2018 4:37 pm, edited 1 time in total.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32 LQFP48

Post by kb1gtt »

I don't know that we can claim any of our hardware has undergone any real validation :)

We keep a list of items that have changed or known issues in the "known_issues.txt" file. You can checkt that to get a feel for how much hardware validation was or was not done.
https://svn.code.sf.net/p/rusefi/code/trunk/hardware/mini48-stm32/known_issues.txt

In this situation it appears the changes were mostly silk screen. I think it has had a hello world program loaded into it and perhaps not much beyond that. However it's a fairly basic board, so that's probably a fairly extensive test.
Welcome to the friendlier side of internet crazy :)
Post Reply