Run CM1 code from external ram

Hi,

I'm using a pynq-z1 board where i'm placing a CM1 soft  proccessor and i want to load the code that would be executed by the CM1 on the DDR RAM of the pynq's PS so the CM1 could read the code from there.

I'm able to tell the CM1 (in keil uVision) that the ROM is external and is is the address that correspond to the PS RAM but i don't know how to extract the code itself from the .elf generated when building the proyect in the Keil and load it directly on the RAM of the PS.

I'm not sure if what i say makes sense or if i missing some steps.

Could you please give some hints?

Thanks in advance and best regards,

Juan

Parents
  • I am not sure if I get your question, but it sounds you want to have the pure code, not the ELF with all the stuff. There is a tool called "fromelf" which you can use to get the raw binary.
    But the MDK should be able to load the ELF via JTAG into the PS-RAM. Did you try this?

Reply
  • I am not sure if I get your question, but it sounds you want to have the pure code, not the ELF with all the stuff. There is a tool called "fromelf" which you can use to get the raw binary.
    But the MDK should be able to load the ELF via JTAG into the PS-RAM. Did you try this?

Children