m2m_OTA_write_mem_data

INT32 m2m_OTA_write_mem_data(UINT8 *buffer, INT32 len, INT32 offset)

 

Description: the function works on OTA section memory, it moves "len" bytes from the buffer pointed by "buffer" pointer to the memory starting from "offset" address. It is mandatory to use the m2m_OTA_erase_mem_data(...) before calling the writing function. It is responsibility of the programmer to avoid consecutive writing on the same memory portion.

 

Parameters:
buffer:         pointer to the allocated buffer filled with data to be written
len:    number of bytes to write
offset: memory offset where data is stored, see table below:

 

Module Series

Offset Range

HE910

0 ÷ 0x280000 - 1

UE910

0 ÷ 0x280000 - 1

GE910

0 ÷ 0x140000 - 1

 

 

Return value:
         on success:   1
         on failure:     0