tensorflow-micropython-examples icon indicating copy to clipboard operation
tensorflow-micropython-examples copied to clipboard

Build for NUCLEO_F746ZG - FATAL ERROR MemManage when running hello_world

Open jpliew opened this issue 2 years ago • 4 comments

Hi all,

I have created a build based on the STM32 samples from this repo for NUCLEO_F746ZG with STM32F746ZG. Using a good commit 49521 the compilation and generation of the firmware was successful but when executing the hello_world.py, there was FATAL ERROR MemManage and no more response.

Firmware.elf

 arm-none-eabi-size build/firmware.elf
   text    data     bss     dec     hex filename
 715072     284   83924  799280   c3230 build/firmware.elf

Terminal Output

>>> MicroPython v1.17-333-gcf258c898-dirty on 2022-01-31; NUCLEO_F746ZG MICROLITE with STM32F746
Type "help()" for more information.
>>> import hello_world.py
interpreter_make_new: model size = 2488, tensor area = 2064

FATAL ERROR:
            MemManage

HEAP from Current Micropyhton release

>>> MicroPython v1.18 on 2022-01-17; NUCLEO-F746ZG with STM32F746
Type "help()" for more information.
>>> import gc
>>> gc.collect()
>>> gc.mem_free()
163920

HEAP from this build

MicroPython v1.17-333-gcf258c898-dirty on 2022-01-31; NUCLEO_F746ZG MICROLITE with STM32F746
>>> import gc
>>> gc.collect()
>>> gc.mem_free()
158576

Is there anything else that I can provide for someone to check and provide suggestions on how to debug this ?

Thanks

jpliew avatar Jan 31 '22 01:01 jpliew