Hello,
When I run tests/python/unittest/test_runtime_micro.py
on my STM32F746-discovery board. It fails at the test_add() and gives me the following error. Any thoughts about this issues?
finished alloc test
[press enter to continue]
Traceback (most recent call last):
File "../../tvm/tests/python/unittest/test_runtime_micro.py", line 350, in <module>
test_add()
File "../../tvm/tests/python/unittest/test_runtime_micro.py", line 114, in test_add
micro_mod = micro.create_micro_mod(c_mod, DEV_CONFIG_A)
File "/home/wmchen/utvm/tvm/python/tvm/micro/base.py", line 212, in create_micro_mod
micro_mod = tvm.runtime.load_module(lib_obj_path)
File "/home/wmchen/utvm/tvm/python/tvm/runtime/module.py", line 405, in load_module
return _ffi_api.ModuleLoadFromFile(path, fmt)
File "/home/wmchen/utvm/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 225, in __call__
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
[bt] (7) /home/wmchen/utvm/tvm/build/libtvm.so(TVMFuncCall+0x63) [0x7ff91711f8f3]
[bt] (6) /home/wmchen/utvm/tvm/build/libtvm.so(tvm::runtime::TypedPackedFunc<tvm::runtime::Module (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>::AssignTypedLambda<tvm::runtime::Module (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>(tvm::runtime::Module (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*) const+0xc9) [0x7ff91713d0d9]
[bt] (5) /home/wmchen/utvm/tvm/build/libtvm.so(tvm::runtime::Module::LoadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x512) [0x7ff917139482]
[bt] (4) /home/wmchen/utvm/tvm/build/libtvm.so(+0xf7f08a) [0x7ff9171bb08a]
[bt] (3) /home/wmchen/utvm/tvm/build/libtvm.so(tvm::runtime::MicroSession::LoadBinary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)+0x19b) [0x7ff9171c046b]
[bt] (2) /home/wmchen/utvm/tvm/build/libtvm.so(tvm::runtime::MicroSession::AllocateInSection(tvm::runtime::SectionKind, unsigned long)+0x54) [0x7ff9171bfff4]
[bt] (1) /home/wmchen/utvm/tvm/build/libtvm.so(tvm::runtime::MicroSectionAllocator::Allocate(unsigned long)+0x178) [0x7ff9171c5c28]
[bt] (0) /home/wmchen/utvm/tvm/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x79) [0x7ff9166b8e69]
File "/home/wmchen/utvm/tvm/src/runtime/micro/micro_section_allocator.h", line 68
TVMError: Check failed: size_ + size < capacity_: cannot alloc 80 bytes in section "bss" (start_addr=0x20004718, used=540, capacity=600)