diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2022-12-08 21:38:57 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2022-12-08 21:38:57 +0100 |
commit | 5580827cea00cc72cad77fc32bfa721d618b7c1a (patch) | |
tree | e265a44e0dcbc49e5d55586aa3310dbff789c518 | |
parent | 2ca2464d5a8e20efb8aa59b913f3aa021854647d (diff) |
main: Report as "Option bytes" and "System memory"
These locations are not RAM.
https://sourceforge.net/p/stm32flash/tickets/92/
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -342,8 +342,8 @@ int main(int argc, char* argv[]) { fprintf(diag, "Device ID : 0x%04x (%s)\n", stm->pid, stm->dev->name); fprintf(diag, "- RAM : Up to %dKiB (%db reserved by bootloader)\n", (stm->dev->ram_end - 0x20000000) / 1024, stm->dev->ram_start - 0x20000000); fprintf(diag, "- Flash : Up to %dKiB (size first sector: %dx%d)\n", (stm->dev->fl_end - stm->dev->fl_start ) / 1024, stm->dev->fl_pps, stm->dev->fl_ps[0]); - fprintf(diag, "- Option RAM : %db\n", stm->dev->opt_end - stm->dev->opt_start + 1); - fprintf(diag, "- System RAM : %dKiB\n", (stm->dev->mem_end - stm->dev->mem_start) / 1024); + fprintf(diag, "- Option bytes : %db\n", stm->dev->opt_end - stm->dev->opt_start + 1); + fprintf(diag, "- System memory : %dKiB\n", (stm->dev->mem_end - stm->dev->mem_start) / 1024); uint8_t buffer[256]; uint32_t addr, start, end; |