Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2013 23:02:22 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>
To:        freebsd-arm@FreeBSD.org
Subject:   Re: stm32flash under FreeBSD?
Message-ID:  <20130927230222.93f96eef8475cdf5e609d9ec@getmail.no>
In-Reply-To: <20130927215914.7e93129302efbfafc678994d@getmail.no>
References:  <20130919212900.5A46A97324E@macavity.inf.ed.ac.uk> <20130927215914.7e93129302efbfafc678994d@getmail.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Update - works (and breaks) as designed.

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

> Ok, it gets a bit further:
> tingo@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@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@getmail.no>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130927230222.93f96eef8475cdf5e609d9ec>