This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create PRUSS binary files.

Now I try use PRU0 bare-metal application.

My setting is output 2 files. text.bin (application codes) and data.bin (data area?).

I load text.bin to 0x4a334000 (PRU0 IRAM).

And load data.bin to 0x4a300000 (PRU0 DATARAM).

But, Data Area (0x4a300000) is not same debug load (.out file by using Emulator).

I want to know correctly flow.

I want to write PUR bin file to SPI Flash. And read and load to PRU from A8 core application.


PRU link .cmd file is   

MEMORY
{
PAGE 0:
PRU_IMEM : org = 0x00000000 len = 0x00002000 /* 8kB PRU0 Instruction RAM */
PAGE 1:
PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */
PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */
PRU_SHAREDMEM : org = 0x00010000 len = 0x00003000 CREGISTER=28 /* 12kB Shared RAM */

DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31
L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30

PRU_CFG : org = 0x00026000 len = 0x00000044 CREGISTER=4
PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3
PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26
PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0
PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7
}

SECTIONS
{
.text:_c_int00 > 0x0, PAGE 0
.text > PRU_IMEM, PAGE 0
.bss > PRU_DMEM_0_1, PAGE 1
.data > PRU_DMEM_0_1, PAGE 1
.rodata > PRU_DMEM_0_1, PAGE 1
.farbss > PRU_DMEM_0_1, PAGE 1
.fardata > PRU_DMEM_0_1, PAGE 1
.rofardata > PRU_DMEM_0_1, PAGE 1
.sysmem > PRU_DMEM_0_1, PAGE 1
.stack > PRU_DMEM_0_1, PAGE 1
.init_array > PRU_DMEM_0_1, PAGE 1
.cinit > PRU_DMEM_0_1, PAGE 1
.args > PRU_DMEM_0_1, PAGE 1

.resource_table > PRU_DMEM_0_1, PAGE 1
}

bni.cmd is

-b
-image

ROMS {
PAGE 0:
text: o = 0x0, l = 0x2000, files={text.bin}
PAGE 1:
data: o = 0x0, l = 0x2000, files={data.bin}
}