Electronics > Microcontrollers
Good SDCC for PIC tutorial?
(1/2) > >>
rudika:
Hi,

I'm beginner in programing microcontroller. I want to learn programing PIC mirocontroller in C language. I bought Microchip Pickit2 programmer with Low Pin Count Demo Board. I planing to use demo board to learn C language. I try to search tutorials for SDCC but didn't found anything :'(. I'm using Linux operating system and I don't want to use any demo, cracked or restricted in function C compiler.

Rudolf
Psi:
This is the first time i've heard the abbreviation SDCC which may explain why you're having problems searching for it.

I'm also not aware of many linux tools for PIC's, most of the time when you hear of people working with micros under linux they are using avrs with avrgcc.

Maybe someone with more PIC experience can help
adam1213:
which pic are you using?

the microchip compiler for some pics is based on a modified version of gcc.

Last time I tried SDCC i found it fairly limited in terms of lack of support for passing structs easily (it is still possible though) and lack of support for function pointers.
alm:

--- Quote from: adam1213 on February 12, 2011, 07:11:07 am ---the microchip compiler for some pics is based on a modified version of gcc.

--- End quote ---
Isn't that just for PIC32?


--- Quote from: adam1213 on February 12, 2011, 07:11:07 am ---Last time I tried SDCC i found it fairly limited in terms of lack of support for passing structs easily (it is still possible though) and lack of support for function pointers.

--- End quote ---
Sdcc definitely seems less mature and supported than avr-gcc. I think there is also a gcc port for msp430, not sure how mature that is. I MPLAB X is available for Linux, but the compilers are probably feature limited after a trial period (no optimizations).

My suggestion for a free, full-featured C compiler would probably to switch MCU vendor, unless there is some other compiler for PIC < 32 I'm not aware of. I know avr-gcc is almost the standard C compiler for AVR, certainly in the hobbyist community, and is well supported by the community. Mspgcc also seems to be fairly popular for MSP430 development. Same with arm-gcc. No idea about other architectures like 8051, STM8 and whatever NEC is pushing.
oPossum:
Microchip has two GCC C compilers. One is for PIC32 (32 bit) and the other is for PIC24H, PIC24F, dsPIC30 and dsPIC33 (16 bit).
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod