[info] STM32F407VET6 Mini Development Board System Board

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

STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

https://www.ebay.com/itm/173407441568 "STM32F407VET6 STM32 ARM Cortex-M4 Development Board System Board" "Board Size: 49 x 39mm" board

I like this mini size! The blue board on the left.

https://wiki.stm32duino.com/index.php?title=Vcc-gnd.com_STM32F407VET6_Mini is warning us that 3.3v regulator on this board is on the weak side.

Update: there is also a warning about R8 but my board seems to fine, value is 1.5K as it should be
SWD reset = JNTRST is not available on SWD P4 header but it's the same pin as PB4 and PB4 is available on the P3 18X2 header.
Attachments
STM32F407VET6_Mini.jpg
STM32F407VET6_Mini.jpg (662.79 KiB) Viewed 26337 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

SD card would not work without some new rusEfi code - https://github.com/rusefi/rusefi/issues/683
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

So far I am unable to get rusEfi blink the LED or get be USB communication. Any guesses what I could be missing?

So far I have https://github.com/rusefi/rusefi/commit/61a5686a74ea00a18388ae16b269da94e8eda751 where I am trying to use STM32_PLLM_VALUE=25 and expecting things to just work right away.
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: STM32F407VET6 Mini Development Board System Board

Post by kb1gtt »

I'm assuming you check Y1 and it's stamped 25MHz. The schematic implies it could be 8MHz. I think you expect it to be 25MHz from the STM32_PLLM_VALUE=25 change.

Also there is a caution that the USB might have the wrong resistors. R8 should be 1.5k ohm. Does it enumerate?

I'm also assuming you get a successful programming indicator from the SWIO header. You can use that same header to step through code, line by line. If you do that you can verify that the STM is pumping bits.

Did you make your code blink PB9 which is the LED. Does a scope indicate your PB9 voltage is changing? I have seen bad cheap LED's before.
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

R8 looks good, it's 1.5K as expected.

I am able to flash firmware via USB DFU with BOOT0 so USB actually works. Actually USB DFU was the easier way to flash.

With help from @ I found the only setup where I can use SWD to flash: both board and debugger powered via two separate USB cables, three jumper wires between boards - NO VCC jumper wire, would not work with VCC jumper wire! Also only flashes via SWD with BOOT0 :(

This schematics covers two chip options - I've got STM32F4 not STM32F1 so that's 25MHz for me.

PS: forgot to mention that LED is known to work since it was blinking when I bought the board with default firmware.
Attachments
cfb310as-960.jpg
cfb310as-960.jpg (174.97 KiB) Viewed 26301 times
STM32F407VET6_Mini_swd.png
STM32F407VET6_Mini_swd.png (1.67 MiB) Viewed 26301 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

But no SWD without BOOT0 which means no debugging for me :( And "usb device not recognized" and no blinking still. So, looks like I can flash reliably, but cannot debug and firmware does not currently work. Also tried with VBAT connected to +3V - make no difference.
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

eBay quality :( Just realized that on the second board the BOOT dip switch is not clicking and the board does not go into DFU mode. Looks like DHN-02F-T-V switch?

At least I was able to flash default firmware into the first board and it's blinking the LED as expected, so we are still missing something with rusEfi firmware. Also open question why no SWD on the first board and now I wonder if that's some BOOT dip switch problem as well. (update: checked dip switch with DMM - it looks good)
Attachments
boot_black_dip_switch.jpg
boot_black_dip_switch.jpg (793.31 KiB) Viewed 26287 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
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

Adding PB4=JNTRST wire has helped a little - now I have much more reliable ST-LINK connection.

Upgrading clone St-Link firmware to latest has helped - now I can at least start debugging. Still have issue "Break at address "0x1fff3746" with no debug information available, or outside of program code." with debugging session but at least debugging session start, that's progress!

Trying http://www.openstm32.org/forumthread418 advice to use "reset_config srst_nogate" in stm*.cfg file

But overall this board still does not work for me.
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

could be relabeled chip with smaller ammounts of rom/ram?
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

Got myself three more blue mini boards.

At the moment all five boards simply work with rusEfi master STM32F407VET6_Mini.bat firmware.

#1 first order - soft DIP switch. LED blinks and USB serial works.

#2 second order - broken DIP switch, using SWD. LED blinks and USB serial works.

#3 second order - very hard DIP switch. LED blinks and USB serial works

#4 second order - very hard DIP switch. LED blinks, first start "usb device not recognized", further starts USB serial works

#5 second order - very hard DIP switch. LED blinks and USB serial works
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

It seems, they all have issues with positioning that USB connector :D
photo_2019-04-09 21.01.28.jpeg
photo_2019-04-09 21.01.28.jpeg (203.09 KiB) Viewed 25869 times
other than that, and the very small font on the backside, it looks okay.
it's stm32f407vgt6, diymore.cc
got it for a different project, but changed the concept a bit, so now I have a spare board.
I'm wondering, does it need an st-link to be flashed, or it has a bootloader? Is there an easy way to check this?
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

Re: STM32F407VET6 Mini Development Board System Board

Post by Abricos »

Do you have something on back side of PCB bord ... Something like on pictures in yellow circle ??? Stlink ...
Maybe dfu mode ...
attachment=0]stm32f4_discovery-500x500__01.jpg[/attachment]
MFG_NUCLEO-L496ZG__01.jpg
MFG_NUCLEO-L496ZG__01.jpg (57.59 KiB) Viewed 25868 times
Attachments
stm32f4_discovery-500x500__01.jpg
stm32f4_discovery-500x500__01.jpg (94.89 KiB) Viewed 25868 times
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

nope, it's just a bare chip, without anything, and it's usb is not recognized by the syste, so I probably need to solder on at least the swd header.
btw, I've got a jlink - will I be able to flash firmware without stlink? :idea:
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

puff wrote:
Tue Apr 09, 2019 6:12 pm
I'm wondering, does it need an st-link to be flashed, or it has a bootloader? Is there an easy way to check this?
I believe it's BOOT0 to GND to enter DFU mode which is USB bootloader.
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

shorted boot0 to ground, the second led started blinking, but the system doesn't see any enumerated (or non-enumerated) usb devices.
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

okay, shorted boot1 to gnd, got stm32 bootloader enumerated.
red$ dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:821a] ver=0042, devnum=6, cfg=1, intf=3, path="250-1.1.3", alt=0, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-1.2", alt=3, name="@Device Feature/0xFFFF0000/01*004 e", serial="326F37623337"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-1.2", alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e", serial="326F37623337"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-1.2", alt=1, name="@Option Bytes /0x1FFFC000/01*016 e", serial="326F37623337"
Found DFU: [0483:df11] ver=2200, devnum=3, cfg=1, intf=0, path="253-1.2", alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg", serial="326F37623337"
Where do I get the dfu file to load to the board? ;-)
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

