Non working MPLAM since reinstall

Discussion in 'Programmer's Corner' started by FroceMaster, Mar 24, 2013.

  1. FroceMaster

    Thread Starter Well-Known Member

    Jan 28, 2012
    Have reinstalled my Windows.
    Now the MPLAB 8.88 will not build the HEX file correct.
    Have NOT changed anything in the source code.
    It writes this when Building
    Code ( (Unknown Language)):
    2. Memory Summary:
    3.     Program space        used  14DFh (  5343) of  2000h words   ( 65.2%)
    4.     Data space           used    BCh (   188) of   200h bytes   ( 36.7%)
    5.     EEPROM space         None available
    6.     Configuration bits   used     1h (     1) of     2h words   ( 50.0%)
    7.     ID Location space    used     0h (     0) of     4h bytes   (  0.0%)
    9. Running this compiler in PRO mode, with Omniscient Code Generation enabled,
    10. produces code which is typically 40% smaller than in Free mode.
    11. The MPLAB XC8 PRO compiler output for this code could be 2022 words smaller.
    12. See [URL=""][/URL] for more information.
    As u can see, the config bit is just one, it needs one,
    Have i installed something wrong or some setting ??
    Last edited: Mar 24, 2013
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    It is just saying you have only configured one of the two contain words fir the device you are using. what device would that be? Does the datasheet list two configuration words?
  3. FroceMaster

    Thread Starter Well-Known Member

    Jan 28, 2012
    yes the datasheet have 2 configs.
    and it Works now, when i installed and older compiler, the XC version did not Work, så i found HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83
    just forgot that was the one i used before.
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    Using XC8, did you specify the configuration using pragmas?
    Code ( (Unknown Language)):
    1. #pragma config WDTE=OFF
    2. #pragma config FOSC=INTOSC
    or were you using the older, HiTech syntax?
    Code ( (Unknown Language)):
  5. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    When MPLAB build a project it builds all the dot-c files listed as source files.

    If your source code is not selected into the project MPLAB will not build it.

    (Note dot h files get referenced inside dot c files and the project does not need any dot h files to be referenced. The only reason to do so is to include them in text searches.)