News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Customize CodeBlocks for ARM Development (Toolchains)

Started by hentaiw, March 26, 2016, 01:05:30 AM

Previous topic - Next topic

hentaiw

Hello,
I have been trying to get Code::Blocks to work with my ARM development.
I am using TI Tiva C TM4C123G.
I have 3 steps:
1. Run this to make my Linux terminal recognize GCC-ARM.
export PATH=$PATH:$HOME/Embedded/gcc-arm-none-eabi-5_2-2015q4/bin
2. Go to project folder, use the make file.
make
3. Run this in /$HOME/Embedded/lm4tools/lm4flash/
sudo ./lm4flash /home/kudy/Embedded/tivaware/examples/boards/ek-tm4c123gxl/project0/gcc/project0.bin

I really want to use CB, code in there, hit the compile and run button, and CB automatically does those steps for me.
Also if I can avoid sudo in the third code, that would be great.
Thanks in advance.

BlueHazzard

Quote from: hentaiw on March 26, 2016, 01:05:30 AM
1. Run this to make my Linux terminal recognize GCC-ARM.
export PATH=$PATH:$HOME/Embedded/gcc-arm-none-eabi-5_2-2015q4/bin
You can try to use Settings->Environment settings->Environment variables with Project->Properties->EnVars options

Quote from: hentaiw on March 26, 2016, 01:05:30 AM
2. Go to project folder, use the make file.
make
You can use a custom make file project:
Project->Properties->Project settings->Makefile and the "This is a custom Makefile" settings

Quote from: hentaiw on March 26, 2016, 01:05:30 AM
3. Run this in /$HOME/Embedded/lm4tools/lm4flash/
sudo ./lm4flash /home/kudy/Embedded/tivaware/examples/boards/ek-tm4c123gxl/project0/gcc/project0.bin
You can use the Tools+ plugin: Tools+->Configure Tools
For the usable variables in the tools plugin see: http://wiki.codeblocks.org/index.php/Variable_expansion

QuoteAlso if I can avoid sudo in the third code, that would be great.
this is a general linux question and this forum is not the right place to ask this question... i think you should add your usb programming device to the /etc/udev/rules.d
google for this, or read a similar topic about avrdude: http://mightyohm.com/blog/2010/03/run-avrdude-without-root-privs-in-ubuntu/

i hope i could help
greetings