Pass or fail, Valid count, Address – NavCom Sapphire Rev.J User Manual
Page 435: Table 220: bootloadb message error codes

Sapphire Technical Reference Manual Rev. J
435
Value
Enum Name
12
NB_ProgRep,
13
NB_EraseCmd,
14
NB_EraseRep,
15
NB_WriteFCmd,
16
NB_WriteFRep,
17
NB_ResetCmd,
18
NB_ResetRep,
19
NB_Working,
20
NB_EnumLast
Pass or Fail
For a reply message, this field indicates if the previous command passed or failed. For a
command message, this field either is not used or it has another meaning.
Valid Count
This field indicates how many bytes in the data field are valid.
Address
When downloading data, this field indicates the destination address of the data. In the response
message, if the pass/fail field is fail, this field indicates the error code. Error codes are defined in
Table 220.
This field has other meanings under different circumstances.
Table 220: BOOTLOADB Message Error Codes
Enum
Value
Description
Err_PingTarget
0
Ping Target Error. This could be caused by an invalid value in the
ping_target (address) field in the NB_PingCmd command or by trying
to ping bootloader2 when bootloader1 is running.
Err_InvalidBaud
1
Invalid baud rate in NB_BaudCmd command
Err_SetupRange
2
Address range error in NB_SetupCmd command
Err_LoadData
3
Error in NB_LoadDataCmd command
Err_MaxAddr
4
Maximum address error. This could be caused by the maximum
address of the data received being inconsistent with the value
specified in the NB_SetupCmd command.
Err_BadCrc
5
Software image CRC error detected in replying to NB_ChkCrcCmd
command
Err_EraseFlash
6
Erase flash error
Err_WriteFlash
7
Write to flash error
Err_Reset
8
Receiver reset error
Err_SubID
100
Unknown SubID received in [BOOTLOADB] command