2011-04-06 14:20:18     i get an Unhandled exception and Illegal instruction error when run in simulator

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-04-06 14:20:18     i get an Unhandled exception and Illegal instruction error when run in simulator

Anton Shokurov (RUSSIAN FEDERATION)

Message: 99629   

 

I've written a standalone program that contains ffmpeg code.

 

I compile the code with

 

bfin-elf-gcc   -msim -mcpu=bf561

 

When i run it on a simulator :

bfin-elf-run  ./run

 

I  get an error:

 

Unhandled exception 0x24 at 0x002adff6 (Unaligned data access)

program stopped with signal 4 (Illegal instruction)

 

if i run

 

bfin-elf-run   --env user ./run

 

i get:

 

 

bfin-sim: 0x311884: unimplemented syscall 22

bfin-sim: 0x311756: unimplemented syscall 2

 

 

What am i doing wrong?

QuoteReplyEditDelete

 

 

2011-04-06 14:32:14     Re: i get an Unhandled exception and Illegal instruction error when run in simulator

Mike Frysinger (UNITED STATES)

Message: 99630   

 

if it's bare metal, you probably want the operating env

 

this is all documented in the wiki:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:sim

Attachments

    Outcomes