Application raised Data Abort in first instruction

Y. HB sprhawk at gmail.com
Sun Sep 18 03:17:30 UTC 2022


Hello all

I'm running rtems on tms570lc4357 , flash loaded with HalCoGen generated
loader, rtems application is loaded by gdb into SDRAM. the RTEMS bsp /
boot_card is started and broke in first line of hello.c:Init

but when booted in simple hello world task, it raised exception to 0x18,
seems data abort

11      rtems_task Init(
12        rtems_task_argument ignored
13      )
14      {
15          int i = 0;
16          i += 100;
              ...
           }

Breakpoint 4, Init (ignored=2147657124) at ../../hello.c:15
15          int i = 0;
(gdb) disassemble
Dump of assembler code for function Init:
   0x800004e8 <+0>:     push    {r7, lr}
   0x800004ea <+2>:     sub     sp, #16
   0x800004ec <+4>:     add     r7, sp, #0
   0x800004ee <+6>:     str     r0, [r7, #4]
=> 0x800004f0 <+8>:     movs    r3, #0
   0x800004f2 <+10>:    str     r3, [r7, #12]
   0x800004f4 <+12>:    ldr     r3, [r7, #12]
   0x800004f6 <+14>:    adds    r3, #100        ; 0x64
   0x800004f8 <+16>:    str     r3, [r7, #12]
   0x800004fa <+18>:    movs    r3, #0
   0x800004fc <+20>:    str     r3, [r7, #12]
   0x800004fe <+22>:    b.n     0x80000514 <Init+44>
   0x80000500 <+24>:    ldr     r1, [r7, #12]
   0x80000502 <+26>:    movw    r0, #4192       ; 0x1060
   0x80000506 <+30>:    movt    r0, #32770      ; 0x8002
   0x8000050a <+34>:    bl      0x8001b890 <printf>
   0x8000050e <+38>:    ldr     r3, [r7, #12]
   0x80000510 <+40>:    adds    r3, #1
End of assembler dump.
(gdb) stepi
0x00000018 in ?? ()

I used POM to map address to RTEMS exception vector. But I didn't know how
to map or debug it via GDB / OpenOCD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20220918/66ef6534/attachment.htm>


More information about the users mailing list