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