1079629_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1079629_en-US

1079629_en-US

Debug u-boot SPL on NXP imx8mm-evk

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

(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

i.MX 8M | i.MX 8M Mini | i.MX 8M NanoRe: Debug u-boot SPL on NXP imx8mm-evkHi Yuri, I have the same issue. Could you share some material with me. Thanks a lot.Re: Debug u-boot SPL on NXP imx8mm-evkEveryone has the same problem. Who has the solutionRe: Debug u-boot SPL on NXP imx8mm-evk

Everyone has the same problem. Who has the solution

Re: Debug u-boot SPL on NXP imx8mm-evk

@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

Re: Debug u-boot SPL on NXP imx8mm-evk

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.

Re: Debug u-boot SPL on NXP imx8mm-evk

Yuri,
Do you have a solution for the problem?

Re: Debug u-boot SPL on NXP imx8mm-evk

We got same issue. Could you pls email info to us. 

Thanks

Re: Debug u-boot SPL on NXP imx8mm-evk

Hello,

  I've sent You some comments.

Regards,

Yuri.

Tags (1)
No ratings
Version history
Last update:
6 hours ago
Updated by: