User forums > Embedded development

C::B for Microchip MCUs?


I quite like the Code Blocks environment and was wondering, is it not possible to include support for the PIC families in it? I can see a lot of other platforms are already there.

What support do you need?
It should currently be possible to do this if you do these steps:
1. Install the compiler
2. Set it up inside codeblocks
3. Create empty project which uses this compiler
4. Add files
5. Setup build options for your device
6. Add post build commands to do firmware gathering or/and upload in your environment.
7. enjoy

If you need to do these steps often you can write a wizard template script which automates the stuff above and then provide a patch for inclusion in the C::B releases.

A google search on "codeblocks PIC compiler" returned the following pages that should help you out configuring CB with SDCC for use with PIC uControllers:

If you do not know what SDCC is then have a look at the following main SDCC page:

You can search the CB forums for "SDCC" or the compiler you want to use to see if there are details on configuring it for use with CB.

FYI: The SDCC only supports a very small sub-set of Microchip MCUs.

Tim S.


[0] Message Index

Go to full version