Cloning, ManualΒΆ

This page details cloning a Mecrisp-Stellaris image from a existing STM32F MCU or Board, complete with the Dictionary and Kernel so as to reproduce the same bootable system on another STM32F MCU or Board simply by flashing the image to it.
  1. Download the cloning file. It’s named “f051-clone.fs” as I tested it on a STM32F051 Discovery Board.

Download f051-clone.fs

  1. Set up something to capture the iHex file that will be generated by f051-clone.fs (I used e4thcom)
e4thcom -t mecrisp -d ttyUSB0 -b B115200  | tee e4thcom.log
  1. Load f051-clone.fs onto your chip/board and run ‘clone’, you should see something like this:-

... lots more of the same
  1. Remove any log preamble and postamble then save it as clone.hex
  2. Create a binary file from the iHex file
arm-none-eabi-objcopy -I ihex -O binary clone.hex clone.bin
  1. Flash the binary to your STM32F chip/board
st-flash write clone.bin 0x08000000
  1. Test the Clone
  2. Optional; make a MD5SUM of your Clone binary, as it may come in handy later
md5sum clone.bin > clone.bin.md5sum


Previous topic

Charles (Chuck) Moore the inventor of Forth

Next topic

Cloning, Integrated

This Page