Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Bus error on memory operation

Hello,

I have a Cyclone V SoC dev kit and I get the following errors when trying to load it onto the board:

ERROR(CMD16-TAD216-NAL18):

! Failed to load "DPD_Ex.axf"

! Failed to write 82,792 bytes to address S:0x00008000 while writing block of 4,096 bytes to address S:0x00008000

! Bus error on memory operation.

Any ideas what is going on? How to fix it?

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I suspect you are tring to fit a quart into a pint pot.

    The 82k looks like a standard bsp build that includes a printf(), it will only fit into external memory.

    Address 0x8000 is probably a small internal memory block.

    You need to look at which memory areas the code/date/stack are assigned to.

    Altera really ought to change the default examples to use the small bsp.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am running bare-metal, I have a .s file where I set those memory address. Do you know of a Doc where I can know what the memory address of the Cyclone board are?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hello,

    I have a Cyclone V SoC dev kit and I get the following errors when trying to load it onto the board:

    ERROR(CMD16-TAD216-NAL18):

    ! Failed to load "DPD_Ex.axf"

    ! Failed to write 82,792 bytes to address S:0x00008000 while writing block of 4,096 bytes to address S:0x00008000

    ! Bus error on memory operation.

    Any ideas what is going on? How to fix it?

    --- Quote End ---

    Hi,

    I am trying to execute the same bare-metal program (the one described in the user guide) on my Cyclone V SoC development kit and facing same error. Here is the message :

    loadfile "D:\TOOLS\altera\130sp1\embedded\ds_5_teast_wb\Altera-SoCFPGA-HelloWorld-Baremetal-GNU\hello.axf"

    Target Message: Memory access caused precise abort.

    Debug Precise Abort Registers : DFSR = 0x00000817, DFAR = 0xFFFF1000

    ERROR(CMD16-TAD216-NAL18):

    ! Failed to load "hello.axf"

    ! Failed to write 16,048 bytes to address S:0xFFFF0000 while writing block of 4,096 bytes to address S:0xFFFF1000

    ! Bus error on memory operation.

    Will you please explain me how you solved this problem?

    Ashish
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Like, the answer given above says. Your file is too big for the space.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Like, the answer given above says. Your file is too big for the space.

    --- Quote End ---

    Yeah, that I know very well. But, what should I do to execute this bare-metal program successfully?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I am facing same error.

    Will you please explain me how you solved this problem?

    Thank you very much!