Skip to content

Commit aa1e1ea

Browse files
committed
[fpga] Enforce CW310 SAM3X Firmware
As CW310 SAM3X firmware version below "1.5" have an UART flow control bug, enforce that the version is at leaset "1.5". This ensures that the communication over uJSON works flawless. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
1 parent 58657c0 commit aa1e1ea

12 files changed

Lines changed: 48 additions & 0 deletions

File tree

capture/capture_aes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def setup(cfg: dict, project: Path):
106106
)
107107
target = Target(target_cfg)
108108

109+
# Check target firmware.
110+
target.check_fw_version("1.5")
111+
109112
# Init scope.
110113
scope_type = cfg["capture"]["scope_select"]
111114

capture/capture_hmac.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def setup(cfg: dict, project: Path):
106106
)
107107
target = Target(target_cfg)
108108

109+
# Check target firmware.
110+
target.check_fw_version("1.5")
111+
109112
# Init scope.
110113
scope_type = cfg["capture"]["scope_select"]
111114

capture/capture_ibex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def setup(cfg: dict, project: Path):
9494
)
9595
target = Target(target_cfg)
9696

97+
# Check target firmware.
98+
target.check_fw_version("1.5")
99+
97100
# Init scope.
98101
scope_type = cfg["capture"]["scope_select"]
99102

capture/capture_kmac.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def setup(cfg: dict, project: Path):
110110
)
111111
target = Target(target_cfg)
112112

113+
# Check target firmware.
114+
target.check_fw_version("1.5")
115+
113116
# Init scope.
114117
scope_type = cfg["capture"]["scope_select"]
115118

capture/capture_otbn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def setup(cfg: dict, project: Path):
120120
)
121121
target = Target(target_cfg)
122122

123+
# Check target firmware.
124+
target.check_fw_version("1.5")
125+
123126
# Init scope.
124127
scope_type = cfg["capture"]["scope_select"]
125128

capture/capture_sha3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def setup(cfg: dict, project: Path):
9595
)
9696
target = Target(target_cfg)
9797

98+
# Check target firmware.
99+
target.check_fw_version("1.5")
100+
98101
# Init scope.
99102
scope_type = cfg["capture"]["scope_select"]
100103

fault_injection/fi_crypto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def setup(cfg: dict, project: Path):
5252
)
5353
target = Target(target_cfg)
5454

55+
# Check target firmware.
56+
target.check_fw_version("1.5")
57+
5558
# Init FI gear.
5659
fi_gear = FIGear(cfg)
5760

fault_injection/fi_ibex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def setup(cfg: dict, project: Path):
5252
)
5353
target = Target(target_cfg)
5454

55+
# Check target firmware.
56+
target.check_fw_version("1.5")
57+
5558
# Init FI gear.
5659
fi_gear = FIGear(cfg)
5760

fault_injection/fi_otbn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def setup(cfg: dict, project: Path):
5252
)
5353
target = Target(target_cfg)
5454

55+
# Check target firmware.
56+
target.check_fw_version("1.5")
57+
5558
# Init FI gear.
5659
fi_gear = FIGear(cfg)
5760

fault_injection/fi_rng.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def setup(cfg: dict, project: Path):
5252
)
5353
target = Target(target_cfg)
5454

55+
# Check target firmware.
56+
target.check_fw_version("1.5")
57+
5558
# Init FI gear.
5659
fi_gear = FIGear(cfg)
5760

0 commit comments

Comments
 (0)