Getting ET_ILLEGAL_PC, Illegal program count.

All technical discussions and projects around startKIT
mogren3000
Member++
Posts: 19
Joined: Tue Apr 29, 2014 8:12 am

Getting ET_ILLEGAL_PC, Illegal program count.

Postby mogren3000 » Tue May 06, 2014 8:05 am

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"
User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Postby sethu_jangala » Tue May 06, 2014 8:36 am

Can you share us your workspace or give some more details about the program you are running on startKIT?

Sethu.
mogren3000
Member++
Posts: 19
Joined: Tue Apr 29, 2014 8:12 am

Postby mogren3000 » Tue May 06, 2014 8:53 am

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/
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Postby Bianco » Tue May 06, 2014 2:34 pm

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.
mogren3000
Member++
Posts: 19
Joined: Tue Apr 29, 2014 8:12 am

Postby mogren3000 » Sun May 11, 2014 9:29 pm

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.
mogren3000
Member++
Posts: 19
Joined: Tue Apr 29, 2014 8:12 am

Postby mogren3000 » Tue May 13, 2014 8:06 am

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

Who is online

Users browsing this forum: No registered users and 3 guests