CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC24FJ256GB106 =>Info#300 More info: ** Division by z

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
salihonur



Joined: 21 Mar 2020
Posts: 22

View user's profile Send private message

PIC24FJ256GB106 =>Info#300 More info: ** Division by z
PostPosted: Sat Dec 05, 2020 5:11 pm     Reply with quote

I have a strange problem with const type definition while compiling for PIC24FJ256GB106. Same software can be compiled without any error and works fine with PIC18F46K80.

The compiler version is 5.091.

Here is the output:

Quote:

CLEAN SUCCESSFUL (total time: 2ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
make -f nbproject/Makefile-default.mk dist/default/production/NIGRA_PIC24.X.production.hex
make[2]: Entering directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
gnumkdir -p build/default/production
gnumkdir -p dist/default/production
"C:\PROGRA~2\PICC\CCSCON.exe" out="build/default/production" Main.c +FD +DF +CC +Y=9 +EA +DF +LN +T +A +M +J +Z -P #__PIC24FJ256GB106__=1
make[2]: *** [build/default/production/Main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Compiling D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\Main on 06-Ara-20 at 01:54
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:103:18: Warning#238 Duplicate #locate
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:127:2: Warning#238 Duplicate #locate
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\PCDxxxx.h:115:9: Warning#224 #warning need eds support
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUHardware.h:15:0: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUHardware.h:17:0: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUCoreDefines.h:16:11: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUCoreDefines.h:17:12: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\Config.h:43:51: Info#300 More info: ** Division by zero
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\Config.h:43:51: Error#44 Internal Error - Contact CCS
1 Errors, 7 Warnings.
Build Failed.
nbproject/Makefile-default.mk:115: recipe for target 'build/default/production/Main.o' failed
make[2]: Leaving directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUİLD FAILED (exit value 2, total time: 1s)


The error points below:
Code:
const int1  DEFAULT_DHCP_ENABLED                = 1;


If I change it like below:

Code:
#define  DEFAULT_DHCP_ENABLED                1


then I get another error below:

Quote:


CLEAN SUCCESSFUL (total time: 2ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
make -f nbproject/Makefile-default.mk dist/default/production/NIGRA_PIC24.X.production.hex
make[2]: Entering directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
gnumkdir -p build/default/production
gnumkdir -p dist/default/production
"C:\PROGRA~2\PICC\CCSCON.exe" out="build/default/production" Main.c +FD +DF +CC +Y=9 +EA +DF +LN +T +A +M +J +Z -P #__PIC24FJ256GB106__=1
Compiling D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\Main on 06-Ara-20 at 02:04
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:103:18: Warning#238 Duplicate #locate
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:127:2: Warning#238 Duplicate #locate
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\PCDxxxx.h:115:9: Warning#224 #warning need eds support
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUHardware.h:15:0: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUHardware.h:17:0: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUCoreDefines.h:16:11: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\MCUCoreDefines.h:17:12: Warning#225 Duplicate #define
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\Config.h:61:110: Error#27 Expression must evaluate to a constant
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\Config.h:66:95: Error#27 Expression must evaluate to a constant
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:34:34: Error#12 Undefined identifier -- read_eeprom
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:34:39: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:35:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:35:7: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:35:8: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:37:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:45:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:54:38: Error#117 Improper use of a function identifier -- read_eeprom
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:54:43: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:56:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:57:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:64:6: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:67:21: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:67:22: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:67:28: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:69:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:75:6: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:80:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:86:1: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:20: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:22: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:33: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:36: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:91:26: Error#32 Expecting a , or )
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:91:33: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:91:36: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:91:41: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:91:43: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:93:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:98:1: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:99:11: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:99:12: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:99:18: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:99:22: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:99:24: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:15: Info#300 More info: First Declaration of i
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:15: Error#31 Identifier is already used in this scope
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:17: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:20: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:22: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:33: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:100:36: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:104:13: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:104:18: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:104:21: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:104:35: Error#32 Expecting a , or )
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:104:42: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:106:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:113:14: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:114:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:114:9: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:114:13: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:15: Info#300 More info: First Declaration of i
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:13: Error#31 Identifier is already used in this scope
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:15: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:18: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:20: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:23: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:116:26: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:26: Error#32 Expecting a , or )
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:33: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:36: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:40: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:42: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:120:44: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:122:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:128:14: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:15: Info#300 More info: First Declaration of i
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:13: Error#31 Identifier is already used in this scope
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:15: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:18: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:20: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:23: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:129:26: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:13: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:17: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:19: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:22: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:36: Error#32 Expecting a , or )
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:133:43: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:135:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:135:12: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:135:16: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:136:1: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:143:14: Error#117 Improper use of a function identifier
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:144:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:144:9: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:144:13: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:5: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:8: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:87:15: Info#300 More info: First Declaration of i
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:13: Error#31 Identifier is already used in this scope
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:15: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:18: Error#48 Expecting a (
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:20: Error#43 Expecting a declaration
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\CoreLib\Eprom.c:145:23: Error#48 Expecting a (
100 Errors, 7 Warnings.
Build Failed.
nbproject/Makefile-default.mk:115: recipe for target 'build/default/production/Main.o' failed
make[2]: Leaving directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/ELEKTRONIK/FW ARGE/FW_K3_IoT_CONTROLLER/trunk/NIGRA_PIC24.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [build/default/production/Main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUİLD FAILED (exit value 2, total time: 2s)


Starts where:
Code:
const int16 DEFAULT_MODBUS_CONFIG               = (int16)(DEFAULT_MODBUS_BAUDRATE << 8) | DEFAULT_MODBUS_BITS;


The code file:
Code:

const int16 DEFAULT_FIRST_IO_NUMBER             = 0;
const int1  DEFAULT_DHCP_ENABLED                = 1;

const char  DEFAULT_NETWORK_IP[4]               = {192,168,1,100};
const char  DEFAULT_NETWORK_GATEWAY[4]          = {192,168,1,1};
const char  DEFAULT_NETWORK_NETMASK[4]          = {255,255,255,0};
const char  DEFAULT_NETWORK_MAC[6]              = {0x00,0x04,0xA3,0x00,0x00,0x01};
const int16 DEFAULT_NETWORK_TCP_PORT            = 1000;
const int16 DEFAULT_NETWORK_WEB_PORT            = 80;
const char  DEFAULT_DEVICE_NAME[]               = "NGR-RL12\0";

#define MODBUS_CFG_8N1                          0
#define MODBUS_CFG_8E1                          1
#define MODBUS_CFG_8N2                          2

const int8  DEFAULT_MODBUS_ID                   = 1;
const int8  DEFAULT_MODBUS_BAUDRATE             = 19;  // 2:2400, 4:4800, 9:9600, 19:19200, 38:38400, 57:57600, 115:115200
const int8  DEFAULT_MODBUS_BITS                 = MODBUS_CFG_8N1;
const int16 DEFAULT_MODBUS_CONFIG               = (int16)(DEFAULT_MODBUS_BAUDRATE << 8) | DEFAULT_MODBUS_BITS;
const int16 DEFAULT_MODBUS_TCP_PORT             = 502;

const int8  DEFAULT_CANBUS_ID                   = 1;
const int8  DEFAULT_CANBUS_BAUDRATE             = 5;  // 2:20K, 5:50K, 12:125K, 25:250K, 50:500K, 100:1M
const int16 DEFAULT_CANBUS_CONFIG               = (int16)(DEFAULT_CANBUS_BAUDRATE << 8) | 0x00;

#define TCP_BUFFER_SIZE                         22
#define TCP_LISTEN_SOCKETS                      2
#define SESSION_TIMEOUT                         120             // saniye (max 255 sn)
#define FIRMWARE_VERSION                        (FIRMWARE_VERSION_MAJOR << 8) | FIRMWARE_VERSION_MINOR


MCU config:
Code:
#include <24FJ256GB106.h>

#include "PCDxxxx.h"

#define __PIC24F__

#define __C30__

#define WIFI_MAX_SSID 32

#use delay(clock=32MHz,crystal=16MHz, USB_FULL)
//#use delay(internal=32MHz)

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES WINDIS                   //Watch Dog Timer in non-Window mode
#FUSES NOWRT                    //Program memory not write protected
#FUSES NOPROTECT                //Code not protected from reading
#FUSES NOJTAG                   //JTAG disabled
#FUSES DISUVREG                 //Internal USB 3.3V Regulator disabled
#FUSES IOL1WAY                  //Allows only one reconfiguration of peripheral pins
#FUSES NOOSCIO                  //OSC2 is clock output
#FUSES CKSFSM                   //Clock Switching is enabled, fail Safe clock monitor is enabled
#FUSES IESO                     //Internal External Switch Over mode enabled
#FUSES WPFP                     //Write/Erase Protect Page Start/End Location, set to last page or use WPFP=x to set page
#FUSES WPDIS                    //All Flash memory may be erased or written
#FUSES NOWPCFG                  //Configuration Words page is not erase/write-protected
#FUSES WPEND                    //Flash pages WPFP to Configuration Words page are write/erase protected

_________________
Compiler v5.091+ Windows 10
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Dec 06, 2020 2:30 am     Reply with quote

What happens if you change it to this ?
Quote:
const unsigned int8 DEFAULT_DHCP_ENABLED = 1;

or this ?
Quote:
unsigned int8 DEFAULT_DHCP_ENABLED = 1;
Ttelmah



Joined: 11 Mar 2010
Posts: 19512

View user's profile Send private message

PostPosted: Sun Dec 06, 2020 3:26 am     Reply with quote

It is not going to be the 'same software' compiled for the
18F46K80. You have several things being shown being loaded, that are
processor specific. The register definitions etc..

Your first error is in this file, which suggests it has a problem.
So, what is this line:

D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:103:18

I have a strong suspicion this is code moved from another compiler, without
having been modified. 'Const' on an ANSI compiler, is very different from
'const' using the default CCS configuration (protected RAM variable versus
a value stored in ROM).

There are huge differences between a #define, and a const. It is very
unlikely that you could switch between these. PCM has posted the
suggested replacements, but I think your code has major faults in the
files being loaded. Duplicate #defines and #locates are not being
caused by this problem.
salihonur



Joined: 21 Mar 2020
Posts: 22

View user's profile Send private message

PostPosted: Sun Dec 06, 2020 9:22 am     Reply with quote

PCM programmer wrote:
What happens if you change it to this ?
Quote:
const unsigned int8 DEFAULT_DHCP_ENABLED = 1;

or this ?
Quote:
unsigned int8 DEFAULT_DHCP_ENABLED = 1;


The first error is disappeared. Thanks.

I created an empty project for PIC24FJ and tested configuration first. I moved my software to the new platform. My main software is a modular type core based software like the image. All functions has own library. So only the proccessor files (MCULib) is changed when the MCU is changed. It is similar to Arduino platform. This is why I say "same". Of course some functions may be changed such as not supported read_eeprom(). But the error on "const" definition is interesting.

My main software was created on CCS from zero in 2013 by me. It is moved from PIC18F46K22 to PIC18F46K80 last year. Now trying to move to PIC24FJ. Not from another compiler.



Quote:
D:\ELEKTRONIK\FW ARGE\FW_K3_IoT_CONTROLLER\trunk\NIGRA_PIC24.X\MCULib\24FJ256GB106_registers.h:103:18


Above message points to:

Quote:
#word IPC0bits = 0x00A4
#word IPC0bits = 0x00A4


24FJ256GB106_registers.h
Code:

#word WREG0 = 0x0000
#word WREG1 = 0x0002
#word WREG2 = 0x0004
#word WREG3 = 0x0006
#word WREG4 = 0x0008
#word WREG5 = 0x000A
#word WREG6 = 0x000C
#word WREG7 = 0x000E
#word WREG8 = 0x0010
#word WREG9 = 0x0012
#word WREG10 = 0x0014
#word WREG11 = 0x0016
#word WREG12 = 0x0018
#word WREG13 = 0x001A
#word WREG14 = 0x001C
#word WREG15 = 0x001E

#word SPLIM = 0x0020

#word PCL = 0x002E

#word PCH = 0x0030

#word TBLPAG = 0x0032

#word PSVPAG = 0x0034

#word RCOUNT = 0x0036

#word SR = 0x0042

#word CORCON = 0x0044

#word DISICNT = 0x0052

#word AD1CON1 = 0x0320
#word AD1CON2 = 0x0322
#word AD1CON3 = 0x0324


#word PR1 = 0x0102
#word PR2 = 0x010C
#word PR3 = 0x010E
#word PR4 = 0x011A
#word PR5 = 0x011C

typedef struct
 {
   unsigned int INT0IF:1;
   unsigned int IC1IF:1;
   unsigned int OC1IF:1;
   unsigned int T1IF:1;
   unsigned int :1;
   unsigned int IC2IF:1;
   unsigned int OC2IF:1;
   unsigned int T2IF:1;
   unsigned int T3IF:1;
   unsigned int SPF1IF:1;
   unsigned int SPI1IF:1;
   unsigned int U1RXIF:1;
   unsigned int U1TXIF:1;
   unsigned int AD1IF:1;
   unsigned int :1;
   unsigned int :1;
} IFS0BITS;
IFS0BITS IFS0bits;
#word IFS0bits = 0x0084
#word IFS0 = 0x0084


typedef struct
 {
   unsigned int :1;
   unsigned int TCS:1;
   unsigned int TSYNC:1;
   unsigned int :1;
   unsigned int :1;
   unsigned int TCKPS:2;
   unsigned int TGATE:1;
   unsigned int :5;
   unsigned int TSIDL:1;
   unsigned int :1;
   unsigned int TON:1;
} T1CONBITS;
T1CONBITS T1CONbits;
#word T1CONbits = 0x0104
#word T1CON = 0x0104

typedef struct
 {
   unsigned int INT0IP:3;
   unsigned int :1;
   unsigned int IC1IP:3;
   unsigned int :1;
   unsigned int OC1IP:3;
   unsigned int :1;
   unsigned int T1IP:3;
   unsigned int TON:1;
} IPC0BITS;
IPC0BITS IPC0bits;
#word IPC0bits = 0x00A4
#word IPC0bits = 0x00A4

typedef struct
 {
   unsigned int INT0IE:1;
   unsigned int IC1IE:1;
   unsigned int OC1IE:1;
   unsigned int T1IE:1;
   unsigned int :1;
   unsigned int IC2IE:1;
   unsigned int OC2IE:1;
   unsigned int T2IE:1;
   unsigned int T3IE:1;
   unsigned int SPF1IE:1;
   unsigned int SPI1IE:1;
   unsigned int U1RXIE:1;
   unsigned int U1TXIE:1;
   unsigned int AD1IE:1;
   unsigned int :2;
} IEC0BITS;
IEC0BITS IEC0bits;
#word IEC0bits = 0x0094
#word IEC0bits = 0x0094

#word TMR1 = 0x0100


///////////////////////////////



typedef struct
 {
   unsigned int TRISA0:1;
   unsigned int TRISA1:1;
   unsigned int TRISA2:1;
   unsigned int TRISA3:1;
   unsigned int TRISA4:1;
   unsigned int TRISA5:1;
   unsigned int TRISA6:1;
   unsigned int TRISA7:1;
   unsigned int :1;
   unsigned int TRISA9:1;
   unsigned int TRISA10:1;
   unsigned int :3;
   unsigned int TRISA14:1;
   unsigned int TRISA15:1;
} TRISABITS;
TRISABITS TRISAbits;
#word TRISAbits = 0x02C0
#word TRISA = 0x02C0

typedef struct
 {
   unsigned int TRISB0:1;
   unsigned int TRISB1:1;
   unsigned int TRISB2:1;
   unsigned int TRISB3:1;
   unsigned int TRISB4:1;
   unsigned int TRISB5:1;
   unsigned int TRISB6:1;
   unsigned int TRISB7:1;
   unsigned int TRISB8:1;
   unsigned int TRISB9:1;
   unsigned int TRISB10:1;
   unsigned int TRISB11:1;
   unsigned int TRISB12:1;
   unsigned int TRISB13:1;
   unsigned int TRISB14:1;
   unsigned int TRISB15:1;
} TRISBBITS;
TRISBBITS TRISBbits;
#word TRISBbits = 0x02C8
#word TRISB = 0x02C8

typedef struct
 {
   unsigned int :1;
   unsigned int TRISC1:1;
   unsigned int TRISC2:1;
   unsigned int TRISC3:1;
   unsigned int TRISC4:1;
   unsigned int :7;
   unsigned int TRISC12:1;
   unsigned int TRISC13:1;
   unsigned int TRISC14:1;
   unsigned int TRISC15:1;
} TRISCBITS;
TRISCBITS TRISCbits;
#word TRISCbits = 0x02D0
#word TRISC = 0x02D0

typedef struct
 {
   unsigned int TRISD0:1;
   unsigned int TRISD1:1;
   unsigned int TRISD2:1;
   unsigned int TRISD3:1;
   unsigned int TRISD4:1;
   unsigned int TRISD5:1;
   unsigned int TRISD6:1;
   unsigned int TRISD7:1;
   unsigned int TRISD8:1;
   unsigned int TRISD9:1;
   unsigned int TRISD10:1;
   unsigned int TRISD11:1;
   unsigned int TRISD12:1;
   unsigned int TRISD13:1;
   unsigned int TRISD14:1;
   unsigned int TRISD15:1;
} TRISDBITS;
TRISDBITS TRISDbits;
#word TRISDbits = 0x02D8
#word TRISD = 0x02D8

typedef struct
 {
   unsigned int TRISE0:1;
   unsigned int TRISE1:1;
   unsigned int TRISE2:1;
   unsigned int TRISE3:1;
   unsigned int TRISE4:1;
   unsigned int TRISE5:1;
   unsigned int TRISE6:1;
   unsigned int TRISE7:1;
   unsigned int TRISE8:1;
   unsigned int TRISE9:1;
   unsigned int :6;
} TRISEBITS;
TRISEBITS TRISEbits;
#word TRISEbits = 0x02E0
#word TRISE = 0x02E0


typedef struct
 {
   unsigned int TRISF0:1;
   unsigned int TRISF1:1;
   unsigned int TRISF2:1;
   unsigned int TRISF3:1;
   unsigned int TRISF4:1;
   unsigned int TRISF5:1;
   unsigned int :6;
   unsigned int TRISF12:1;
   unsigned int TRISF13:1;
   unsigned int :2;
} TRISFBITS;
TRISFBITS TRISFbits;
#word TRISFbits = 0x02E8
#word TRISF = 0x02E8

typedef struct
 {
   unsigned int TRISG0:1;
   unsigned int TRISG1:1;
   unsigned int TRISG2:1;
   unsigned int TRISG3:1;
   unsigned int :2;
   unsigned int TRISG6:1;
   unsigned int TRISG7:1;
   unsigned int TRISG8:1;
   unsigned int TRISG9:1;
   unsigned int :2;
   unsigned int TRISG12:1;
   unsigned int TRISG13:1;
   unsigned int TRISG14:1;
   unsigned int TRISG15:1;
} TRISGBITS;
TRISGBITS TRISGbits;
#word TRISGbits = 0x02F0
#word TRISG = 0x02F0


typedef struct
 {
   unsigned int LATA0:1;
   unsigned int LATA1:1;
   unsigned int LATA2:1;
   unsigned int LATA3:1;
   unsigned int LATA4:1;
   unsigned int LATA5:1;
   unsigned int LATA6:1;
   unsigned int LATA7:1;
   unsigned int :1;
   unsigned int LATA9:1;
   unsigned int LATA10:1;
   unsigned int :3;
   unsigned int LATA14:1;
   unsigned int LATA15:1;
} LATABITS;
LATABITS LATAbits;
#word LATAbits = 0x02C4
#word LATA = 0x02C4

typedef struct
 {
   unsigned int LATB0:1;
   unsigned int LATB1:1;
   unsigned int LATB2:1;
   unsigned int LATB3:1;
   unsigned int LATB4:1;
   unsigned int LATB5:1;
   unsigned int LATB6:1;
   unsigned int LATB7:1;
   unsigned int LATB8:1;
   unsigned int LATB9:1;
   unsigned int LATB10:1;
   unsigned int LATB11:1;
   unsigned int LATB12:1;
   unsigned int LATB13:1;
   unsigned int LATB14:1;
   unsigned int LATB15:1;
} LATBBITS;
LATBBITS LATBbits;
#word LATBbits = 0x02CC
#word LATB = 0x02CC

typedef struct
 {
   unsigned int :1;
   unsigned int LATC1:1;
   unsigned int LATC2:1;
   unsigned int LATC3:1;
   unsigned int LATC4:1;
   unsigned int :7;
   unsigned int LATC12:1;
   unsigned int LATC13:1;
   unsigned int LATC14:1;
   unsigned int LATC15:1;
} LATCBITS;
LATCBITS LATCbits;
#word LATCbits = 0x02D4
#word LATC = 0x02D4

typedef struct
 {
   unsigned int LATD0:1;
   unsigned int LATD1:1;
   unsigned int LATD2:1;
   unsigned int LATD3:1;
   unsigned int LATD4:1;
   unsigned int LATD5:1;
   unsigned int LATD6:1;
   unsigned int LATD7:1;
   unsigned int LATD8:1;
   unsigned int LATD9:1;
   unsigned int LATD10:1;
   unsigned int LATD11:1;
   unsigned int LATD12:1;
   unsigned int LATD13:1;
   unsigned int LATD14:1;
   unsigned int LATD15:1;
} LATDBITS;
LATDBITS LATDbits;
#word LATDbits = 0x02DC
#word LATD = 0x02DC

typedef struct
 {
   unsigned int LATE0:1;
   unsigned int LATE1:1;
   unsigned int LATE2:1;
   unsigned int LATE3:1;
   unsigned int LATE4:1;
   unsigned int LATE5:1;
   unsigned int LATE6:1;
   unsigned int LATE7:1;
   unsigned int LATE8:1;
   unsigned int LATE9:1;
   unsigned int :6;
} LATEBITS;
LATEBITS LATEbits;
#word LATEbits = 0x02E4
#word LATE = 0x02E4


typedef struct
 {
   unsigned int LATF0:1;
   unsigned int LATF1:1;
   unsigned int LATF2:1;
   unsigned int LATF3:1;
   unsigned int LATF4:1;
   unsigned int LATF5:1;
   unsigned int :6;
   unsigned int LATF12:1;
   unsigned int LATF13:1;
   unsigned int :2;
} LATFBITS;
LATFBITS LATFbits;
#word LATFbits = 0x02EC
#word LATF = 0x02EC

typedef struct
 {
   unsigned int LATG0:1;
   unsigned int LATG1:1;
   unsigned int LATG2:1;
   unsigned int LATG3:1;
   unsigned int :2;
   unsigned int LATG6:1;
   unsigned int LATG7:1;
   unsigned int LATG8:1;
   unsigned int LATG9:1;
   unsigned int :2;
   unsigned int LATG12:1;
   unsigned int LATG13:1;
   unsigned int LATG14:1;
   unsigned int LATG15:1;
} LATGBITS;
LATGBITS LATGbits;
#word LATGbits = 0x02F4
#word LATG = 0x02F4


typedef struct
 {
   unsigned int RA0:1;
   unsigned int RA1:1;
   unsigned int RA2:1;
   unsigned int RA3:1;
   unsigned int RA4:1;
   unsigned int RA5:1;
   unsigned int RA6:1;
   unsigned int RA7:1;
   unsigned int :1;
   unsigned int RA9:1;
   unsigned int RA10:1;
   unsigned int :3;
   unsigned int RA14:1;
   unsigned int RA15:1;
} RABITS;
RABITS RAbits;
#word RAbits = 0x02C2
#word RA = 0x02C2

typedef struct
 {
   unsigned int RB0:1;
   unsigned int RB1:1;
   unsigned int RB2:1;
   unsigned int RB3:1;
   unsigned int RB4:1;
   unsigned int RB5:1;
   unsigned int RB6:1;
   unsigned int RB7:1;
   unsigned int RB8:1;
   unsigned int RB9:1;
   unsigned int RB10:1;
   unsigned int RB11:1;
   unsigned int RB12:1;
   unsigned int RB13:1;
   unsigned int RB14:1;
   unsigned int RB15:1;
} RBBITS;
RBBITS RBbits;
#word RBbits = 0x02CA
#word RB = 0x02CA

typedef struct
 {
   unsigned int :1;
   unsigned int RC1:1;
   unsigned int RC2:1;
   unsigned int RC3:1;
   unsigned int RC4:1;
   unsigned int :7;
   unsigned int RC12:1;
   unsigned int RC13:1;
   unsigned int RC14:1;
   unsigned int RC15:1;
} RCBITS;
RCBITS RCbits;
#word RCbits = 0x02D2
#word RC = 0x02D2

typedef struct
 {
   unsigned int RD0:1;
   unsigned int RD1:1;
   unsigned int RD2:1;
   unsigned int RD3:1;
   unsigned int RD4:1;
   unsigned int RD5:1;
   unsigned int RD6:1;
   unsigned int RD7:1;
   unsigned int RD8:1;
   unsigned int RD9:1;
   unsigned int RD10:1;
   unsigned int RD11:1;
   unsigned int RD12:1;
   unsigned int RD13:1;
   unsigned int RD14:1;
   unsigned int RD15:1;
} RDBITS;
RDBITS RDbits;
#word RDbits = 0x02DA
#word RD = 0x02DA

typedef struct
 {
   unsigned int RE0:1;
   unsigned int RE1:1;
   unsigned int RE2:1;
   unsigned int RE3:1;
   unsigned int RE4:1;
   unsigned int RE5:1;
   unsigned int RE6:1;
   unsigned int RE7:1;
   unsigned int RE8:1;
   unsigned int RE9:1;
   unsigned int :6;
} REBITS;
REBITS REbits;
#word REbits = 0x02E2
#word RE = 0x02E2


typedef struct
 {
   unsigned int RF0:1;
   unsigned int RF1:1;
   unsigned int RF2:1;
   unsigned int RF3:1;
   unsigned int RF4:1;
   unsigned int RF5:1;
   unsigned int :6;
   unsigned int RF12:1;
   unsigned int RF13:1;
   unsigned int :2;
} RFBITS;
RFBITS RFbits;
#word RFbits = 0x02EA
#word RF = 0x02EA

typedef struct
 {
   unsigned int RG0:1;
   unsigned int RG1:1;
   unsigned int RG2:1;
   unsigned int RG3:1;
   unsigned int :2;
   unsigned int RG6:1;
   unsigned int RG7:1;
   unsigned int RG8:1;
   unsigned int RG9:1;
   unsigned int :2;
   unsigned int RG12:1;
   unsigned int RG13:1;
   unsigned int RG14:1;
   unsigned int RG15:1;
} RGBITS;
RGBITS RGbits;
#word RGbits = 0x02F2
#word RG = 0x02F2

_________________
Compiler v5.091+ Windows 10
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Dec 06, 2020 11:17 am     Reply with quote

Was the 24FJ256GB106_registers.h file generated by the CCS compiler ?
If so, the generation is buggy.

The pattern used by the compiler is normally this:
Code:

#word IFS0bits = 0x0084
#word IFS0 = 0x0084

#word T1CONbits = 0x0104
#word T1CON = 0x0104

Etc.

First it defines the 'bits' address, and then the register address.

So when it does this, it's clearly buggy:
Quote:

#word IPC0bits = 0x00A4
#word IPC0bits = 0x00A4


You need to manually edit the 24FJ256GB106_registers.h file, and remove
'bits' from the 2nd line of the duplicate declaration, so it looks like this:
Code:

#word IPC0bits = 0x00A4
#word IPC0 = 0x00A4

Do that editing every place where it's needed.
Ttelmah



Joined: 11 Mar 2010
Posts: 19512

View user's profile Send private message

PostPosted: Sun Dec 06, 2020 1:47 pm     Reply with quote

I don't know where he has got the file from. His compiler generates the IPC0
definitions as:

Code:

#word IPC0 = 0x0A4
#bit    INT0IP0 = IPC0.0
#bit    INT0IP1 = IPC0.1
#bit    INT0IP2 = IPC0.2
#bit    IC1IP0 = IPC0.4
#bit    IC1IP1 = IPC0.5
#bit    IC1IP2 = IPC0.6
#bit    OC1IP0 = IPC0.8
#bit    OC1IP1 = IPC0.9
#bit    OC1IP2 = IPC0.10
#bit    T1IP0 = IPC0.12
#bit    T1IP1 = IPC0.13
#bit    T1IP2 = IPC0.14


Suggests possibly he has generated the file with a very old compiler, but
I've tried going back 50 versions and all created it correctly...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group