[info] stm32f4 MPU module LQFP 100

Hardware inside and outside of the ECU
User avatar
UnaClocker
Posts: 46
Joined: Tue May 13, 2014 12:14 am
Location: Tacoma, WA

Re: stm32f4 main chip module

Post by UnaClocker »

I'll take a whack at one of the boards. Easy peasy.
Brian from Tacoma, WA
84 Dodge Rampage
01 PT Cruiser

User avatar
UnaClocker
Posts: 46
Joined: Tue May 13, 2014 12:14 am
Location: Tacoma, WA

Re: stm32f4 main chip module

Post by UnaClocker »

Got the boards today. The virgin one went well, I'll get to the other two another night. But for now I'll get this completed one back in the mail back to you so you can put the rest of the components on it and resume testing. I snapped some pictures to show the soldering. There are a couple pins that may appear unsoldered in the pictures, they are soldered.
Hope you don't mind the super massive epic large resolution, I felt like showing off. ;) Best viewed on a computer, rather than a phone, obviously. ;)
Image
Image
Image
Image

edit: looks like the forum sanitized the image size.. Links to the raw files FTW:
Top
Right side
Bottom
Left Side
Brian from Tacoma, WA
84 Dodge Rampage
01 PT Cruiser

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 main chip module

Post by AndreyB »

How is this even possible? How do you do it?
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
UnaClocker
Posts: 46
Joined: Tue May 13, 2014 12:14 am
Location: Tacoma, WA

Re: stm32f4 main chip module

Post by UnaClocker »

Lots of flux, high quality iron with a fine wedge tip, LOTS of light, patience, good eyes, steady hands, fair amount of practice (replacing a blown chip on a plasma TV). :) I'd shoot video but my camera just isn't up to the task. There's a guy on YouTube, EEVBlog, I learned everything from his videos. :)
Brian from Tacoma, WA
84 Dodge Rampage
01 PT Cruiser

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 main chip module

Post by AndreyB »



Image

Thank you @denisvak for explaining how to use SWD:
1) take discovery board, remove two "ST-LINK" jumpers
2) connect discovery and stm32 board with 5 wires (we are using the same pinout as discovery so I am just using a 8 pin cable)
3) DONE!

Pending issue: looks like USB interface does not work: I've failed to program the chip via USB and I do not get serial-over-usb console.
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
UnaClocker
Posts: 46
Joined: Tue May 13, 2014 12:14 am
Location: Tacoma, WA

Re: stm32f4 main chip module

Post by UnaClocker »

haha! Awesome! Glad to see it living! Motivates me to put some more work into the other two. :)
Brian from Tacoma, WA
84 Dodge Rampage
01 PT Cruiser

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 main chip module

Post by AndreyB »

USB console issue is about the lack of PA9 <> USB VBUS trace, that's OTG_FS_VBUS. Got USB console working with a jumper wire.

I think one missing track is an AMAZING result. Way to go @!
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: 3643
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32f4 main chip module

Post by kb1gtt »

Was there any significant bumps in the road? Please say yes there was or I'll remain paranoid that we didn't test it enough :)

Good to hear that's working.
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 main chip module

Post by AndreyB »

There is still a tiny bump on the road: while I've figured how to fix USB as in 'serial over USB', I am still trying to figure out why it would not upload the firmware via USB. But thanks to SWD the chip does run :)
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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module

Post by AndreyB »

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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

russian wrote:we are targeting STM32F407VGT6 chip which is LQFP 100
I've realized that there is also STM32F407VGT7 which as far as I understand is the same thing just with Maximum Operating Temperature: + 105 C

No idea if this changes anything for us. This one is in stock @ Mouser.
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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

this board has it's own life outside of rusEfi now :) http://www.eevblog.com/forum/microcontrollers/stm32f4-minimal-circuit/
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: 3643
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

Cool. I should fix the 3D of those push buttons.
Welcome to the friendlier side of internet crazy :)

Suprazz
Posts: 7
Joined: Mon Mar 07, 2016 6:12 pm

Re: stm32f4 MPU module LQFP 100

Post by Suprazz »

I dont know the exact status of this board because I'm new on the forum and I'm still learning about RUSEFI but have you consider using seeedstudio pcb and assembly to produce this board.

