From 528db7a5812d554160ac6bb17a0a0db24ea13ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 22 May 2021 00:06:51 +0200 Subject: [PATCH] Fix error in CCM Ram test --- stm-firmware/boot/startup-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm-firmware/boot/startup-tests.c b/stm-firmware/boot/startup-tests.c index 6eacdd8..561ce84 100644 --- a/stm-firmware/boot/startup-tests.c +++ b/stm-firmware/boot/startup-tests.c @@ -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;