Does ARM920T have bkpt instruction?

Hi,

I’m getting conflicting answers using google as to whether the ARM920T have the BKPT instruction. From the ARM920T manual, it looks like (see page 6 of the manual) the ARMv4t core of the ARM920T CPU has this instruction. However, using gcc, I get the following:

arm-linux-uclibc-gcc -march=armv4t -g -c hello.c

/tmp/ccdIQaHa.s: Assembler messages:

/tmp/ccdIQaHa.s:38: Error: selected processor does not support ‘bkpt 0’

make: *** [hello.o] Error 1

Similarly with -mcpu=arm920t

Comments anyone?

cytan

Can you post the code and the processor that you are using?

Code is this:


#include <stdio.h>

int main()

{

printf(“Halting the target …\n\r”);

asm(“bkpt 0”);

printf(“Hello world\n”);

return 0;

}


I am running this on the Hammer http://tincantools.com which uses the

Samsung S3C2410A ARM920T.

If I compile the above without the -mcpu or -march, I can create an

executable, but when I run it on the Hammer, I get:


./hello.elf

Halting the target …

Illegal instruction


I hope the above gives more detail about the problem.

cytan

I think your line should be:

asm(“bkpt #0”);

Shifted:
I think your line should be:

asm(“bkpt #0”);

Changed it and gcc still gives the same error message with -march option.

Compiling without any architecture options and running on the Hammer, still gives the same Illegal instruction error.

cytan

The Linux kernel on the Hammer was probably compiled for a different target, which does not have that instruction.

Leon