diff --git a/ports/alif/modules/he/_boot.py b/ports/alif/modules/he/_boot.py index bc1320f190..3df1804709 100644 --- a/ports/alif/modules/he/_boot.py +++ b/ports/alif/modules/he/_boot.py @@ -1,21 +1,7 @@ -import openamp -import time -from machine import Pin +# Change working directory to ROMFS, so boot.py and main.py can run from there. +try: + import os - -def ept_recv_callback(src_addr, data): - print("Received message on endpoint", data) - - -# Create a new RPMsg endpoint to communicate with main core. -ept = openamp.Endpoint("vuart-channel", callback=ept_recv_callback) - -pin = Pin("LED_BLUE", Pin.OUT) - -count = 0 -while True: - if ept.is_ready(): - ept.send("Hello from HE %d" % count, timeout=1000) - count += 1 - time.sleep_ms(100) - pin(not pin()) + os.chdir("/rom") +except: + pass