How to flash px4-stm32f4discovery.bin to stm32f407?

I have flash px4discovery_bl.bin(bootloader) to my board(stm32f407).By that:
openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg -c init -c “reset halt” -c “flash write_image erase px4discovery_bl.bin 0x08000000”

And then I insert the usb to the board.I find “PX4 BL DISCOVERY” on my ubuntu.
So then I open terminal, I use “make px4-stm32f4discovery_default upload” in folder of “src/Firmware” .
[ 98%] Built target systemcmds__nshterm
[ 98%] Built target systemcmds__ver
[ 98%] Built target examples__px4_simple_app
[ 98%] Built target nuttx_px4-stm32f4discovery_default.elf
[ 98%] uploading px4
Loaded firmware for board id: 99,0 size: 245612 bytes (23.80%), waiting for the bootloader…

I wait long time but always that.So I quit.

So I want to flash “px4-stm32f4discovery.bin” to stm32f407 directly.

But I don’t know what is the flash address?So it’s my problem.

1 Like