Skip to content

Commit

Permalink
[provisioning] Recognize the old ROM_EXT output
Browse files Browse the repository at this point in the history
The ROM_EXT used to print "Starting ROM_EXT 0.1", but we cleaned up the
ROM_EXT output.  It now prints "ROM_EXT:0.1".  Change the regex to
recognize both formats.

Signed-off-by: Chris Frantz <[email protected]>
  • Loading branch information
cfrantz committed Nov 25, 2024
1 parent 2b68995 commit 040c235
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sw/host/provisioning/ft_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ pub fn check_rom_ext_boot_up(
) -> Result<()> {
transport.reset_target(init.bootstrap.options.reset_delay, true)?;
let uart_console = transport.uart("console")?;
let _ = UartConsole::wait_for(&*uart_console, r"ROM_EXT:.*\r\n", timeout)?;
// The ROM_EXT used to print "Starting ROM_EXT 0.1", but we cleaned up the
// ROM_EXT output. It now prints "ROM_EXT:0.1".
// The following regex recognizes both forms:
let _ = UartConsole::wait_for(&*uart_console, r"ROM_EXT[: ].*\r\n", timeout)?;

// Timeout for waiting for a potential error message indicating invalid UDS certificate.
// This value is tested on fpga cw340 and could be potentially fine-tuned.
Expand Down

0 comments on commit 040c235

Please sign in to comment.