I did a quick quote with only the assembly of the microcontroller and price as 146$ for 10 boards assembled including the microcontroller... All the other parts are quite standard and cheap so I think it's possible to have assembled boards for around 25$/each maximum.

And it could be cheaper if we panelize the board.

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

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

Hmmm, I wonder if that price would hold about the same for the 176 pin version found here http://rusefi.com/forum/viewtopic.php?f=4&t=749 This 100 pin was partly to make sure we could do it if the discovery boards became hard to find, etc. The longer term plan is to put this 176 pin board native on Frankenso board.
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

This board was mostly a step prior to putting the same chip on the Frankenso board - the approach is to try small things individually before merging them together. Also a contingency plan if discovery board disappears.

As Jared says - the future is with the 176 pin version which we have already validated but have not yet applied to Frankenso.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Suprazz
Posts: 7
Joined: Mon Mar 07, 2016 6:12 pm

Re: stm32f4 MPU module LQFP 100

Post by Suprazz »

You know what!? I did the quote for the 176 pins version if reality... So it might be an interesting option!

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

Attachments
stm32f4_discovery_pinout.png
stm32f4_discovery_pinout.png (1.16 MiB) Viewed 5073 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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

I did not know about $3 ST-Link devices! I wonder how legal is them using ST firmware on these dongles?

PS: relevant article - http://www.taylorkillian.com/2013/01/retrieving-st-linkv2-firmware-from.html
Attachments
screenshot.png
screenshot.png (624.9 KiB) Viewed 5095 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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

Full wish list:
1) PA9 <> USB VBUS trace is needed to get USB functional
2) add vertical USB connector option (same as on Frankenso)
3) use stlink 5x2 header
Attachments
st_link.png
st_link.png (97.65 KiB) Viewed 5091 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
kb1gtt
contributor
contributor
Posts: 3643
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

Did I guess this correctly?
Attachments
Untitled.png
Untitled.png (7.63 KiB) Viewed 5036 times
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

no, SWDIO is PA13. SWCLK is PA14 is correct. Not sure why they call it SWIM but that one must be PB3 TRACESWO

Also do you think we would need to mirror the connector since their picture is probably if you look at the make pins from the bottom? Too bad it's some time till I get my device.
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
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

Somehow I've missed the fact that similar thingy is available from a US seller, placed another order. Funny news is that there is another version of similarly looking device with a different pinout! But the one we've chosed seems to be more popular.
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: 3643
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

I think you mean IDC or header.
http://www.ebay.com/itm/New-10PCS-10-Pin-Dual-Row-2-54mm-Straight-Male-IDC-Socket-Box-Header-Connector-/361411798788

Are you thinking short ribbon cable? If we put a female connector on the brain board, then you could plug the connector in directly. Something like this.
http://www.ebay.com/itm/Reliable-10PCS-2x5-10Pin-2-54mm-Double-Row-Female-Header-Pitch-Socket-Pin-HFCA-/172437084318
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

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

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

Is this correct?
Attachments
Untitled.png
Untitled.png (4.03 KiB) Viewed 5027 times
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

I believe your picture shows their connector and our connector would be mirrored, unless that would be taken care by the PCB or would you flip the connector and place it on the bottom of the board? The plan is to plug dongle from top.
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: 3643
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

I'm not sure if it's mirrored or not. I see pin 1 = reset so I made pin 1 reset, etc. Then I made the connector poke up not down on the layout. What I don't know for sure is if their pin 1 is the same pin as our pin 1. Based on the graphic which shows the key. I think our pin 1 is the same as their pin 1. So I think this is good, but I won't know for sure until we get the board and can verify. This is how it looks in the layout.
Attachments
Untitled.png
Untitled.png (19.46 KiB) Viewed 5020 times
Welcome to the friendlier side of internet crazy :)

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

Re: stm32f4 MPU module LQFP 100

Post by kb1gtt »

Was there going to be a battery holder change on the back?
Welcome to the friendlier side of internet crazy :)

User avatar
AndreyB
Site Admin
Posts: 10491
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: stm32f4 MPU module LQFP 100

Post by AndreyB »

Look at the picture of the red device, pay attention at where the tab is located and where the tab is pictured on their schematics. Based on their picture I am sure we need to mirror the connector, as is it would work on the back of the board but I want it to work on top.

I am looking at my assembled LQFP 100 and LQFP 176 boards and both have battery holder soldered just fine, I think we are good with current location.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Post Reply