Commit a916912
committed
Fix FMC flash bounds and logging
Corrected the GD32 FMC end-of-flash address calculation to avoid an off-by-one bounds issue in flash reads. Added targeted debug tracing around the flash read/write paths and cleaned up redundant debug entry/exit calls. The config-store state log now reports the idle state after a successful flash write, keeping the diagnostics and flash boundary checks aligned with the actual device layout.1 parent 71ab57d commit a916912
4 files changed
Lines changed: 11 additions & 12 deletions
File tree
- lib-configstore
- device/gd32/rom
- include
- lib-flashcode/src/gd32
- lib-gd32/src/f/fmc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | | - | |
90 | | - | |
91 | 87 | | |
92 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | | - | |
523 | 521 | | |
524 | 522 | | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
528 | 526 | | |
529 | | - | |
530 | | - | |
531 | 527 | | |
532 | 528 | | |
533 | 529 | | |
| |||
561 | 557 | | |
562 | 558 | | |
563 | 559 | | |
564 | | - | |
565 | | - | |
566 | 560 | | |
567 | 561 | | |
568 | 562 | | |
| |||
596 | 590 | | |
597 | 591 | | |
598 | 592 | | |
| 593 | + | |
599 | 594 | | |
600 | 595 | | |
601 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
0 commit comments