I have a stand alone application which I want to download into external sdram at a microblaze system. In bram a kind of bootloader is running. I try to download via xmodem a binairy application to sdram and then jump to it. To convert the application from .elf to .bin I use mb-objcopy:
mb-objcopy -I elf32-microblaze -O binary appl.elf appl.bin
when I look at the binary file with an editor I see the following:
B8 00 00 18 80 00 00 00 B0 00 7F FF B8 08 FF FF . .
when I look at sdram (after downloading) I see the following (unsigned char pointer used for reading out):
00 B8 18 00 00 80 00 00 00 B0 FF 7F 08 B8 FF FF . .Is this correct of should it be exactly the same as the binairy file?? (I read that the bram is big endian and if I read here, the contents is the same as the binairy file of the bootloader, but how is it with sdram, what is the microblaze expecting (big endian of coarse, I know), but is the binairy file created with objcopy ready to copy it byte for byte to sdram or do I have to reverse something?
Frank