mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-08-15 23:50:23 +02:00
Add files via upload
This commit is contained in:
+11
-11
@@ -91,18 +91,18 @@ When your program is compiled, variables go to different places depending on how
|
|||||||
|
|
||||||
```
|
```
|
||||||
┌─────────────────────────────────────────────────────────────────┐
|
┌─────────────────────────────────────────────────────────────────┐
|
||||||
│ .data Section (Flash → copied to RAM at startup) │
|
│ .data Section (Flash → copied to RAM at startup) │
|
||||||
│ Contains: Initialized global/static variables │
|
│ Contains: Initialized global/static variables │
|
||||||
│ Example: int counter = 42; │
|
│ Example: int counter = 42; │
|
||||||
├─────────────────────────────────────────────────────────────────┤
|
├─────────────────────────────────────────────────────────────────┤
|
||||||
│ .bss Section (RAM - zeroed at startup) │
|
│ .bss Section (RAM - zeroed at startup) │
|
||||||
│ Contains: Uninitialized global/static variables │
|
│ Contains: Uninitialized global/static variables │
|
||||||
│ Example: int counter; (will be 0) │
|
│ Example: int counter; (will be 0) │
|
||||||
├─────────────────────────────────────────────────────────────────┤
|
├─────────────────────────────────────────────────────────────────┤
|
||||||
│ .rodata Section (Flash - read only) │
|
│ .rodata Section (Flash - read only) │
|
||||||
│ Contains: Constants, string literals │
|
│ Contains: Constants, string literals │
|
||||||
│ Example: const int MAX = 100; │
|
│ Example: const int MAX = 100; │
|
||||||
│ Example: "hello, world" │
|
│ Example: "hello, world" │
|
||||||
└─────────────────────────────────────────────────────────────────┘
|
└─────────────────────────────────────────────────────────────────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -842,7 +842,7 @@ delay2:
|
|||||||
│ - Format: Raw Bytes │
|
│ - Format: Raw Bytes │
|
||||||
├─────────────────────────────────────────────────────────────────┤
|
├─────────────────────────────────────────────────────────────────┤
|
||||||
│ 5. Convert to UF2 │
|
│ 5. Convert to UF2 │
|
||||||
│ - python uf2conv.py file.bin --base 0x10000000 │
|
│ - python uf2conv.py file.bin --base 0x10000000 │
|
||||||
│ --family 0xe48bff59 --output hacked.uf2 │
|
│ --family 0xe48bff59 --output hacked.uf2 │
|
||||||
├─────────────────────────────────────────────────────────────────┤
|
├─────────────────────────────────────────────────────────────────┤
|
||||||
│ 6. Flash and verify │
|
│ 6. Flash and verify │
|
||||||
|
|||||||
Reference in New Issue
Block a user