cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f407vgt6

klas lofstedt
Associate II
Posted on June 29, 2018 at 13:00

Hi, I bought a chinese dev-board, more specifically this one:

amazon: 

https://www.amazon.com/Diymore-STM32F407VGT6-Cortex-M4-Discovery-Development/dp/B01M7YB5HF

 

schematics: 

http://dubstylee.net/v/wp-content/uploads/2017/08/DIY-More-STM32F407VGT6.png

 

I can successfully flash a simple LED code to the chinese board using the SWD pins on a discovery board and stm32 ST-link utility. However the program never starts. The project is generated with standard settings for the processor in CubeMX, and it runs without problem on the discovery board, but nothing on the chinese dev-board.

Anyone got an idea about if i need to pull some pins low/high for the program to start or anything of the like? Any help is appreciated.

#clone #standalone #diymore #stm32f4
10 REPLIES 10
Posted on June 29, 2018 at 13:28

You can check if the boot0 jumper is closed (boot0 pin grounded).

Posted on June 29, 2018 at 13:34

This

https://github.com/dwelch67/black_pill_too

  appears to talk about the same board.

JW

henry.dick
Senior II
Posted on June 29, 2018 at 13:42

try to step through your code and see what happens.

Posted on June 29, 2018 at 14:25

Obvious places to look would be HSE_VALUE setting for clock, Error_Handler or HardFault_Handler, or other places where it might get stuck up in a while(1) loop, or waiting for a clock or PLL to spin up.

BOOT0 Low JP4 ON will make sure it runs from FLASH rather than ROM loader

Step the code, if it doesn't get to main() uncheck 'run to main()'. Trying to determine how far you're getting, what addresses it reports, if stopped, where, etc.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
klas lofstedt
Associate II
Posted on June 30, 2018 at 08:35

Thanks guys! I successfully flashed and run the code from linux using the on-board bootloader as suggested by the link sent by waclawek.jan. I'm not sure if it will solve the SWD probs, but using the bootloader is easier anyway.

Posted on June 30, 2018 at 09:56

Just one quick question, maybe dumb, but one never knows:

I can successfully flash a simple LED code to the chinese board using the SWD pins on a discovery board and stm32 ST-link utility.

You did disconnect the discovery target mcu from the discovery STLink, did you?

JW

Posted on June 30, 2018 at 10:03

Yes i did, but i'm unsure however i set BOOT0 to gnd or not before reset. Chances are that will solve my initial problem, but using usb rather than swd is more convenient anyway.

Posted on June 30, 2018 at 10:05

It may be convenient for programming, but you might want to use the on chip debug one day... 🙂

JW

Posted on June 30, 2018 at 10:08

Very true! But until then i do the development on a discovery board with the same processor.