Excuse me! I also found a problem when I run the test_program_rpc.py after I generated custom bitstream. My setting is also completely follow the VTA FPGA pynq-z1 setup. I modified the HW_FREQ=142 and HW_CLK_TARGET=6 in vta_config.json .But when I run the script , I get the following errors:
Traceback (most recent call last):
File “test_program_rpc.py”, line 27, in
program_rpc_bitstream()
File “test_program_rpc.py”, line 18, in program_rpc_bitstream
program_fpga(remote, path)
File “/home/qd/tvm/vta/python/vta/rpc_client.py”, line 38, in program_fpga
fprogram = remote.get_function(“tvm.contrib.vta.init”)
File “/home/qd/tvm/python/tvm/rpc/client.py”, line 41, in get_function
return self._sess.get_function(name)
File “/home/qd/tvm/python/tvm/_ffi/function.py”, line 103, in get_function
ctypes.byref(ret_handle)))
File “/home/qd/tvm/python/tvm/_ffi/base.py”, line 72, in check_call
raise TVMError(py_str(_LIB.TVMGetLastError()))
tvm._ffi.base.TVMError: [16:18:23] /home/qd/tvm/src/runtime/rpc/rpc_session.cc:857: Check failed: code == RPCCode::kReturn code=4
Stack trace returned 10 entries:
[bt] (0) /home/qd/tvm/build/libtvm.so(dmlc::StackTrace[abi:cxx11](unsigned long)+0x1fd) [0x7fbf6a1382ed]
[bt] (1) /home/qd/tvm/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x2d) [0x7fbf6a138f3d]
[bt] (2) /home/qd/tvm/build/libtvm.so(+0x99164c) [0x7fbf6a7f264c]
[bt] (3) /home/qd/tvm/build/libtvm.so(tvm::runtime::RPCModuleNode::GetFunction(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::shared_ptrtvm::runtime::ModuleNode const&)+0x8c2) [0x7fbf6a7ff942]
[bt] (4) /home/qd/tvm/build/libtvm.so(TVMModGetFunction+0x79) [0x7fbf6a7d1d49]
[bt] (5) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call_unix64+0x4c) [0x7fbf76bbfe40]
[bt] (6) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call+0x2eb) [0x7fbf76bbf8ab]
[bt] (7) /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so(_ctypes_callproc+0x48f) [0x7fbf76dcf3df]
[bt] (8) /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so(+0x11d82) [0x7fbf76dd3d82]
[bt] (9) python(PyEval_EvalFrameEx+0x578d) [0x4c166d]
Can you give me some instruction?