Fix error in CCM Ram test
This commit is contained in:
parent
384e127085
commit
528db7a581
@ -27,7 +27,7 @@ uint32_t startup_test_perform_ccm_ram_check(void)
|
|||||||
word_ptr[idx] = idx & 1 ? 0xAA55AA55UL : 0x55AA55AAUL;
|
word_ptr[idx] = idx & 1 ? 0xAA55AA55UL : 0x55AA55AAUL;
|
||||||
}
|
}
|
||||||
for (idx = 0, word_ptr = (volatile uint32_t *)ccmram_base; idx < ccmram_size / 4U; idx++) {
|
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]) {
|
if (target_val != word_ptr[idx]) {
|
||||||
ret = (uint32_t)&word_ptr[idx];
|
ret = (uint32_t)&word_ptr[idx];
|
||||||
goto exit_ret_address;
|
goto exit_ret_address;
|
||||||
|
Loading…
Reference in New Issue
Block a user