User forums > Using Code::Blocks
Using CodeBlocks with Digilent Chipkit Max32
mogplus88:
Hi, noob question. Is it possible to set up CB to program a Chipkit Max32? I'm assuming it would require setting up the correct toolchain for Chipkit (MCB32 tools?...) in CB so that references to Max32 register names and things would compile okay. An uploader would also be required, like avrdude for Atmel boards. But once that's all done Bob's your mother's brother, I'm guessing.
Thanks,
Ian
stahta01:
--- Quote from: mogplus88 on September 30, 2016, 03:20:49 pm ---Hi, noob question. Is it possible to set up CB to program a Chipkit Max32? I'm assuming it would require setting up the correct toolchain for Chipkit (MCB32 tools?...) in CB so that references to Max32 register names and things would compile okay. An uploader would also be required, like avrdude for Atmel boards.
Thanks,
Ian
--- End quote ---
That sounds about right; might or might NOT be able to get the debugger to work inside Code::Blocks.
Tim S.
mogplus88:
With a a bit more delving I think it is currently not possible. It seems CB only supports known compilers, and the Chipkit compiler isn't one of them. I haven't been able to find a way to add a new compiler to the list of supported compilers, not that surprising really as a modification like that could be very complex and may impact other functionality in CB if not done correctly. I think it's best to leave that kind of thing to people who know what they are doing. I'm not one of them...
:-\
BlueHazzard:
we can try to help you...
can you show us a sample command line of the build command? Or a makefile that uses this compiler?
stahta01:
Are using the "MPIDE", "UECIDE", or the "chipKIT-core plugin with the Arduino IDE"?
Edit2: MPIDE seems to be in either modified or unmodified from MicroChip Digilent.
Edit3: The modified (to maybe support Arduino sketches) version seems to be considered obsolete.
Edit4: I am trying to download "chipKIT-core plugin with the Arduino IDE" to see what compiler it uses.
(I have no hardware; so, I can only test the building)
Edit5: "MPLAB IDE" and "MPIDE" are two different IDEs; the first from MicroChip and I think the second is from Digilent.
Edit6: The compiler/toolchain was installed under here "C:\Users\stahta01\AppData\Local\Arduino15" with "pic32-gcc.exe" for the C Compiler.
Those are the only compiler IDE options I found on http://chipkit.net/wiki/index.php?title=Main_Page
I have never used any of the three IDE choices listed above.
Edit: Each of the above three IDE choices might use the same or different compiler toolchain; I have yet to look that far into the docs.
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version