Skip to content

Commit 0b073c8

Browse files
committed
[Opentitanlib] Reduce CW340 bootstrap SPI clock speed
The reduction is necessary due to increased bus capacitance introduced by external wires connected to the TPM SPI interface, which affects signal integrity. This change improves CW340 stability during bootstrap for CI tests. Signed-off-by: Douglas Reis <[email protected]>
1 parent 382e702 commit 0b073c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sw/host/opentitanlib/src/app/config/hyperdebug_cw340.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@
8888
"spi": [
8989
{
9090
"name": "BOOTSTRAP",
91-
"bits_per_sec": 5000000,
91+
// The current speed accounts for increased bus capacitance caused by the external
92+
// SPI_TPM wires. If these wires are not connected (e.g., when skipping TPM tests),
93+
// the SPI speed can safely be increased to 5MHz.
94+
"bits_per_sec": 4000000,
9295
"chip_select": "CN10_6",
9396
"alias_of": "QSPI"
9497
}

0 commit comments

Comments
 (0)