Ning Yang commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5414#note_139892 rtems-tester command: `rtems-test --log=../../log_rk3399 --rtems-bsp=rk3399_rockpro64 ../rtems/build/aarch64/rk3399_rockpro64/testsuites --user-config=../../rk3399_test_user_cfg.ini` rk3399_test_user_cfg.ini: ```ini [rk3399_rockpro64] bsp_tty_dev = 192.168.22.1:2000 target_on_command = target_off_command = target_reset_command = cd /home/yangn0/RTEMS_devel/ && python control_pico2.py ``` control_pico2.py: ```python import serial import time def quick_led_test(port='/dev/ttyACM0'): commands = [ 'from machine import Pin', 'import time', 'led = Pin(1, Pin.OUT, value=0)', 'led.on()', 'time.sleep(2)', 'led.off()', ] try: ser = serial.Serial(port, 115200, timeout=1) ser.write(b'\x03\x03') # crtl+c twice for cmd in commands: print(f"exec: {cmd}") ser.write((cmd + '\r\n').encode()) time.sleep(0.1) ser.close() print("finish!") except Exception as e: print(f"error: {e}") # run quick_led_test() ``` -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5414#note_139892 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
