From 239d57d4c53db8a557faf82131db11e3dfa403ad Mon Sep 17 00:00:00 2001 From: Hake Huang Date: Wed, 2 Jul 2025 19:58:36 +0800 Subject: [PATCH] [nrf fromtree] tests: vector_table_relocation: fix a mis-use of SRAM_SIZE SRAM_SIZE is given in kilobytes fixes: #92533 Signed-off-by: Hake Huang (cherry picked from commit fe811defb28a0468dae763c0d2f9b5e42de7766b) --- .../application_development/vector_table_relocation/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/application_development/vector_table_relocation/src/main.c b/tests/application_development/vector_table_relocation/src/main.c index d102f713df5..d5fa7c8ed47 100644 --- a/tests/application_development/vector_table_relocation/src/main.c +++ b/tests/application_development/vector_table_relocation/src/main.c @@ -55,7 +55,7 @@ ZTEST(vector_table_relocation, test_vector_table_in_ram) printf("VTOR address: 0x%x\n", vtor_address); zassert_true(vtor_address >= CONFIG_SRAM_BASE_ADDRESS && - vtor_address <= CONFIG_SRAM_BASE_ADDRESS + CONFIG_SRAM_SIZE, + vtor_address <= CONFIG_SRAM_BASE_ADDRESS + CONFIG_SRAM_SIZE * 1024U, "Vector table is not in RAM! Address: 0x%x", vtor_address); }