1/1
illegal instaruction
by wlxydx on Aug 26, 2015 |
wlxydx
Posts: 1 Joined: Aug 3, 2015 Last seen: May 9, 2016 |
||
I use the MiniSoc project only implement the uart,compile and download to the board(all the files come from the official website).I upload the as this:
cd minsoc/sw/uart or32-elf-gdb uart.or32 target remote :9999 load set $pc=0x100 c after the c(continue) ,the system return as follow: Program received signal SIGILL, Illegal instruction. 0x00001de8 in uart_init (base=0) at uart.c:49 49 REG8(uart_base + UART_DLM) = (divisor >> 8) & 0x000000ff; |
RE: illegal instaruction
by dgisselq on Aug 28, 2015 |
dgisselq
Posts: 247 Joined: Feb 20, 2015 Last seen: Oct 24, 2024 |
||
An illegal instruction usually means one of two things, either your instructions are corrupted or your instruction pointer is pointed to somewhere erroneous. Can you set the linker to produce a map file, showing where everything is going to land in memory, and then check that file against where the program counter ends up? Even better, can you read the stack trace off the stack pointer and see how you got there?
Dan |
1/1