4
To configure CODEBLOCK IDE to compile ordinary c,AVR GCC,ARM GCC For more details(http://dev.frozeneskimo.com/resources/tutorials/setting_up_the _arm-gcc_toolchain_on_windows ) Step1.Install cygwin Step2. GNU-ARM Binary distribution of GCC Toolchain Step 3 - Setup the Windows Path Now that you have the ARM-GCC toolchain installed in a Cygwin environment, you can make these programs globally accessible so you can use them with your own IDE (if you want Here you have notice for your codeblock ). To do this, we must edit the Windows Path variable, which you can access by: Right-click on “My Computer”, click “Properties”. Click the “Advanced” tab. Click the “Environment Variables” button. Select “Path” out of the “System Variables”, and click the “Edit” button. Now make sure your path includes the following: C:\cygwin\bin;C:\cygwin\usr\local\bin;C:\program files\gnuarm\bin; The first two are obviously for the Cygwin apps, the last is for the ARM-GCC toolchain. Now that you have everything setup, the next step is to test it out. The sample code I am giving a link to is for LPC2106 and LPC2148 microcontrollers only, but regardless of the microcontroller you’re using, if this code compiles, your ARM-GCC toolchain should be ok. Go ahead and download Lynch’s sample code here: http://www.olimex.com/dev/soft/ arm /LPC/sourcecode.zip . Extract the directories somewhere, and in a Windows command prompt, change to the same directory, and then type “make”. If everything worked out well, you should have a main.hex file in the end. If not, then, uh, email me or something. (End of Lynch’s guide has a troubleshooting section you might want to check).

To Configure CODEBLOCK IDE to Compile Ordinary c

Embed Size (px)

Citation preview

To configure CODEBLOCK IDE to compile ordinary c,AVR GCC,ARM GCC For more details(http://dev.frozeneskimo.com/resources/tutorials/setting_up_the_armgcc_toolchain_on_windows) Step1.Install cygwin Step2. GNU-ARM Binary distribution of GCC Toolchain

Step 3 - Setup the Windows Path Now that you have the ARM-GCC toolchain installed in a Cygwin environment, you can make these programs globally accessible so you can use them with your own IDE (if you want Here you have notice for your codeblock ). To do this, we must edit the Windows Path variable, which you can access by: Right-click on My Computer , click Properties . Click the Advanced tab. Click the Environment Variables button. Select Path out of the System Variables , and click the Edit button. Now make sure your path includes the following:C:\cygwin\bin;C:\cygwin\usr\local\bin;C:\program files\gnuarm\bin;

The first two are obviously for the Cygwin apps, the last is for the ARM-GCC toolchain.Now that you have everything setup, the next step is to test it out. The sample code I am giving a link to is for LPC2106 and LPC2148 microcontrollers only, but regardless of the microcontroller you re using, if this code compiles, your ARM-GCC toolchain should be ok. Go ahead and download Lynch s sample code here: http://www.olimex.com/dev/soft/arm/LPC/sourcecode.zip. Extract the directories somewhere, and in a Windows command prompt, change to the same directory, and then type make . If everything worked out well, you should have a main.hex file in the end. If not, then, uh, email me or something. (End of Lynch s guide has a troubleshooting section you might want to check).

Step 4. Now install codeblock ide with MinGW from their website .After installing

BY default gcc compiler installed . check by compiling simple c program

After GNU arm / GNU Avr tool chain installed .

Open the program already posted in olimax and try .