cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp157c-dk2 Linux rebooting after 30sec

valtteri
Associate II

Hi,

I'm trying to learn world of embedded linux by trial and error, so I got myself STM32MP157c-dk2.

I have followed the instructions from here: https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package

and here: https://www.digikey.com/eewiki/display/linuxonarm/STM32MP1

First tried to use only the digikey instructions, but the USB-ports are not working with that one, other than that the board was functioning.

So I compiled kernel and u-boot as told in wiki.st, prepared sd-card and moved everything on the card.

I tried my board with Debian: https://rcn-ee.com/rootfs/eewiki/minfs/debian-10.1-minimal-armhf-2019-09-16.tar.xz

and Ubuntu: https://rcn-ee.com/rootfs/eewiki/minfs/ubuntu-18.04.3-minimal-armhf-2019-09-16.tar.xz

Board boots up and OS starts, but afrer about 30 seconds it reboots again.

Here is the print from booting the board: https://pastebin.com/Z4pAKr5N

Any ideas what I'm doing wrong here?

Thanks.

3 REPLIES 3
PatrickF
ST Employee

Look like a watchdog reset occurs (your log mention it is enabled and it is set at 32sec by default).

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
valtteri
Associate II

Thanks, found the 32sec from u-boot.cfg files. How do I get that value changed? Always gets back to the default 32 after compilation.

Olivier GALLIEN
ST Employee

Hi @Valtteri Kenkkilä​ 

This need to be configured in Device Tree

Please refer to :

https://wiki.st.com/stm32mpu/wiki/IWDG_device_tree_configuration

Hope it help

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.