[ABANDONED] JLink commander fialed to load program on a new RV32 device.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] JLink commander fialed to load program on a new RV32 device.

    Hi,
    We are trying to use J-Link as a Debug probe for the RISC-V-based 32-bit HBird core. We add a Devices.xml and it can be selected by the JLink commander. When I load the program, I get an error.
    We used the simplest configuration.

    Source Code: Devices.xml

    1. <Database>
    2. <Device InheritFrom="RV32">
    3. <ChipInfo Name="HBird"/>
    4. </Device>
    5. </Database>

    JLink Commander output: Jlink Commander output.log

    How do we make it work right?
    Thank you. :)
    Files
    • jlink.log

      (5.94 kB, downloaded 116 times, last: )
  • Additional information:
    The Program Header of the program looks like this:

    Source Code: Program Header of hbird_test_rtt.elf

    1. Elf file type is EXEC (Executable file)
    2. Entry point 0x80000000
    3. There are 4 program headers, starting at offset 52
    4. Program Headers:
    5. Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
    6. LOAD 0x001000 0x80000000 0x80000000 0x03118 0x03118 RWE 0x1000
    7. LOAD 0x005000 0x90000000 0x80003118 0x00074 0x00074 RW 0x1000
    8. LOAD 0x000074 0x90000074 0x90000074 0x00000 0x0060c RW 0x1000
    9. LOAD 0x000800 0x9000f800 0x90000680 0x00000 0x00800 RW 0x1000
    10. Section to Segment mapping:
    11. Segment Sections...
    12. 00 .init .ilalign .text .rodata
    13. 01 .data
    14. 02 .bss
    15. 03 .stack
    Display All
    I debugged it with OpenOCD and everything worked fine.