stm32flash under FreeBSD?

Torfinn Ingolfsen torfinn.ingolfsen at getmail.no
Fri Sep 27 21:07:54 UTC 2013


Update - works (and breaks) as designed.

On Fri, 27 Sep 2013 21:59:14 +0200
Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no> wrote:

> Ok, it gets a bit further:
> tingo at kg-core1$ ./stm32flash /dev/cuaU0
> stm32flash - http://stm32flash.googlecode.com/
> 
> (read, written) iflag: 1, 1
> (read, written) oflag: 0, 0
> (read, written) cflag: db00, db00
> (read, written) lflag: 0, 0
> Serial Config: 57600 8E1
> read_byte: No such file or directory
> Assertion failed: (0), function stm32_read_byte, file stm32.c, line 90.
> Abort trap (core dumped)

Upon checking my notes, this is exactly the way stm32flash works on Linux, unless you put it into the right mode by holding down
the BOOT0 button, then pressing and releasing the RESET button on the board.
After doing that I get this:
tingo at kg-core1$ ./stm32flash /dev/cuaU0
stm32flash - http://stm32flash.googlecode.com/

(read, written) iflag: 1, 1
(read, written) oflag: 0, 0
(read, written) cflag: db00, db00
(read, written) lflag: 0, 0
Serial Config: 57600 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0410 (Medium-density)
RAM          : 20KiB  (512b reserved by bootloader)
Flash        : 128KiB (sector size: 4x1024)
Option RAM   : 15b
System RAM   : 2KiB

Resetting device... done.

So now  stm32flash works - Yay!
-- 
Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>


More information about the freebsd-arm mailing list