Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run "monitor flash verify_image" command failed in gdb #1195

Open
Alan-19950616 opened this issue Dec 27, 2024 · 0 comments
Open

Run "monitor flash verify_image" command failed in gdb #1195

Alan-19950616 opened this issue Dec 27, 2024 · 0 comments

Comments

@Alan-19950616
Copy link

  1. The CPU is running in Flashxip mode and is halt at a hardware breakpoint position
  2. Run monitor flash write_image erase unlock D:\\openocd_test\\flash.bin 0x20000000 bin in gdb
  3. Run monitor flash verify_image D:\\openocd_test\\flash.bin 0x20000000 bin in gdb
  4. At this point you can see the error message as follows
(gdb) load
Loading section .init, size 0x294 lma 0x20000000
Loading section .text, size 0x3720 lma 0x200002c0
Loading section .data, size 0xc0 lma 0x200039e0
Start address 0x0000000020000100, load size 14964
Transfer rate: 13 KB/sec, 4988 bytes/write.
(gdb) b main
Breakpoint 1 at 0x20001678: file main.c, line 99.
Note: automatically using hardware breakpoints for read-only addresses.
(gdb) c
Continuing.

Thread 1 "riscv0.cpu.0" hit Breakpoint 1, main () at main.c:99
99          hartid = __get_hart_id();
(gdb) monitor flash write_image erase unlock D:\\openocd_test\\flash.bin 0x20000000 bin
auto erase enabled
auto unlock enabled
wrote 7077888 bytes from file D:\openocd_test\flash.bin in 167.017609s (41.385 KiB/s)
(gdb) monitor flash verify_image D:\\openocd_test\\flash.bin 0x20000000 bin
verify failed in bank at 0x20000000 starting at 0x00000000
Protocol error with Rcmd

OpenOCD configuration file openocd_ns_cluster0_core0.cfg.txt
Error log file openocd.log
Flash Driver src/flash/nor/nuspi.c
Flash Loader contrib/loaders/flash/nuspi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant