UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer chen71730
Observer
4,416 Views
Registered: ‎03-17-2010

question on microblaze disassembler

Hi!

 

Option "-S" of microblaze disassembler is used for intrmix source code with disassembly.

 

Why  are the below messages appeared when I use this option?

 

 

the command is:

--------------------------------------------------------------------------------------------

powerpc-eabi-objdump -Ss TestApp_Peripheral.elf >> TestApp_Peripheral.dis

 

 

the message is:

--------------------------------------------------------------------------------------------

powerpc-eabi-objdump: Can't disassemble for architecture UNKNOW!

 

 

.elf file had already been generated successfully. What's the matter about this message?

 

can anyone tell me? thank you so much.

 

 

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
4,401 Views
Registered: ‎01-18-2008

Re: question on microblaze disassembler

You might want to post the header that you see when you do:

 

powerpc-eabi-readelf -a executable.elf 

 

Specifically, make sure that it says that the machine is PowerPC. 

0 Kudos
Highlighted
Adventurer
Adventurer
4,394 Views
Registered: ‎01-04-2008

Re: question on microblaze disassembler

The power-pc-eabi tools are for PowerPC 405/440 ELF files.  To work with MicroBlaze files, one must use the mb-tools, i.e.

 

mb-objdump

mb-gcc

etc.

 

-Jason

0 Kudos
Observer chen71730
Observer
4,372 Views
Registered: ‎03-17-2010

Re: question on microblaze disassembler

Thank you both. Sorry! I seem to make a logical mistake.

 

 

I can get disassembly code after using the following command

-----------------------------------------------------------------------------------------

mb-objdum -S TestApp_Peripheral.elf >> TestApp_Peripheral.dis

 

 

Thank you for your help. :)

 

0 Kudos