-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathbootload.yaml
115 lines (107 loc) · 3.82 KB
/
bootload.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Copyright (C) 2015-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.
package: swiftnav.sbp.bootload
description: >
Messages for the bootloading configuration of a Piksi 2.3.1. This message
group does not apply to Piksi Multi.
Note that some of these messages share the same message type ID for both the
host request and the device response.
stable: True
public: False
include:
- types.yaml
definitions:
- MSG_BOOTLOADER_HANDSHAKE_REQ:
id: 0x00B3
public: false
short_desc: Bootloading handshake request (host => device)
desc: >
The handshake message request from the host establishes a
handshake between the device bootloader and the host. The
response from the device is MSG_BOOTLOADER_HANDSHAKE_RESP.
- MSG_BOOTLOADER_HANDSHAKE_RESP:
id: 0x00B4
public: false
short_desc: Bootloading handshake response (host <= device)
desc: >
The handshake message response from the device establishes a
handshake between the device bootloader and the host. The
request from the host is MSG_BOOTLOADER_HANDSHAKE_REQ. The
payload contains the bootloader version number and the SBP
protocol version number.
fields:
- flags:
type: u32
desc: Bootloader flags
fields:
- 16-31:
desc: Reserved
- 8-15:
desc: SBP major protocol version number
- 0-7:
desc: SBP minor protocol version number
- version:
type: string
encoding: unterminated
desc: Bootloader version number
- MSG_BOOTLOADER_JUMP_TO_APP:
id: 0x00B1
public: false
short_desc: Bootloader jump to application (host => device)
desc: >
The host initiates the bootloader to jump to the application.
fields:
- jump:
type: u8
desc: Ignored by the device
- MSG_NAP_DEVICE_DNA_REQ:
id: 0x00DE
public: false
short_desc: Read FPGA device ID over UART request (host => device)
desc: >
The device message from the host reads a unique device
identifier from the SwiftNAP, an FPGA. The host requests the ID
by sending a MSG_NAP_DEVICE_DNA_REQ message. The device
responds with a MSG_NAP_DEVICE_DNA_RESP message with the
device ID in the payload. Note that this ID is tied to the FPGA,
and not related to the Piksi's serial number.
- MSG_NAP_DEVICE_DNA_RESP:
id: 0x00DD
public: false
short_desc: Read FPGA device ID over UART response (host <= device)
desc: >
The device message from the host reads a unique device
identifier from the SwiftNAP, an FPGA. The host requests the ID
by sending a MSG_NAP_DEVICE_DNA_REQ message. The device
responds with a MSG_NAP_DEVICE_DNA_RESP message with the
device ID in the payload. Note that this ID is tied to the FPGA,
and not related to the Piksi's serial number.
fields:
- dna:
type: array
fill: u8
size: 8
desc: >
57-bit SwiftNAP FPGA Device ID. Remaining bits are padded
on the right.
- MSG_BOOTLOADER_HANDSHAKE_DEP_A:
id: 0x00B0
public: false
short_desc: Deprecated
desc: Deprecated.
replaced_by:
- MSG_BOOTLOADER_HANDSHAKE_REQ
- MSG_BOOTLOADER_HANDSHAKE_RESP
fields:
- handshake:
type: array
encoding: unterminated
fill: u8
desc: Version number string (not NULL terminated)