My Vcc-gnd.com STM32F407VET6 Mini issues

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

User avatar
alex31
Posts: 374
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 61 times
Contact:

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby alex31 » Fri Feb 01, 2019 7:22 am

Hi,

After you hit reset and the board hangs, do you have connected a probe to see with gdb (you can attach to a running board) , where, in the init process, it is stuck ?

I have had a couple of boards, with out of spec crystal oscillator (or capacitor) which where stuck in the init process in the loop that check for HSE or LSE stability, and have found it using a gdb attach to the running board.

Alexandre

Polux
Posts: 27
Joined: Thu Apr 28, 2016 11:52 am
Been thanked: 7 times

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby Polux » Fri Feb 01, 2019 8:41 am

Hi,

Probably not related, but have you read the issues here https://wiki.stm32duino.com/index.php?title=Vcc-gnd.com_STM32F407VET6_Mini ?

Regards

Angelo

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby russian » Fri Feb 01, 2019 6:12 pm

I like the osc start-up issues theory! I had some osc startup issues on my other project it was painful :(

Another weird fact: chip is marked stm32f407vet6 and this is supposed to mean 512K flash size, eBay lot description says "512K" while all the tools report flash storage as 1M with the actual board. We were able to read and verify 1M of flash. Is this a fake stm32f407vet6? Is this a questionable stm32f407vet6? Is the whole board very very questionable :( ?

Polux wrote:Probably not related, but have you read the issues here https://wiki.stm32duino.com/index.php?title=Vcc-gnd.com_STM32F407VET6_Mini ?

USB-related R8 is fine on my board I've checked, weak 3.3v source is a concern but I hope it should not be an issue while powered by ST-LINK 3.3v
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby Giovanni » Fri Feb 01, 2019 8:36 pm

It is possible it does have 1M and ST sells it as a 512kB, the only different thing could be a letter stamped on the package.

Test it.

Giovanni

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby russian » Sun Feb 17, 2019 6:24 pm

Status update: we are deep in the weeds and still missing something about virtual USB serial driver: some ST non-ChibiOS example works but chibiOS virtual serial does not work.

We have already tried swapping stm32 chip itself just in case and things are STILL not good, at least we know it's about the board not about a fake chip.
Attachments
stm32_IMG_20190217_165020.jpg
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby Giovanni » Sun Feb 17, 2019 6:43 pm

Is BOARD_OTG_NOVBUSSENS defined or not in your board.h?

Giovanni

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby russian » Fri Mar 15, 2019 5:31 pm

Between myself and forum member andreika we now have 7 of these boards.

I cannot explain it, but mine have all started to behave more reliable in terms of firmware start-up - I get reliable LED bilking all the time, and reliable USB serial console in 99% of the cases

andreika who uses same Windows 7 64 bit and same version of ST VCP driver reports "unrecognized USB device" behavior unless the following two lines are removed

Code: Select all

        usbDisconnectBus(serusbcfg.usbp);
   chThdSleepMilliseconds(1500);


I've inherited these lines from ChibiOS USB demos. I do not have a great explanation for this but that's my status update. We track this issue under https://github.com/rusefi/rusefi/issues/705
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby Giovanni » Fri Mar 15, 2019 5:44 pm

Those lines force a USB device disconnection and reconnection, are there mainly for debug.

How is the disconnect signal handled on that board? is it similar to discovery?

Giovanni

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby russian » Fri Mar 15, 2019 6:19 pm

https://wiki.stm32duino.com/images/6/69 ... ematic.pdf shows USB Vbus routed into 5vin and not routed into stm32 pa10.
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: My Vcc-gnd.com STM32F407VET6 Mini issues

Postby Giovanni » Sun Mar 24, 2019 8:37 am

Hi,

Try defining BOARD_OTG_NOVBUSSENS in your board.h.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 17 guests