def _create_algo_bin(self, ro_rw_zi):
        """Create a binary blob of the flash algo which can execute from ram"""
        sect_ro, sect_rw, sect_zi = ro_rw_zi
        algo_size = sect_ro.length + sect_rw.length + sect_zi.length
        algo_data = bytearray(algo_size)
        for section in (sect_ro, sect_rw):
            start = section.start
            size = section.length
            data = section.data
            assert len(data) == size
            algo_data[start:start + size] = data
        return algo_data
def _create_algo_bin ( self , ro_rw_zi ) : sect_ro , sect_rw , sect_zi = ro_rw_zi algo_size = sect_ro . length + sect_rw . length + sect_zi . length algo_data = bytearray ( algo_size ) for section in ( sect_ro , sect_rw ) : start = section . start size = section . length data = section . data assert len ( data ) == size algo_data [ start : start + size ] = data return algo_data
Create a binary blob of the flash algo which can execute from ram