We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8297c95 commit d1b12cbCopy full SHA for d1b12cb
ports/alif/modules/he/_boot.py
@@ -1,21 +1,7 @@
1
-import openamp
2
-import time
3
-from machine import Pin
+# Change working directory to ROMFS, so boot.py and main.py can run from there.
+try:
+ import os
4
5
-
6
-def ept_recv_callback(src_addr, data):
7
- print("Received message on endpoint", data)
8
9
10
-# Create a new RPMsg endpoint to communicate with main core.
11
-ept = openamp.Endpoint("vuart-channel", callback=ept_recv_callback)
12
13
-pin = Pin("LED_BLUE", Pin.OUT)
14
15
-count = 0
16
-while True:
17
- if ept.is_ready():
18
- ept.send("Hello from HE %d" % count, timeout=1000)
19
- count += 1
20
- time.sleep_ms(100)
21
- pin(not pin())
+ os.chdir("/rom")
+except:
+ pass
0 commit comments