Skip to content

Commit 239d57d

Browse files
hakehuangbjarki-andreasen
authored andcommitted
[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 <[email protected]> (cherry picked from commit fe811de)
1 parent 7de4733 commit 239d57d

File tree

1 file changed

+1
-1
lines changed
  • tests/application_development/vector_table_relocation/src

1 file changed

+1
-1
lines changed

tests/application_development/vector_table_relocation/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ZTEST(vector_table_relocation, test_vector_table_in_ram)
5555

5656
printf("VTOR address: 0x%x\n", vtor_address);
5757
zassert_true(vtor_address >= CONFIG_SRAM_BASE_ADDRESS &&
58-
vtor_address <= CONFIG_SRAM_BASE_ADDRESS + CONFIG_SRAM_SIZE,
58+
vtor_address <= CONFIG_SRAM_BASE_ADDRESS + CONFIG_SRAM_SIZE * 1024U,
5959
"Vector table is not in RAM! Address: 0x%x", vtor_address);
6060
}
6161

0 commit comments

Comments
 (0)