Fix error in CCM Ram test

This commit is contained in:
Mario Hüttel 2021-05-22 00:06:51 +02:00
parent 384e127085
commit 528db7a581
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ uint32_t startup_test_perform_ccm_ram_check(void)
word_ptr[idx] = idx & 1 ? 0xAA55AA55UL : 0x55AA55AAUL;
}
for (idx = 0, word_ptr = (volatile uint32_t *)ccmram_base; idx < ccmram_size / 4U; idx++) {
target_val = idx & 1 ? 0x55AA55AAUL : 0xAA55AA55UL;
target_val = idx & 1 ? 0xAA55AA55UL : 0x55AA55AAUL;
if (target_val != word_ptr[idx]) {
ret = (uint32_t)&word_ptr[idx];
goto exit_ret_address;