Lines Matching +full:flash +full:- +full:id
5 * SPDX-License-Identifier: Apache-2.0
26 zassert_true(ret == 0, "Flash img init"); in ZTEST()
29 zassert_true(ret == 0, "Flash img init id"); in ZTEST()
31 /* Verify that the default partition ID is IMAGE_1 */ in ZTEST()
33 "Default partition ID is incorrect"); in ZTEST()
37 zassert_true(ret == 0, "Flash img init id"); in ZTEST()
39 zassert_equal(ctx_id.flash_area->fa_id, SLOT0_PARTITION_ID, in ZTEST()
40 "Partition ID is not set correctly"); in ZTEST()
52 zassert_true(ret == 0, "Flash img init"); in ZTEST()
60 printf("Flash driver was not found!\n"); in ZTEST()
68 zassert_true(ret == 0, "Flash write failure (%d)", ret); in ZTEST()
72 ret = flash_area_write(fa, fa->fa_size - sizeof(erase_buf), erase_buf, in ZTEST()
74 zassert_true(ret == 0, "Flash write failure (%d)", ret); in ZTEST()
76 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
77 zassert_true(ret == 0, "Flash erase failure (%d)", ret); in ZTEST()
97 printf("Flash driver was not found!\n"); in ZTEST()
111 ret = flash_area_read(fa, fa->fa_size - sizeof(buf), buf, sizeof(buf)); in ZTEST()
112 zassert_true(ret == 0, "Flash read failure (%d)", ret); in ZTEST()
139 zassert_true(ret == 0, "Flash img init 1"); in ZTEST()
140 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
141 zassert_true(ret == 0, "Flash erase failure (%d)\n", ret); in ZTEST()
143 zassert_true(ret == 0, "Flash img buffered write\n"); in ZTEST()
146 zassert_true(ret == -EINVAL, "Flash img check params 1, 2\n"); in ZTEST()
148 zassert_true(ret == -EINVAL, "Flash img check params 2\n"); in ZTEST()
150 zassert_true(ret == -EINVAL, "Flash img check params 1\n"); in ZTEST()
153 zassert_true(ret == -EINVAL, "Flash img check fic match\n"); in ZTEST()
156 zassert_true(ret == -EINVAL, "Flash img check fic len\n"); in ZTEST()
160 zassert_true(ret == 0, "Flash img check\n"); in ZTEST()
163 zassert_false(ret == 0, "Flash img check wrong sha\n"); in ZTEST()