
Mine were in C:\Users\mingy_desktop\AppData\Roaming\codeblocks\UserTemplates\ArduinoProjectħ ) Copy the attached file start.cpp to (eg) C:\Users\mingy_desktop\AppData\Roaming\codeblocks\UserTemplates\ArduinoProject\start.cppĨ ) Copy the attached ArduinoProject.cbp C:\Users\mingy_desktop\AppData\Roaming\codeblocks\UserTemplates\ArduinoProject\ArduinoProject.cbpĩ ) Note that the ArduinoProject.cbp file may have to be modified in that your COM port may not be COM3 (check in Arduino or the device manager and avrdude.exe may be elsewhere. File Save Project as Template and name it ArduinoProjectĦ ) Find the Codeblocks User Templates. May as well make sure C:\arduino-022\hardware\arduinocores\arduino is in your search directories (You’ll need to add a bunch more of these as you develop more and more code)Į. Make sure C:\WINAVR-20100100\avr\include is in your search directories (Complier and debugger setting) (or wherever your winavr include directory is)ĭ. Set GNU AVR GCC compiler as your default compilerĬ. Arduino core.a when it closes, so it can bet tricky to find. Make a folder C:\arduino-022\libArduinoCoreAT328p and copy core.a to that folder. Without closing Arduino, open Explorer and search for ‘core.a’.

CodeBlocks will not recognize those project changes on an existing project.ġ ) Start Arduino and compile a simple sketch, like blink. Understand that every time you modify ArduinoProject.cbp, you have to close the project and create a new one. If at some point you are trying again or ‘stuck’ uninstall CodeBlocks and delete all relevant associated data, which is found in C:\Users\mingy_desktop\AppData\Roaming\codeblocks.

I did this through the command prompt: Go to c:\users\mingy_desktop and type appdata attrib -H Unhide the C:\Users\mingy_desktop\AppData directory. Make sure you do not have a user name with an embedded space eg: mingy_desktop is, mingy desktop is not.
#CODEBLOCKS NOT BUILDING WINDOWS 7#
I’m going to pretend your Windows 7 user name is mingy_desktop, but you ll have to change it as needed. If anybody tries this and finds a problem, please let me know. I carefully (I hope) documented the process.
#CODEBLOCKS NOT BUILDING CODE#
I am sure this is easy for a lot of people, but I’m an old guy and having slung code for a long time. Thanks to Google, and the fact I am stuck in a wheelchair for a few weeks, I was able to get, step by step, to the point where it all works.

I gave up trying to figure out why, but I ran into all kinds of problems which led me to new problems. I think the problem is that some of the information is dated, or not directly relevant to my platform.
#CODEBLOCKS NOT BUILDING HOW TO#
Based on what I read, and, in particular from this post I spend about 4 days figuring out how to do it. I wanted to move from the Arduino development environment for a variety of reasons.
