The flash program message programs a set of addresses of either the STM or M25 flash. The device replies with either a MSG_FLASH_DONE message containing the return code FLASH_OK (0) on success, or FLASH_INVALID_LEN (2) if the maximum write size is exceeded. Note that the sector-containing addresses must be erased before addresses can be programmed.
{
"copyright": [
"Copyright (C) 2019-2021 Swift Navigation Inc.",
"Contact: https://support.swiftnav.com",
"",
"This source is subject to the license found in the file 'LICENSE' which must",
"be distributed together with this source. All other rights reserved.",
"",
"THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND,",
"EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED",
"WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE."
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "#MsgFlashProgram",
"title":"MsgFlashProgram",
"description":"The flash program message programs a set of addresses of either the STM or M25 flash. The device replies with either a MSG_FLASH_DONE message containing the return code FLASH_OK (0) on success, or FLASH_INVALID_LEN (2) if the maximum write size is exceeded. Note that the sector-containing addresses must be erased before addresses can be programmed.\n",
"type": "object",
"properties": {
"target": {"type": "integer"},
"addr_start": {"type": "array", "items": {"type": "integer"}},
"addr_len": {"type": "integer"},
"data": {"type": "array", "items": {"type": "integer"}}
},
"required": [
"target",
"addr_start",
"addr_len",
"data"
]
}