Compiling and flashing code from the terminal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling and flashing code from the terminal

680 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by coder543 on Thu Sep 12 12:13:28 MST 2013
Hello,

I've got an LPCXpresso with an LPC812 Cortex M0+ microcontroller on it, and after only a few hours of using Code Red's lpcxpresso development suite, I'm practically sick of it. Is there no way for me to do the full development cycle from just a terminal and a nice text editor like Sublime Text?

I'm on Mac, but I have a Linux VM I could probably use as well. I've used Linux exclusively for years, and only recently switched back to Mac, so using the terminal is not an issue with me. After searching the documentation and various directories related to lpcxpresso, I didn't see anything that jumped out at me as far as how to solve this issue. There didn't even seem to be a device for the LPCXpresso in /dev! I don't know how that's possible, but I suppose Mac does things a little different than Linux in regard to devices.

Does anyone have experience developing for LPCXpresso from the command line?
0 Kudos
Reply
3 Replies

640 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Sep 12 13:25:29 MST 2013
Go to the code red support site
http://www.support.code-red-tech.com/CodeRedWiki
And search for command line. There are a bunch of FAQ to help you.
0 Kudos
Reply

640 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by coder543 on Thu Sep 12 12:57:27 MST 2013
That looks like a promising option, but there doesn't seem to be support for the LPC812 in my development board. Also, will this work on an LPCXpresso, since the LPC-Link appears to be between the MCU and the development computer?  But, thanks for showing me this, I may be investigating it as an option soon.
0 Kudos
Reply

640 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mburton on Thu Sep 12 12:34:00 MST 2013
Hi coder543,

I too prefer using a simple editor and make and working from the command line. My excuse is that I have always worked like that and don't see a big need to change. So, I have produced a simple make script that lets you build some of the lpcopen software from the command line. It doesn't support all the devices and it doesn't build all the libraries but for the devices it does support it works just fine. For programming, I use either openocd (JTAG) or lpc21isp (UART). JTAG is useful if you want to use gdb but often I just use the UART (I come from the printf school of debugging!). You can find it here:

https://bitbucket.org/smartavionics/lpcopen-make

If you try to use it and come up with any fixes or suggestions for improvement, please provide feedback via bitbucket.

Cheers,

Mark
0 Kudos
Reply