Page 1 of 1

Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Tue May 06, 2014 8:05 am
by mogren3000
Hi.

I am getting this error when i am trying to run nbench on XMOS startKIT.
This is what the error says:

"xrun: Program received signal ET_ILLEGAL_PC, Illegal program counter.
0x00000000 in ?? ()"

When i run the debugger i get the following:

"3 <symbol is not available> 0x00000000"

Re: Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Tue May 06, 2014 8:36 am
by sethu_jangala
Can you share us your workspace or give some more details about the program you are running on startKIT?

Sethu.

Re: Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Tue May 06, 2014 8:53 am
by mogren3000
sethu wrote:Can you share us your workspace or give some more details about the program you are running on startKIT?

Sethu.
Yes no problem.

I uploaded it to github.

https://github.com/mogren3000/nbench/

Re: Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Tue May 06, 2014 2:34 pm
by Bianco
You need to initialize the funcpointer array in nbench.h:

Code: Select all

/*
** Array of pointers to the benchmark functions.
*/
void (*funcpointer[])(void) =
{       /*DoNumSort,
        DoStringSort,
        DoBitops,
        DoEmFloat,
        DoFourier,
        DoAssign,
        DoIDEA,
        DoHuffman,
        DoNNET,
        DoLU */};
If you still encounter problems you may want to decrease the NUMNUMARRAYS and NUMARRAYSIZE constants in nmglobal.h, they seem to be rather large.

Re: Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Sun May 11, 2014 9:29 pm
by mogren3000
This is what i get in the console when i run Nbench.

BYTEmark (tm) Native Mode Benchmark ver. 2 (10/95)
NUMERIC SORT :
** WARNING: The current test result is NOT 95 % statistically certain.
** WARNING: The variation among the individual results is too large.
: Iterations/sec.: 0.00 Index: 0.00

And this is for all the test it is supposed to run.

Re: Getting ET_ILLEGAL_PC, Illegal program count.

Posted: Tue May 13, 2014 8:06 am
by mogren3000
Dont want to bump anything here but i had two missing files that where to be added and thats
nbench1.h and nbench1.c.

When nbench1.c is added the missing initialize for the funcpointer is at place but then this next problem is when I am building it I get this message:


"Program is too large (0x19f2c bytes) for node "0" tile 0 (0x10000 bytes)."

This confirms that its to big to get it to run on the XMOS.

Much thanks to all answers