Re: [psas-avionics] STM32F407 freezes on the RNH

2015-05-29 Thread Theo Hill
On Wed, May 27, 2015 at 2:35 AM, Andrew Greenberg  wrote:

> Kenny and I saw another freeze on the STM32 on the RNH as we were
> flipping things on and off all over the place (shore power, various
> nodes, essentially everything on and off).
>

There is a known crash related to cycling shorepower/batteries documented
here , but not yet really
investigated.


> Since you never saw a freeze with JTAG connected, that made me think
> that perhaps we're treating the SWD/JTAG pins connected. So:
>
> First of all, I assume we're using SWD and not JTAG.
>

We are using JTAG as we still support the Olimex ARM-USB-OCD debuggers and
they don't do SWD. If we want to move to only the STLink debuggers and then
use SWD that's fine too, we've just not made that decision yet.

Second, please verify that we configure the pins this way:
>
> - PA13 = TMS/SWDIO  = AF0, INPUT W/PULL UP
> - PA14 = TCK/SWCLK  = AF0, INPUT W/PULL DOWN
> - PA15 = TDI= !AF0, INPUT W/PULL UP
> - PB3  = TDO= !AF0, OUTPUT LOW
> - PB4  = TRST   = !AF0, INPUT W/PULL UP
>

TMS, TDI, and TRST were set to floating, they are now set to pullups.

-- 
-Theo
___
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics


[psas-avionics] STM32F407 freezes on the RNH

2015-05-27 Thread Andrew Greenberg
Hi Theo!

Kenny and I saw another freeze on the STM32 on the RNH as we were
flipping things on and off all over the place (shore power, various
nodes, essentially everything on and off).

Since you never saw a freeze with JTAG connected, that made me think
that perhaps we're treating the SWD/JTAG pins connected. So:

First of all, I assume we're using SWD and not JTAG.

Second, please verify that we configure the pins this way:

- PA13 = TMS/SWDIO  = AF0, INPUT W/PULL UP
- PA14 = TCK/SWCLK  = AF0, INPUT W/PULL DOWN
- PA15 = TDI= !AF0, INPUT W/PULL UP
- PB3  = TDO= !AF0, OUTPUT LOW
- PB4  = TRST   = !AF0, INPUT W/PULL UP

Third, we're adding a small capacitor to the NRST line.

... I'm hoping this clears up the mysterious freezes.

Andrew

-- 
---
Andrew Greenberg

Electrical and Computer Engineering
Portland State University
http://www.ece.pdx.edu/
a...@ece.pdx.edu  C: 503.708.7711
---

___
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics