Hello,
How to debug u-boot SPL on i.MX8M Mini (NXP imx8mm-evk) ?
Why the $pc goes to 0x200 instead of executing spl instruction ?
```
user@desktop:~/sources/u-boot$ ../binutils-gdb/gdb/gdb -q spl/u-boot-spl
Reading symbols from spl/u-boot-spl...
(gdb) target remote :3333
Remote debugging using :3333
0x000000000000c904 in ?? ()
(gdb) load
Loading section .text, size 0x101c8 lma 0x7e1000
Loading section .rodata, size 0x23a3 lma 0x7f11c8
Loading section .data, size 0x5f80 lma 0x7f3570
Loading section .u_boot_list, size 0x1400 lma 0x7f94f0
Start address 0x00000000007e1000, load size 104683
Transfer rate: 69 KB/sec, 11631 bytes/write.
(gdb) i r pc
pc 0x7e1000 0x7e1000 <_start>
(gdb) x/i 0x7e1000
0x7e1000 <_start>: b 0x7e1028 <reset>
(gdb) stepi
0x0000000000000200 in ?? ()
(gdb) i r pc
pc 0x200 0x200
(gdb) x/i 0x200
=> 0x200: b 0x13dc4
```
BOOT_MODE[3:0] = 0101 (serial downloader)
openocd 0.10.0 (openocd -f ./tcl/interface/ftdi/olimex-arm-usb-ocd-h.cfg -f ./tcl/board/imx8mp-evk.cfg)
GNU gdb (GDB) 10.0.50.20200418-git
Best regards
Everyone has the same problem. Who has the solution
Hello,
I've sent You some comments.
Regards,
Yuri.
Hi Yuri!
I have similar problems on a imx8mn-evk board when I try to load the SPL.
What was the solution to the https://community.nxp.com/t5/i-MX-Processors/Debug-u-boot-SPL-on-NXP-imx8mm-evk/m-p/1079629 question.
@joaze
Hello,
Last time I sent some material how to debug the issue. I do not know
exact solution. You can create separate thread for considerations.
Regards,
Yuri
Yuri,
Do you have a solution for the problem?
We got same issue. Could you pls email info to us.
Thanks