
TMCM-0960-MotionPy •Document Revision V1.00 •2020-10-23 9 / 11
2.4 Safe Mode
To enter safe mode, do the following steps:
1. Connect the board with USB, so it powers up.
2. Hold down the USR switch (SWDIO switch).
3. While still holding down USR, press and release the NRST switch.
4. The LEDs will then cycle red to blue to red+blue and back again.
5. Keep holding down USR until only the red LED is lit, and then let go of the USR switch.
6. The red LED should flash quickly 4 times, and then turn off.
7. You are now in safe mode.
In safe mode, the boot.py and main.py files are not executed, and so the MotionPy board boots up with
default settings. This means you now have access to the filesystem (the USB drive should appear), and you
can edit boot.py and main.py to fix any problems. Entering safe mode is temporary, and does not make
any changes to the files on the pyboard.
2.5 Reset to Factory Default
The SWD connector can also be used to reset the Evaluation board to factory default settings. This is
useful for example when the RS485 and/or CAN bit rate and ID settings of the board are not known. Do
the following things to perform a reset to factory default settings:
1. Switch offthe supply power.
2. Link together the pins CLK and DIO of the 1x4pin Header (Red) (using a jumper).
3. Switch on the supply power.
4. Wait until the MCU status and error LED flash alternating.
5. Switch offthe supply power.
6. Remove the link between the CLK and the DIO pin.
7. Switch on again. The module now runs with factory default settings.
©2020 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com