-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configs/metro-m4: Instructions for unlocking FLASH ... which may be l…
…ethal.
- Loading branch information
1 parent
221bbad
commit 8876f9c
Showing
5 changed files
with
138 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <stdio.h> | ||
#include <stdint.h> | ||
|
||
const uint8_t nvm[20] = | ||
{ | ||
0x14, /* Count 20 bytes */ | ||
0x80, 0x40, 0x00, /* 24-address : 804000 */ | ||
0x39, 0x92, 0x9a, 0xfe, 0x80, 0xff, 0xec, 0xae, /* 16-bytes of NVM data */ | ||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | ||
}; | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
unsigned int csum; | ||
int i; | ||
|
||
printf("S2"); | ||
|
||
for (i = 0, csum = 0; i < 20; i++) | ||
{ | ||
csum += nvm[i]; | ||
printf("%02X", (unsigned int)nvm[i]); | ||
} | ||
|
||
printf("%02X\r\n", ~csum & 0xff); | ||
printf("S9030000FC\r\n"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
S21480400039929AFE80FFECAEFFFFFFFFFFFFFFFFB7 | ||
S9030000FC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters