[info] stm32 LQFP48

Hardware inside and outside of the ECU
Post Reply
User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

stm32 LQFP48

Post by russian » Fri Dec 26, 2014 1:27 pm

by @

Image

https://svn.code.sf.net/p/rusefi/code/t ... i48-stm32/

http://rusefi.com/wiki/index.php?title= ... 32f1_board

STM32F103C8 LQFP 48 7x7x1.4

https://svn.code.sf.net/p/rusefi/code/t ... issues.txt



STM32™ microcontroller system memory boot mode
The STM32F10xxx bootloader is activated by applying pattern1.
Pattern1 Boot0(Pin) = 1 and Boot1(Pin) = 0
USART1 bootloader uses TX@PA9 and RX@PA10

ibom available at https://rusefi.com/docs/ibom/
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
kb1gtt
contributor
contributor
Posts: 3478
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

Re: stm32 LQFP48

Post by kb1gtt » Sun Dec 28, 2014 1:58 am

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
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Sun Dec 28, 2014 2:04 am

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 :)
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Tue Jan 06, 2015 3:59 pm

@ added CAN transceiver
Image
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Tue Jan 06, 2015 4:20 pm

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?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Tomin
Posts: 39
Joined: Fri Oct 18, 2013 8:03 pm

Re: stm32 LQFP48

Post by Tomin » Tue Jan 06, 2015 8:58 pm

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: 2734
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: stm32 LQFP48

Post by puff » Tue Jan 06, 2015 9:36 pm

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: 2734
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: stm32 LQFP48

Post by puff » Tue Jan 06, 2015 9:39 pm

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
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Tue Jan 06, 2015 9:44 pm

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
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
abecedarian
Posts: 387
Joined: Fri Nov 15, 2013 10:49 am

Re: stm32 LQFP48

Post by abecedarian » Tue Jan 06, 2015 11:22 pm

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
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Thu Jan 08, 2015 2:41 am

more minimalistic more better :)

Image
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Fri Jan 09, 2015 12:46 am

Image

just placed an order
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Sat May 16, 2015 11:16 pm

https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

chingon
Posts: 20
Joined: Sat May 30, 2015 7:35 pm

Re: stm32 LQFP48

Post by chingon » Tue Jun 02, 2015 3:39 am

Just an fyi, the usb-can dongles from China:
Image

have this chip on board...just opened mine trying to figure this out
STM32F103C8T6
~25 or so to door...

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Sun Jan 29, 2017 5:24 pm

STM32F103 nice pinout picture
Attachments
STM32F103.gif
STM32F103.gif (142.14 KiB) Viewed 4447 times
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
Snake____1
Posts: 35
Joined: Sun Sep 04, 2016 6:05 pm
Location: Norway

Re: stm32 LQFP48

Post by Snake____1 » Sun Apr 23, 2017 2:48 pm

@russian
So does this mean rusEFI can run off the STM32F103C8 MCU? :D
or
Is this "just" a CAN converter "port expander"? :roll:

User avatar
russian
Site Admin
Posts: 9741
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: stm32 LQFP48

Post by russian » Mon Apr 24, 2017 1:14 am

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.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Rhinoman
contributor
contributor
Posts: 246
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK
Contact:

Re: stm32 LQFP48

Post by Rhinoman » Mon Apr 24, 2017 8:23 am

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: 138
Joined: Tue Oct 29, 2013 10:09 am
Location: Versailles, France
Soldering skill: yes
Coding skill?: yes

Re: stm32 LQFP48

Post by mobyfab » Mon Apr 24, 2017 9:34 am

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: 4
Joined: Thu Aug 10, 2017 7:12 pm

Re: stm32 LQFP48

Post by essess » Fri Aug 11, 2017 5:35 pm

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 » Mon Aug 28, 2017 5:52 pm

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: 3478
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA
Contact:

Re: stm32 LQFP48

Post by kb1gtt » Mon Aug 28, 2017 11:22 pm

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/t ... 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