Browse Source

tests: vector_table_relocation: fix a mis-use of SRAM_SIZE

SRAM_SIZE is given in kilobytes

fixes: #92533

Signed-off-by: Hake Huang <hake.huang@nxp.com>
pull/92661/merge
Hake Huang 6 days ago committed by Daniel DeGrasse
parent
commit
fe811defb2
  1. 2
      tests/application_development/vector_table_relocation/src/main.c

2
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); printf("VTOR address: 0x%x\n", vtor_address);
zassert_true(vtor_address >= CONFIG_SRAM_BASE_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); "Vector table is not in RAM! Address: 0x%x", vtor_address);
} }

Loading…
Cancel
Save