furqankaimkhani
Member level 4
I am trying to make a program in mplab ide v8.66 for pic18f458 using c18 v3.37.01.
To do so, I have gone through the steps told in this video
https://www.youtube.com/watch?v=84Tu4eLTLVY
the code is below:
//-------------------------------------
#include <P18f458.h>
void main (void)
{
TRISB = 0;
for(;
{
portb = 0x55;
portb = 0xAA;
}
}
//-------------------------------------
the output file shows:
----------------------------------------------------------------------
Debug build of project `D:\picassemblyprojects\fuzoolC.mcp' started.
Language tool versions: MPASMWIN.exe v5.40, mplink.exe v4.38, mcc18.exe v3.37.01, mplib.exe v4.38
Preprocessor symbol `__DEBUG' is defined.
Wed May 23 17:20:43 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "D:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F458 /i"D:\Program Files\Microchip\mplabc18\v3.37.01\h" "fuzoolwalac.c" -fo="fuzoolwalac.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
D:\picassemblyprojects\fuzoolwalac.c:7:Error [1105] symbol 'portb' has not been defined
D:\picassemblyprojects\fuzoolwalac.c:7:Error [1101] lvalue required
D:\picassemblyprojects\fuzoolwalac.c:8:Error [1105] symbol 'portb' has not been defined
D:\picassemblyprojects\fuzoolwalac.c:8:Error [1101] lvalue required
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\picassemblyprojects\fuzoolC.mcp' failed.
Language tool versions: MPASMWIN.exe v5.40, mplink.exe v4.38, mcc18.exe v3.37.01, mplib.exe v4.38
Preprocessor symbol `__DEBUG' is defined.
Wed May 23 17:20:44 2012
----------------------------------------------------------------------
BUILD FAILED
To do so, I have gone through the steps told in this video
https://www.youtube.com/watch?v=84Tu4eLTLVY
the code is below:
//-------------------------------------
#include <P18f458.h>
void main (void)
{
TRISB = 0;
for(;
{
portb = 0x55;
portb = 0xAA;
}
}
//-------------------------------------
the output file shows:
----------------------------------------------------------------------
Debug build of project `D:\picassemblyprojects\fuzoolC.mcp' started.
Language tool versions: MPASMWIN.exe v5.40, mplink.exe v4.38, mcc18.exe v3.37.01, mplib.exe v4.38
Preprocessor symbol `__DEBUG' is defined.
Wed May 23 17:20:43 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "D:\Program Files\Microchip\mplabc18\v3.37.01\bin\mcc18.exe" -p=18F458 /i"D:\Program Files\Microchip\mplabc18\v3.37.01\h" "fuzoolwalac.c" -fo="fuzoolwalac.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
D:\picassemblyprojects\fuzoolwalac.c:7:Error [1105] symbol 'portb' has not been defined
D:\picassemblyprojects\fuzoolwalac.c:7:Error [1101] lvalue required
D:\picassemblyprojects\fuzoolwalac.c:8:Error [1105] symbol 'portb' has not been defined
D:\picassemblyprojects\fuzoolwalac.c:8:Error [1101] lvalue required
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\picassemblyprojects\fuzoolC.mcp' failed.
Language tool versions: MPASMWIN.exe v5.40, mplink.exe v4.38, mcc18.exe v3.37.01, mplib.exe v4.38
Preprocessor symbol `__DEBUG' is defined.
Wed May 23 17:20:44 2012
----------------------------------------------------------------------
BUILD FAILED