Initialize RAM self-test alias storage

This commit is contained in:
firestar5683
2026-11-02 22:38:34 +00:00
parent 7d062147d3
commit 6bcdbd0e81
+2 -2
View File
@@ -132,8 +132,8 @@ static bool ram_test_block(uint32_t addr, uint32_t words, uint32_t start, uint32
// outside the tested regions, copies are read back instead
__attribute__((section(".sram12"))) static volatile uint32_t ram_test_backup[RAM_TEST_BLOCK_WORDS];
volatile uint32_t *p = (uint32_t *)addr;
volatile uint32_t *alias[RAM_TEST_ALIASES];
uint32_t alias_val[RAM_TEST_ALIASES];
volatile uint32_t *alias[RAM_TEST_ALIASES] = {NULL};
uint32_t alias_val[RAM_TEST_ALIASES] = {0U};
uint8_t aliases = 0U;
for (uint32_t bit = RAM_TEST_BLOCK_WORDS * 4U; (bit < (end - start)) && (aliases < RAM_TEST_ALIASES); bit <<= 1U) {
uint32_t a = addr ^ bit;