Help with NoICE

OP #1174035
HI all.
I'm here again.
Still I have problem to debug my LPC2142.
I create own JTAG and use H-Jtag Server.

If try starter software from IAR and use my JTAG and H-JTAG then I
candebug some example.
But I use WinARM , and all me project is create for this.
I want debug with NoICE and there is problem.
If compile my project and load with NoICE then NoICE burn program and
Jump to main. if trace then halt on any asm instrukcion and show error "
unknown op-code ", and some lines are not asm code but  ??? .
What happend????
is wrong my electronic or wath????
but compilers ?????

regards.
OP #1174036
Sevc Dominik wrote:
some example:
if main initialization is :

int main (void)
{
  init_VIC();
  PINSEL0 = 0x00008005;          /* */
  PINSEL1 = 0x01040000;          /* */
  // setup the parallel port pin
  IOCLR0 = 0x60400020;  // clear the ZEROs output
  IODIR0 = 0x60400020;  // set the output bit direction
  init_serial1(9600);  /* baud rate setting */
  rprintf_devopen( putc_serial1 ); /* init rprintf */
  rprintf("CNC 2\n");
  ADCInit();    /* Initialize ADC0  */
  Axes_Set();    /* Set Axes , set output pin */
//  Init_Timer(0);    /* Init Timer */
//  Init_Timer(1);    /* Init Timer */
//  Enable_Timer( 1 );  /* Enable timer */
//    PWM_Init();      /* PWM inicialize*/
//    PWM_Set( 1,150);  /* Set PWM4 output to time,set LER */
//    PWM_Start(0);    /* Start PWM = 0*/

//    PWM_Start(1);    /* Start PWM4 output */
  while (1)
  {
  if (AxesS==0)
    {
    StopAllM(2);
    };
  if (Axes_par.Int)
    {
    Axes_par.Int = FALSE;
    KrokLinInter();
//    MoveAx(&Axes_par);
    };
  if ( CMD )  ExeCMD();
    }
}

if try to debuging then halt on Axes_Set(); function and show can't read
write memory and re-enable debug state (orsometih like this).
if Disable Axes_Set(); then all work (comunicate with serial port).

if disable Axes_Set(); but enable some other function like:
Init_Timer(0);
then halt and show error unknown op-code , and on line is no asm code
but ???

what is wrong?????

regards

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.