This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

v850 Redboot question


Hi,

 I am trying to port Redboot on v850 evaluation board. This board is
similar to CEB V850E/MA1 board. Somehow I build redboot.elf file, and
I installed the Redboot image on this target board.
 But it stopped "Intialize hardware" section in vectors.S. its line
in vectors.S is as follows,

  jarl  _cyg_hal_hardware_init,r31

 When I examined closely, it stopped cyg_hal_plf_serial_init() function 
in hal_diag.c. By GDB, it stopped in other line.(drv_api.c)

 What do I do to run redboot on this board ?

 Thanks a lot for your help

---
fukuy@mue.biglobe.ne.jp

 $ v850-elf-gdb ./install/bin/redboot
 ...
 (gdb) target sim
 (gdb) load
 Loading section .rom_vectors, size 0x440 vma 0x0
 Loading section .text, size 0x88a2 vma 0x440
 Loading section .rodata, size 0x1758 vma 0x8ce4
 Loading section .ram_vectors, size 0x680 vma 0x8000000
 Loading section .data, size 0xb0c vma 0x8000680
 Start address 0x0
 Transfer rate: 372272 bits in <1 sec.
 (gdb) b drv_api.c:1
 ...
 (gdb) r
 Starting program: /vhome/fukuy/ecos/work2/./install/bin/redboot.elf
 
 Breakpoint 1, cyg_hal_deliver_exception (code=0, data=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:929
 929     }
 (gdb) x/i $pc
 0x0 <cyg_hal_deliver_exception>:        cmp     r0, r10
 (gdb) s
 cyg_drv_interrupt_get_cpu (vector=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:920
 920     }
 (gdb) x/i $pc
 0x4 <cyg_drv_interrupt_get_cpu+4>:      mov     1, r10
 (gdb) s
 cyg_drv_interrupt_unmask_intunsafe (vector=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:808
 808         HAL_DISABLE_INTERRUPTS(old_ints);
 (gdb) x/i $pc
 0x6 <cyg_drv_interrupt_unmask_intunsafe+6>:     st.w    r10, 4144[r11]
 (gdb) s
 809         HAL_INTERRUPT_UNMASK( vector );
 (gdb) x/i $pc
 0xa <cyg_drv_interrupt_unmask_intunsafe+10>:    jarl    0xffffff58, lp
 (gdb) s
 core: 2 byte read to unmapped address 0xffffff58 at 0xffffff58
 
 Program received signal SIGSEGV, Segmentation fault.
 Cannot access memory at address 0xfffffef4.
 (gdb)

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]