Software APIs
sw
device
silicon_creator
rom
e2e
boot_policy_flash_ecc_error
uncorrupted_test.c
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#include <
stdbool.h
>
6
7
#include "
sw/device/lib/runtime/log.h
"
8
#include "
sw/device/lib/testing/test_framework/ottf_main.h
"
9
#include "sw/device/silicon_creator/lib/drivers/retention_sram.h"
10
#include "sw/device/silicon_creator/lib/manifest_def.h"
11
12
OTTF_DEFINE_TEST_CONFIG();
13
14
bool
test_main
(
void
) {
15
char
*cause = (
char
*)retention_sram_get()->
owner
.
reserved
;
16
LOG_INFO
(
"Booted slot=%p; Cause=%s"
, manifest_def_get(), cause);
17
return
true
;
18
}
Return to
OpenTitan Documentation