Less memory on new firmware?

Hello,
I was porting a program made for a “OPENMV4P with STM32H743” running on the 4.3.1 (may 2022) firmware.
It allocates 2 frame buffers with a sensor.WQXGA2 framesize.

        sensor.dealloc_extra_fb()
        sensor.dealloc_extra_fb()
        
        # Allocate frame buffers for reference and original images
        self.img_ref_fb = sensor.alloc_extra_fb(self.image_width, self.image_height, self.sensor_pixformat)
        self.img_ori_fb = sensor.alloc_extra_fb(self.image_width, self.image_height, self.sensor_pixformat)

When I try to allocate this much using the 4.6.20 firmware I get “out of fast frame buffer stack memory”. How (or where ?) could I use this much memory with the new firmware? also I’m not sure I understood what were frame buffers.

Yeah, we reduced the frame buffer stack so the heap could be larger.

This means that doing what you want is not possible without firmware customization. You can edit the heap/frame buffer stack size here: openmv/boards/OPENMV4P/omv_boardconfig.h at master · openmv/openmv · GitHub

And reduce the heap here: openmv/boards/OPENMV4P/omv_boardconfig.h at master · openmv/openmv · GitHub

Note that we have 27MB for the FB stack already… however, what you are trying to do requires like 30MB+.

Reducing to WQXGA might be advised.