Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

What did I do wrong to get this all?

2009-12-29
2013-03-12
  • F.A. Pinkse
    F.A. Pinkse
    2009-12-29

    Hi All,

    I just installed anoteher C compiler for my pi16f874 project.
    Code::blocks, SDCC and GPULTILS
    All from the site of origin, so I assume they are the latest stable.

    To compare it with the one I use currently, Sourceboost..

    When I compile this:

        #include <pic/pic16f874.h>
        void main(){}

    On building this I get this in my Build Log:
    --------- Build: Release in first test ----------

    Compiling: firsttest.c
    Linking native: bin\Release\firsttest.hex
    message: using default linker script "C:\Program Files\gputils\lkr\16f874.lkr"
    warning: relocation of section "UDL_idata_0" failed, relocating to a shared memory location
    warning: relocation of section "ID_idata_0" failed, relocating to a shared memory location
    Output size is 1.20 KB
    Process terminated with status 0 (0 minutes, 4 seconds)
    0 errors, 0 warnings

    Also my hex file has these as the last three lines:
    :10018000AE0FAF03AF0A8A110000A520AC002D0806
    :10019000AF002C08080001340034D43400343C345F
    :0A01A000003401340034080000347C
    :00000001FF

    What did I forgot to do or did wrong to get this on an 'empty' program?

    Thanks,

    Frans.