

_CONFIG(_CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF)

Static _code uint16_t _at(0x8008) configword2 = _WRT_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_LO & _LVP_OFF

Static _code uint16_t _at(0x8007) configword1 = _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF use full path in include as mplabx cannot find. If all else fails, please provide full source to reproduce the issue. This might get rid of the warning/error about _cinit. This version was pointed out in first post. There is only one instance of SDCC installed. The first attempt was what the config bits generator under memory views gave me. lines.Ĭode and at (like all non-standard keywords) have been superseeded by variants prefixed with double underscores: code and at(). Your first attempt seems to lack semi-colons at the end of the code char at(). At least, I don't see anything wrong with it at a glance.Ĭan you try adding a global/static variables to your code: The one in /usr/local/bin/sdcc may be too old and not support the #pragma config stuff. If pic14 does not have one, rather copy a suitable stdint.h to your project, check and ensure that it does what you want, and continue from there.Īre you sure that sdcc executes the installation from /usr/local/bin/sdcc?Ĭould it be that you have multiple versions installed?Ĭheck with which sdcc and /usr/local/bin/sdcc -v. It may work (since stdint.h only defines types and stuff that are identically useful on both pic14 and pic16), but I'd generally advise against doing it. Including pic16 (sixteen) stdint.h seems like an unintended hack. code and at (like all non-standard keywords) have been superseeded by variants prefixed with double underscores: _code and _at().

System: Linux version 3.13.0-24-generic running on AMD64 UTF-8 en_US (mplab)** Runtime: Java(TM) SE Runtime Environment 1.8.0_141-b15
