FAQ: [#6070] can't access scratchpad sram in bfin-uclinux-gdb in MPU(2010)

Document created by Aaronwu Employee on Sep 11, 2013
Version 1Show Document
  • View in full screen mode

[#6070] can't access scratchpad sram in bfin-uclinux-gdb in MPU

Submitted By: Barry Song

Open Date

2010-06-17 05:31:13     Close Date

2010-06-21 06:23:00

Priority:

Medium     Assignee:

Barry Song

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

4.3.4 (ADI-trunk/svn-3771)

App binary format:

N/A     

Summary: can't access scratchpad sram in bfin-uclinux-gdb in MPU

Details:

 

(gdb) c

Continuing.

 

Breakpoint 3, __uClibc_main (main=0x3d6815c <main>, argc=1, argv=0xffb00f80, app_init=Cannot access memory at address 0xffb00f6c

) at libc/misc/internals/__uClibc_main.c:278

278     libc/misc/internals/__uClibc_main.c: No such file or directory.

        in libc/misc/internals/__uClibc_main.c

Current language:  auto; currently c

(gdb) p *argv

Cannot access memory at address 0xffb00f80

 

(gdb) p *0xffb00f78

Cannot access memory at address 0xffb00f78

 

L1 is always covered by PLD entry in fact. For example:

test.c

printf("%08x\n", *((unsigned int *)0xffb00f78));

 

root:/> ./test

03d6760c

 

 

Follow-ups

 

--- Mike Frysinger                                           2010-06-17 13:06:55

gdb goes through ptrace, so double check to make sure the kernel ptrace function

isnt blocking the request

 

--- Barry Song                                               2010-06-18 05:50:56

Why you always give some comments all people know just like before checking ECC,

erase nand?

 

--- Mike Frysinger                                           2010-06-18 09:58:27

just trying to help

 

--- Barry Song                                               2010-06-21 06:20:16

Fixed. permit to access scratchpad sram stack gdb

(gdb) c

Continuing.

 

Breakpoint 1, __uClibc_main (main=0x3d3815c <main>, argc=1,

argv=0xffb00f80, app_init=0x3d3bb34 <_init>, app_fini=0x3d3bb46

<_fini>,

    rtld_fini=0, stack_end=0x3d3360c) at

libc/misc/internals/__uClibc_main.c:278

278     libc/misc/internals/__uClibc_main.c: No such file or directory.

        in libc/misc/internals/__uClibc_main.c

Current language:  auto; currently c

(gdb) info reg sp

sp             0xffb00f30       0xffb00f30

(gdb) p *0xffb00f30

$1 = 61780680

 

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes