Simulation on hardware with speedybeef4v4 error

Hi
I want to run Hexa simualtion on Hardware with SpeedyBeeF4V4 flight controller
When I run this command:

seyyed@seyyed:~/ardupilot$ ./Tools/scripts/sitl-on-hardware/sitl-on-hw.py --board speedybeef4v4 --vehicle copter --simclass MultiCopter --frame hexa --defaults ./Tools/autotest/default_params/copter-hexa.parm --upload

I give this error:

Waf: Leaving directory `/home/seyyed/ardupilot/build/speedybeef4v4'
Build failed
 -> task in 'bin/arducopter' failed (exit status 1): 
	{task 139622110359440: cxxprogram AP_Arming.cpp.51.o,AP_ExternalControl_Copter.cpp.51.o,AP_Rally.cpp.51.o,AP_State.cpp.51.o,Attitude.cpp.51.o,Copter.cpp.51.o,GCS_Copter.cpp.51.o,GCS_Mavlink.cpp.51.o,Log.cpp.51.o,Parameters.cpp.51.o,RC_Channel.cpp.51.o,UserCode.cpp.51.o,UserParameters.cpp.51.o,afs_copter.cpp.51.o,autoyaw.cpp.51.o,avoidance.cpp.51.o,avoidance_adsb.cpp.51.o,baro_ground_effect.cpp.51.o,commands.cpp.51.o,compassmot.cpp.51.o,crash_check.cpp.51.o,ekf_check.cpp.51.o,esc_calibration.cpp.51.o,events.cpp.51.o,failsafe.cpp.51.o,fence.cpp.51.o,heli.cpp.51.o,inertia.cpp.51.o,land_detector.cpp.51.o,landing_gear.cpp.51.o,mode.cpp.51.o,mode_acro.cpp.51.o,mode_acro_heli.cpp.51.o,mode_althold.cpp.51.o,mode_auto.cpp.51.o,mode_autorotate.cpp.51.o,mode_autotune.cpp.51.o,mode_avoid_adsb.cpp.51.o,mode_brake.cpp.51.o,mode_circle.cpp.51.o,mode_drift.cpp.51.o,mode_flip.cpp.51.o,mode_flowhold.cpp.51.o,mode_follow.cpp.51.o,mode_guided.cpp.51.o,mode_guided_nogps.cpp.51.o,mode_land.cpp.51.o,mode_loiter.cpp.51.o,mode_poshold.cpp.51.o,mode_rtl.cpp.51.o,mode_smart_rtl.cpp.51.o,mode_sport.cpp.51.o,mode_stabilize.cpp.51.o,mode_stabilize_heli.cpp.51.o,mode_systemid.cpp.51.o,mode_throw.cpp.51.o,mode_turtle.cpp.51.o,mode_zigzag.cpp.51.o,motor_test.cpp.51.o,motors.cpp.51.o,navigation.cpp.51.o,precision_landing.cpp.51.o,radio.cpp.51.o,sensors.cpp.51.o,standby.cpp.51.o,surface_tracking.cpp.51.o,system.cpp.51.o,takeoff.cpp.51.o,takeoff_check.cpp.51.o,terrain.cpp.51.o,toy_mode.cpp.51.o,tuning.cpp.51.o -> arducopter}
 (run with -v to display more information)
FAILED: ./waf copter --upload
Traceback (most recent call last):
  File "./Tools/scripts/sitl-on-hardware/sitl-on-hw.py", line 172, in <module>
    run_program(build_cmd)
  File "./Tools/scripts/sitl-on-hardware/sitl-on-hw.py", line 61, in run_program
    os.unlink(extra_hwdef.name)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpy0jiv7h7'

Can anyone Help me?

@Eosbandi @amilcarlucas Do you know about this?

I don’t think that sitl on Hw works on an F4 board…