I tried to communicate between an RS-485 RTU-based Modbus master and slave, but I am getting the following error.
Using <2.50> user settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files\Microchip\xc8\v2.50\pic\bin\" 18F57Q84 "C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program\" "260810-18F57Q84-2"
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589A9CE866D3EBD48DE4910375451077F45562AF2F62E9AB6760C3CAEE8E7DA6987B08235BD4F165DE350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE464087EABAE4073CCE8590A2034B265B899B535CCC0630944A53779878588293DF04F96FE36F6B2B
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM REVISION: 5.0
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DATE: 12\06\2025
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>"C:\Program Files\Microchip\xc8\v2.50\bin\xc8.exe" --chip=18F57Q84 "260810-18F57Q84-2.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files\Microchip\xc8\v2.50\pic\bin\picc18 @C:\Users\daniel\AppData\Local\Temp\xcAs3vc.\xc8_tmp_0.cmd [ --chip=18F57Q84 260810-18F57Q84-2.c --double=32 --float=32 --msgdisable=359,1273,1388 ]
Microchip MPLAB XC8 C Compiler V2.50
Build date: Jul 25 2024
Part Support Version: 2.50
Copyright (C) 2024 Microchip Technology Inc.
License type: Node Configuration
legacy HI-TECH support is deprecated and will be discontinued in a future release; consult the release notes for more details
legacy C90 library is deprecated and will be discontinued in a future release; consult the release notes for more details
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_UpdateBaud_1()
2334: INTCONbits.PEIE = 1;
^ (192) undefined identifier "INTCONbits"
^ (196) struct/union required
2335: INTCONbits.GIE = 1;
^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
PIC18F57Q84 UART Error
-
seokgi
- Posts: 242
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 1:43 pm
- Has thanked: 8 times
- Been thanked: 9 times
Re: PIC18F57Q84 UART Error
I tried to communicate between an RS-485 RTU-based Modbus master and slave, but I am getting the following error.
Using <2.50> user settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files\Microchip\xc8\v2.50\pic\bin\" 18F57Q84 "C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program\" "260810-18F57Q84-2"
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589A9CE866D3EBD48DE4910375451077F45562AF2F62E9AB6760C3CAEE8E7DA6987B08235BD4F165DE350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE464087EABAE4073CCE8590A2034B265B899B535CCC0630944A53779878588293DF04F96FE36F6B2B
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM REVISION: 5.0
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DATE: 12\06\2025
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>"C:\Program Files\Microchip\xc8\v2.50\bin\xc8.exe" --chip=18F57Q84 "260810-18F57Q84-2.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files\Microchip\xc8\v2.50\pic\bin\picc18 @C:\Users\daniel\AppData\Local\Temp\xcAs3vc.\xc8_tmp_0.cmd [ --chip=18F57Q84 260810-18F57Q84-2.c --double=32 --float=32 --msgdisable=359,1273,1388 ]
Microchip MPLAB XC8 C Compiler V2.50
Build date: Jul 25 2024
Part Support Version: 2.50
Copyright (C) 2024 Microchip Technology Inc.
License type: Node Configuration
legacy HI-TECH support is deprecated and will be discontinued in a future release; consult the release notes for more details
legacy C90 library is deprecated and will be discontinued in a future release; consult the release notes for more details
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_UpdateBaud_1()
2334: INTCONbits.PEIE = 1;
^ (192) undefined identifier "INTCONbits"
^ (196) struct/union required
2335: INTCONbits.GIE = 1;
^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
Using <2.50> user settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files\Microchip\xc8\v2.50\pic\bin\" 18F57Q84 "C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program\" "260810-18F57Q84-2"
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589A9CE866D3EBD48DE4910375451077F45562AF2F62E9AB6760C3CAEE8E7DA6987B08235BD4F165DE350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE464087EABAE4073CCE8590A2034B265B899B535CCC0630944A53779878588293DF04F96FE36F6B2B
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM REVISION: 5.0
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DATE: 12\06\2025
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
C:\Share_KDT2\!Project_Ing\Smart_Farm\260323-Motor_Feed_Back_Current_Dectect\V003_Motor_Feed_Back_ACS712\Program>"C:\Program Files\Microchip\xc8\v2.50\bin\xc8.exe" --chip=18F57Q84 "260810-18F57Q84-2.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files\Microchip\xc8\v2.50\pic\bin\picc18 @C:\Users\daniel\AppData\Local\Temp\xcAs3vc.\xc8_tmp_0.cmd [ --chip=18F57Q84 260810-18F57Q84-2.c --double=32 --float=32 --msgdisable=359,1273,1388 ]
Microchip MPLAB XC8 C Compiler V2.50
Build date: Jul 25 2024
Part Support Version: 2.50
Copyright (C) 2024 Microchip Technology Inc.
License type: Node Configuration
legacy HI-TECH support is deprecated and will be discontinued in a future release; consult the release notes for more details
legacy C90 library is deprecated and will be discontinued in a future release; consult the release notes for more details
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_UpdateBaud_1()
2334: INTCONbits.PEIE = 1;
^ (192) undefined identifier "INTCONbits"
^ (196) struct/union required
2335: INTCONbits.GIE = 1;
^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1
Autoclose turned off
FINISHED
-
Steve-Matrix
- Matrix Staff
- Posts: 2007
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 300 times
- Been thanked: 465 times
Re: PIC18F57Q84 UART Error
Please post your project (.fcfx) and the generated .c file as that will help us determine the issue.