I have a problem with SDCC to create a hex-file.
I downloaded SDCC Windows package and installed it on my harddisc: C:\Programme\SDCC
I testet the compiler by compiling a simple hello_world_program written in c.
The result was an *.ihx file.
The compiler is working.
Now I want to compile a programm for my PIC16F628a controller.
And the result I get is: error: pic16f628a.h : No such File or directory.
It's obviousli that the compiler can't find the necesery file.
Can anybody help me solving my problem?
I tried to find the solution on the web and found nothing that could help.
Here is my code:
__config(HS & WDTDIS & BORDIS & PWRTDIS & MCLRDIS);
// Konfiguration der Ports
TRISA = 00000000; // Port A Ausgang
TRISB = 00000000; // Port B Ausgang
// Comparatorn ausschalten
CMCON = 7;
// Ports setzen
PORTB = 170;
Which version of sdcc you downloaded?
What does "sdcc -version" say?