Hi, sorry for posting many questions.
I’m now in trouble running this demo, and it fails when flashing to the board.
I specified ‘target’ and ‘board’ like below:
TARGET = tvm.target.target.micro("stm32f746xx")
BOARD = "nucleo_f746zg"
I didn’t make any change except the above part, but when I ran below:
################
# Run Autotuning
################
# Now we can run autotuning separately on each extracted task.
num_trials = 10
for task in tasks:
tuner = tvm.autotvm.tuner.GATuner(task)
tuner.tune(
n_trial=num_trials,
measure_option=measure_option,
callbacks=[
tvm.autotvm.callback.log_to_file("microtvm_autotune.log.txt"),
tvm.autotvm.callback.progress_bar(num_trials, si_prefix="M"),
],
si_prefix="M",
)
I got the error below 10 times.
Current/Best: 0.00/ 0.00 MFLOPS | Progress: (0/10) | 0.00 s
ERROR:root:Project Generate Error: calling method generate_project: JSON-RPC error # -32000: calling method generate_project
Traceback (most recent call last):
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 481, in serve_one_request # <--- Outermost server-side stack frame
self._dispatch_request(request)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 593, in _dispatch_request
return_value = dispatch_method(**params)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 621, in _dispatch_generate_project
return self._handler.generate_project(
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 417, in generate_project
version = self._get_platform_version(get_zephyr_base(options))
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 325, in get_zephyr_base
assert zephyr_base, "'zephyr_base' option not passed and not found by default!"
AssertionError: 'zephyr_base' option not passed and not found by default!
ERROR:root:Project Generate Error: calling method generate_project: JSON-RPC error # -32000: calling method generate_project
Traceback (most recent call last):
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 481, in serve_one_request # <--- Outermost server-side stack frame
self._dispatch_request(request)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 593, in _dispatch_request
return_value = dispatch_method(**params)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 621, in _dispatch_generate_project
return self._handler.generate_project(
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 417, in generate_project
version = self._get_platform_version(get_zephyr_base(options))
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 325, in get_zephyr_base
assert zephyr_base, "'zephyr_base' option not passed and not found by default!"
AssertionError: 'zephyr_base' option not passed and not found by default!
ERROR:root:Project Generate Error: calling method generate_project: JSON-RPC error # -32000: calling method generate_project
Traceback (most recent call last):
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 481, in serve_one_request # <--- Outermost server-side stack frame
self._dispatch_request(request)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 593, in _dispatch_request
return_value = dispatch_method(**params)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 621, in _dispatch_generate_project
return self._handler.generate_project(
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 417, in generate_project
version = self._get_platform_version(get_zephyr_base(options))
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 325, in get_zephyr_base
assert zephyr_base, "'zephyr_base' option not passed and not found by default!"
AssertionError: 'zephyr_base' option not passed and not found by default!
ERROR:root:Project Generate Error: calling method generate_project: JSON-RPC error # -32000: calling method generate_project
Traceback (most recent call last):
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 481, in serve_one_request # <--- Outermost server-side stack frame
self._dispatch_request(request)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 593, in _dispatch_request
return_value = dispatch_method(**params)
File "/home/mamo/workspace/tvm/tvm/python/tvm/micro/project_api/server.py", line 621, in _dispatch_generate_project
return self._handler.generate_project(
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 417, in generate_project
version = self._get_platform_version(get_zephyr_base(options))
File "/home/mamo/workspace/tvm/tvm/build/microtvm_template_projects/zephyr/microtvm_api_server.py", line 325, in get_zephyr_base
assert zephyr_base, "'zephyr_base' option not passed and not found by default!"
AssertionError: 'zephyr_base' option not passed and not found by default!
I’m not sure what the backend is doing here, but maybe it uses west
command and tries to flash the microcontrollers right?
I connected the correct board to PC, and also checked if zephyr is installed properly by trying blinky project. west
command is recognized properly in current directory so I can’t find why it doesn’t work.
Could anyone help me on this?