#2160 problems in linux with sdcc and pic18f26j50

open
nobody
None
PIC16
5
2013-12-17
2013-05-08
TuxD3v
No

hi guys,
i am starting a project with 18f26j50 pic and with code::blocks...i don find the header file pic18f26j50 in any place :S

this header exists in pinguino project, but not in sdcc, do you know the version of sdcc that suport it?
this processor starts to be very widly used...
i have version 3.1 of sdcc

thanks in advance

regards
tux

Discussion

  • voxspox

    voxspox - 2013-09-19

    hi,

    I'm currently working with pic18f25k20. Support for this one was included in the current stable sdcc 3.3. In this version there is also a header file for your uC.

    use #include <pic16/pic18f25k20.h>

    knut

     
  • Diego Herranz

    Diego Herranz - 2013-09-19

    As of sdcc 3.3, pic18f26j50 is supported. Don't know when was added, but it's recommended that you update to sdcc 3.3 as a lot of improvements are made with every new version. Use the last gputils version too.

    You can find the header here.

    Anyway, it's recommended that you only use #include <pic18fregs.h> in your code and sdcc includes the apropriate header for your device automatically. This way, your code is more portable.

    Don't forget to specify your device and add --use-non-free because PIC devices headers are not completely free (as in free speech).

    Example:
    $ sdcc --use-non-free -mpic16 -p18f26j50 main.c

     
    Last edit: Diego Herranz 2013-09-19
  • Philipp Klaus Krause

    • Category: Preprocessor --> PIC16
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks