PYBD SF6W rebooting several times during operation

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
kbrenner
Posts: 5
Joined: Mon Jan 20, 2020 8:05 pm

PYBD SF6W rebooting several times during operation

Post by kbrenner » Mon Feb 17, 2020 2:52 pm

I am using the SF6W model, and I am running a boot.py, which looks like:

import machine
import pyb
pyb.main('main.py')

However, after the 'main.py' script finishes running, the Pyboard reboots and runs 'main.py' again. Can anyone give an insight as to why this might be happening? Thanks.

User avatar
jimmo
Posts: 1440
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: PYBD SF6W rebooting several times during operation

Post by jimmo » Tue Feb 18, 2020 1:57 am

kbrenner wrote:
Mon Feb 17, 2020 2:52 pm
Can anyone give an insight as to why this might be happening?
It's supposed to just drop into the REPL once main.py finishes.

Do you see anything on the serial console? Can you trim back your main.py and see if it still happens? Or better yet, can you share the main.py with us?

Post Reply