Programming LPC2148 with GNU Arm Embedded Toolchain, Makefile and lpc21isp
- This is a template project to show how LPC2148 can be programmed with GCC and Makefile
- Edit
project.mk
to add more files to the project, configure build or upload options
![Add to PATH](https://raw.githubusercontent.com/jabezwinston/LPC2148-GCC_Makefile_template/master/_images/arm_gcc_win_path.png)
- Run
make PORT=COMx upload
to compile and upload the program.
![Compile and upload](https://raw.githubusercontent.com/jabezwinston/LPC2148-GCC_Makefile_template/master/_images/lpc2148_build_upload.gif)
Debian based Linux distros (Eg: Ubuntu)
- Install GNU Arm Embedded, GNU Make and LPC21xx ISP Flash tool
$ sudo apt install gcc-arm-none-eabi make lpc21isp
- Run
make PORT=/dev/ttyUSBx upload
to compile and upload the program. Replace x
by COM port number.