Jump to content

Program Bootloader into STM32F4 with openocd?


audiomobster
 Share

Recommended Posts

Hi there,

I have no virtualized Windows so I am trying to flash the bootloader with openocd:

openocd -f stm32f4discovery.cfg -c "program project.bin exit"

I get following output:

Open On-Chip Debugger 0.9.0 (2015-11-28-15:54)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v14 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.891327
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800637c msp: 0x20000c78
** Programming Started **
auto erase enabled
Info : device id = 0x10036413
Info : flash size = 1024kbytes
Warn : no flash bank found for address 0
wrote 0 bytes from file project.bin in 0.001464s (0.000 KiB/s)
** Programming Finished **
shutdown command invoked

I guess I need an offset, but how large?

Thanks and best regards,

Uli

The following seems to work:

openocd -f stm32f4discovery.cfg -c "program project.bin exit 0x08000000"

At least it doesn't throw an error.

But it shows up as "Van Ooijen Technische Informatica". Isn't this weird?

Edited by audiomobster
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...