We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c606d7 commit 49cb7edCopy full SHA for 49cb7ed
secure_boot_and_secure_firmware_upgrade_over_canfd/icsp_inhibit.X/icsp_inhibit.c
@@ -20,17 +20,20 @@
20
*/
21
22
#include <stdbool.h>
23
+#include <string.h>
24
#include "mcc_generated_files/flash/flash.h"
25
#include "mcc_generated_files/flash/flash_types.h"
26
27
+#define ICSP_INHIBIT_WRITE_LOCK_ADDRESS 0x0801034
28
+
29
static flash_data_t inhibitKeys[4] =
30
{
31
0x00006D63UL, 0x00000000UL, 0x00006870UL, 0x00000000UL
32
};
33
34
bool ICSP_INHIBIT_IsEnabled(void)
35
- static flash_data_t dataInFlash[4];
36
+ static const flash_data_t dataInFlash[4];
37
FLASH_Read(0x801034, 4, dataInFlash);
38
39
if(memcmp(inhibitKeys, dataInFlash, sizeof(inhibitKeys)) == 0)
0 commit comments