AnsweredAssumed Answered

mpxy8300 basic code doesn't work

Question asked by Mirosław Piwowoński on Oct 17, 2012
Latest reply on Oct 17, 2012 by Mirosław Piwowoński

Hello,

i've got a problem with chip mpxy8300. I created blank project in codewarrior and try to set port:

 

#include <hidef.h> /* for EnableInterrupts macro */

#include "derivative.h" /* include peripheral declarations */

 

void main(void) {

 

 

PTADD=0x07;

PTAD=0x07;

 

 

 

  for(;;) {

   // __RESET_WATCHDOG(); /* feeds the dog */

  } /* loop forever */

  /* please make sure that you never leave main */

}

 


this code doesn't work. When i'm debugging it seems that uC don't go inside main function.


Does anybody know what i'm doing wrong.

Mirek

Outcomes