mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
Initialize RAM self-test alias storage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user