seemed to flash just fine, but I can't see any rusefi-specific usb port there, probably, need some jumper?
red$ dfu-util -a 0 -D /Users/red/Desktop/snapshot_20190409_1901_stm32f407_rusefi/rusefi_release.dfu -R
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Match vendor ID from file: 0483
Match product ID from file: df11
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 317128)
parsing element 1, address = 0x08000000, size = 317120
Download [=========================] 100% 317120 bytes
Download done.
done parsing DfuSe file
dfu-util: can't detach
Resetting USB to switch back to runtime mode
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

shit! just almost ruined the usb connector when unplugging the cable! soldered joint there was really insufficient and unreliable :D
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

I guess, this is the schematic for my board.
https://github.com/dwelch67/black_pill_too/blob/master/DIY-More-STM32F407VGT6.png
Note, two oscillators: 28MHz and 32.768kHz.
Does the disco board have the same 28MHz quartz?
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: STM32F407VET6 Mini Development Board System Board

Post by AndreyB »

puff wrote:
Wed Apr 17, 2019 10:15 pm
Does the disco board have the same 28MHz quartz?
stm32f4discovery and default firmware have 8MHz. I guess it should matter somewhat?
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
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

Yes, probably, that's the reason, and there is only one way to check it.. :)
Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: STM32F407VET6 Mini Development Board System Board

Post by Old Grey »

Any word if the black Mini STM32F407VGT6 Development Board with the larger VG chip would work if you make an adaptor to the Frank's.
I was thinking about getting another Disc but at $41 for the cheapest down here, that ain't going to happen. The VG Mini is about $15 down here.

The VE Mini would be a big saving, but with the extra code it's a PITA, so would the VG Mini go straight in without code.

https://www.ebay.com.au/itm/ARM-Cortex-M4-32bit-STM32F407VGT6-MCU-Core-Development-Board-STM32F4Discovery/172348446400?hash=item2820c496c0:g:IPUAAOSwWdZZZY0B
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

if it uses the same 28mhz quartz, it would probably need a recompiled binary?
Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: STM32F407VET6 Mini Development Board System Board

Post by Old Grey »

Are you sure about the 28MHz crystal.

I found this dwg, if this is the correct one, and there is a 2 in front of the 8M. But that looks like pin 2 of the crystal.
Image

It's from this post.
https://community.st.com/s/question/0D50X00009XkWA6SAN/stm32f407vgt6
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

indeed, i didn't pay attention to that.
anyway, my black stm32f407vgt6 board didn't work with the standard rusefi firmware (see the posts above) - I thought that might be because of that 28MHz quartz, which is not the case. So, there should be another reason why it doesn't start.
Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: STM32F407VET6 Mini Development Board System Board

Post by Old Grey »

From the above it sounds like it's being programmed, but you never know. Does it run a simple blink sketch. I'm not much help because I've only DFU-ed one MEGA2560 once.

Clutching at straws here. :lol:
Is there anyway to get a memory report out of it, ie, is it really a VG. I've got a VG chip on the way, but what is bugging me is that it was at a VE price. Now I don't know if it's a relabelled VE fake, because all the other VG chips were double the price.
https://www.aliexpress.com/item/33008020484.html?spm=a2g0s.9042311.0.0.42654c4dbsqBMl
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: STM32F407VET6 Mini Development Board System Board

Post by puff »

good question. if you find the way, please, post it here (or better special wiki page? with most commonly used commands to test, erase and flash the mcus?)
Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: STM32F407VET6 Mini Development Board System Board

Post by Old Grey »

I'm not good at that stuff, and I don't have a board, but I might do some reading tomorrow.
Does the writing and font on the chip look like this genuine chip. Does the indent top right have that broken centre.
Image
NickZ
Posts: 56
Joined: Sun Sep 01, 2019 9:44 pm

Re: STM32F407VET6 Mini Development Board System Board

Post by NickZ »

I have the DIYMORE stm32f407vgt6 working fine on RusEFI. does require some modifications
USB cable needs to be connected to PA11 and PA12 and a VCC connected to PA9 from memory.
20191223_080520.jpg
20191223_080520.jpg (402.1 KiB) Viewed 24786 times
Yes its a bit dusty :)
and the first time i plugged into the mounted USB it broke off
Post Reply