Content originally posted in LPCWare by MarcVonWindscooting on Mon Feb 10 20:28:24 MST 2014
Quote: markfink
I am on a Ubuntu laptop and I am using gcc and plain text editors. I hope somebody on this forum has similar preferences and helps me getting started.
I bought the LPCXpresso Experiment Kit because I thought this would be an easy way to get started...
* and then I need to put the fimware.bin on the target though LPC-Link (I have no clue how to do that on Linux)
I have found about 20 different blogs on how to do that (some use cp, dd, mtools, lpc21isp, pyserial)
Welcome Mark!
Yes there are people with the same preferences ;-)
The families LPC11xx and LPC17xx are quite different. Core: Cortex-M0 versus Cortex-M3 (different instruction set!). Peripherals: LPC1100 more low power capabilities, LPC17xx more powerful peripherals. Some peripherals are similar, for example UART, but still they have different peripheral base addresses. Mapping of functionality to pins is different. And so on.
Recently, I tried to find out, if I can just buy a LPCXpresso board to use with Linux and all-free tool but I haven't come up with a positive answer so far. My impression is: the answer is no! But I can't tell for sure. I simply didn't order one.
I don't know, if the LPCXpresso boards provide a serial port emulation. Serial port emulation is what lpc21isp, pyserial, and probably others rely on. Because the LPC's have that serial ISP boot loader. Accessing via JTAG is a different thing and to my understanding, this is, what the LPCXpresso board does: providing FLASH programming and a debugger interface. I used Olimex boards for a long time or an 'mbed'. However, since the company I'm working at produces a small motor driver unit with ethernet & serial port and a zillion other goodies I resort to these boards. And yet another model is coming up soon, that adds considerable power capabilities to the motor driver (2 motors x 3 phases, 35V, 2A/phase). Will be ready until March. Can't wait for it.
A propos serial ISP boot loader...give the program mxli (www.windscooting.com/softy/mxli.html) a try and forget about the other lame options :bigsmile:
I don't use 'professional' libraries, because the guys of NXP provide these excellent manuals. And the libraries we build ourselves are the best of course. And yes, I'd like to share my library. If you look at mxli source code, you'll see a big part of it (the c-any/ subdirectory).
Where are you from? Keep me posted about your progress with your board. Maybe I can lend you my Olimex LPC1766, if you like?