julian403
Full Member level 5
Why MPLAB give :
In the next code:
I think that the error it's in the function show. But why?
make[2]: *** [dist/default/production/ELQUEVAPA.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)
In the next code:
Code:
#include <xc.h>
// CONFIG
#pragma config FOSC = XT // Oscillator Selection bits (XT oscillator)
#pragma config WDTE = OFF // Watchdog Timer (WDT disabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (Power-up Timer is disabled)
#pragma config CP = OFF //
extern int aux=0;
extern int aux2=0;
void show (int var)
{
var++;
show(aux2);
}
void main(void) {
INTCON=0b10010000;
TRISB=0x02;
TRISA=0x01;
while (!PORTAbits.RA1)
{
show(aux);
}
if (PORTAbits.RA1)
{
INTCONbits.GIE=0;
}
return;
}
I think that the error it's in the function show. But why?
Last edited: