Debug u-boot SPL on NXP imx8mm-evk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Debug u-boot SPL on NXP imx8mm-evk

3,027 次查看
sne555
Contributor I

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

标签 (1)
0 项奖励
回复
7 回复数

2,226 次查看
iyun
Contributor I

Everyone has the same problem. Who has the solution

0 项奖励
回复

2,915 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  I've sent You some comments.

Regards,

Yuri.

0 项奖励
回复

2,554 次查看
joaze
Contributor I

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.

0 项奖励
回复

2,226 次查看
iyun
Contributor I
Everyone has the same problem. Who has the solution
0 项奖励
回复

2,533 次查看
Yuri
NXP Employee
NXP Employee

@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

0 项奖励
回复

2,644 次查看
ilko
Contributor I

Yuri,
Do you have a solution for the problem?

0 项奖励
回复

2,891 次查看
davidwang66
Contributor I

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

Thanks

0 项奖励
回复