Skip to content

Pixel Trinkey issues Warning about RTC, does not cold boot into code.py #10711

@davs2rt

Description

@davs2rt

CircuitPython version and board name

Adafruit CircuitPython 10.0.3 on 2025-10-17; Adafruit Pixel Trinkey M0 with samd21e18 Board ID:adafruit_pixel_trinkey_m0 UID:6A4C909D434C585020312E320C2619FF

Code/REPL

import time import board import neopixel # --- Configuration --- NUM_LEDS = 160 # Number of LEDs in your external strip DATA_PIN = board.DATA # External data pin (D0 pad on Trinkey) BRIGHTNESS = 0.5 # Set between 0.0 and 1.0 to reduce power usage # Initialize the NeoPixel strip strip = neopixel.NeoPixel( DATA_PIN, NUM_LEDS, brightness=BRIGHTNESS, auto_write=False, pixel_order=neopixel.RGB ) # --- Helper function: Rainbow color wheel --- def wheel(pos): """Returns a color from 0–255 on a rainbow color wheel.""" if pos < 0 or pos > 255: return (0, 0, 0) if pos < 85: return (255 - pos * 3, pos * 3, 0) elif pos < 170: pos -= 85 return (0, 255 - pos * 3, pos * 3) else: pos -= 170 return (pos * 3, 0, 255 - pos * 3) # --- Fill strip initially with rainbow colors --- for i in range(NUM_LEDS): color = wheel((i * 256) // NUM_LEDS) strip[i] = color strip.show() # --- Animate the rainbow shifting forward --- while True: # print("jorge was here") first_color = strip[0] # Shift all LEDs forward for i in range(NUM_LEDS - 1): strip[i] = strip[i + 1] # Put first color at the end strip[NUM_LEDS - 1] = first_color strip.show() time.sleep(0.005) # Adjust to control animation speed

Behavior

On a cold boot, the following warnings are issued, and code.py is not executed. Desired action is that we apply power and the lights animate as programmed.

WARNING: Could not determine epoch year (argument num/types mismatch), assuming 1970
WARNING: Could not sync device's clock: no module named 'rtc'
WARNING: Could not validate time: no module named 'rtc'
�]0;🐍REPL | 10.0.3�
Adafruit CircuitPython 10.0.3 on 2025-10-17; Adafruit Pixel Trinkey M0 with samd21e18

────────────────────────────────────────────

�]0;🐍Done | 10.0.3�\soft reboot

Auto-reload is off.
Running in safe mode! Not running saved code.

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.

Press Ctrl-C to enter the REPL. Use CTRL-D to reload.
�]0;🐍REPL | 10.0.3�
Adafruit CircuitPython 10.0.3 on 2025-10-17; Adafruit Pixel Trinkey M0 with samd21e18

Description

Once you click the reset button, in warm boot, the code appears to execute correctly.

I don't think the Pixel Trinkey has an RTC, so this warning is correct, but it inhibits the power-on behavior of running code.py.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions