After a recent update, compile fails and an error appears.
Post compiler messages.
Code: Select all
Target folder: C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program
Source name: C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.fcfx
Title:
Description:
Device: PIC16.24F.24FJ512GA606
Generated by: Flowcode v10.0.3.31
Date: Wednesday, June 28, 2023 13:40:33
Users: 1
Registered to: seokgi (1234)
Licence key: 1234
https://www.flowcode.co.uk
Using <PICkit4 IPE External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\pic16\" "Auto_Lifting_Lamp_CTL_230619-01-Up_Speed" "C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\" "24FJ512GA606"
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>REM CRC: 54CD51B8F484283E91B3AD9DE6F4F50C418D34178E0D3D0BD2659E1DA9D69F58D3529BB9468CFC85641793EB31F94A5F16CBA8333F125C7188ED8742865A1BBCF23BFF3064C25A11BAFA61B701B8D0469A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF59733FFBBAA9F3C7B5EDF8CE67A1404D62B8878703E3665631EAF018A0B6018ACC8FF364DB19D83FB389861B26F27604A1F36255EB2E4245255911F067119BEF7D5F89C133B93261A29D848A5DAD12E38FF9E5CFBC45304482C3050DA273BE4EE70C46F1DEBB5CE90D191F7CB01DEE82F091CE1AC860B44C66CFC63B583D3C0065E5746CE888A1719
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>REM REVISION: 1.0
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>REM GUID: 7821ABE5-9E21-4744-81B7-3FF600B75DB7
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>REM DATE: 08\08\2022
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>REM DIR: FCD\PIC16\batchfiles\pic16_C30_comp.bat
C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program>xc16-gcc -c -mcpu="24FJ512GA606" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\Program Files (x86)\Flowcode\Compilers\pic16\support\h" -I"C:\Program Files (x86)\Flowcode\Compilers\pic16\" -std=gnu99 "Auto_Lifting_Lamp_CTL_230619-01-Up_Speed".c -o "Auto_Lifting_Lamp_CTL_230619-01-Up_Speed".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:422:0,
from C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.h:979,
from Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_FLASH.c: In function 'ReadFlash':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_FLASH.c:452:33: warning: cast to pointer from integer of different size
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:518:0,
from C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.h:979,
from Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Init_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:148:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:148:3: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Uninit_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:256:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Start_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:280:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:283:3: error: 'LATA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Restart_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:317:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:321:3: error: 'LATA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_Stop_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:355:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:355:3: error: 'LATA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_TxByte_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:401:5: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:405:5: error: 'LATA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:413:12: error: 'PORTA' undeclared (first use in this function)
In file included from C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\includes.c:518:0,
from C:\Share\Project\Ing\201008-SJ_HiTech-Auto_Lifting_Lamp_CTL\Program\Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.h:979,
from Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:20:
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c: In function 'FC_CAL_I2C_Master_RxByte_1':
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:474:3: error: 'TRISA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:483:12: error: 'PORTA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_I2C.c:489:4: error: 'LATA' undeclared (first use in this function)
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c: In function 'FCD_0f641_DS18B20__WriteDevice':
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:3889:3: warning: passing argument 2 of 'FCD_0bbd1_One_Wire__MatchROM' discards qualifiers from pointer target type
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:458:6: note: expected 'MX_UINT8 *' but argument is of type 'volatile MX_UINT8 *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:3900:3: warning: passing argument 2 of 'FCD_0bbd1_One_Wire__MatchROM' discards qualifiers from pointer target type
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:458:6: note: expected 'MX_UINT8 *' but argument is of type 'volatile MX_UINT8 *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c: In function 'FCD_0f641_DS18B20__GetTemperature':
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:4232:3: warning: passing argument 2 of 'FCD_0bbd1_One_Wire__MatchROM' discards qualifiers from pointer target type
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:458:6: note: expected 'MX_UINT8 *' but argument is of type 'volatile MX_UINT8 *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c: In function 'FCD_0f641_DS18B20__SampleAddressedDevice':
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:4314:3: warning: passing argument 2 of 'FCD_0bbd1_One_Wire__MatchROM' discards qualifiers from pointer target type
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:458:6: note: expected 'MX_UINT8 *' but argument is of type 'volatile MX_UINT8 *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c: In function 'FCM_Cal_YUL262RTX':
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11142:5: warning: passing argument 1 of 'FCD_01211_CircularBuffer1__GetArray' discards qualifiers from pointer target type
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:3187:6: note: expected 'MX_UINT8 *' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11151:5: warning: passing argument 1 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11151:5: warning: passing argument 4 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11152:5: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:676:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11157:5: warning: passing argument 1 of 'FCI_MIDSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:140:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11157:5: warning: passing argument 5 of 'FCI_MIDSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:140:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11158:5: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:676:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11163:5: warning: passing argument 1 of 'FCI_RIGHTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:193:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11163:5: warning: passing argument 4 of 'FCI_RIGHTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:193:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:11164:5: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:676:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c: In function 'main':
Auto_Lifting_Lamp_CTL_230619-01-Up_Speed.c:13730:2: warning: 'return' with a value, in function returning void
Error returned from [xc16-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat reported error code 0x1
Autoclose turned off
FINISHED