The flash erase message from the host erases a sector of either the STM or M25 onboard flash memory. The device will reply with a MSG_FLASH_DONE message containing the return code - FLASH_OK (0) on success or FLASH_INVALID_FLASH (1) if the flash specified is invalid.
{
"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": "#MsgFlashErase",
"title":"MsgFlashErase",
"description":"The flash erase message from the host erases a sector of either the STM or M25 onboard flash memory. The device will reply with a MSG_FLASH_DONE message containing the return code - FLASH_OK (0) on success or FLASH_INVALID_FLASH (1) if the flash specified is invalid.\n",
"type": "object",
"properties": {
"target": {"type": "integer"},
"sector_num": {"type": "integer"}
},
"required": [
"target",
"sector_num"
]
}