Build the firmware - nodesign/weio GitHub Wiki
Install LPCXpresso
In order to build the firmware, you'll need to install LPCXpresso and activate it for the free edition. LPCXpresso can be downloaded from here : http://www.lpcware.com/lpcxpresso/download Once downloaded and installed, LPCXpresso must be activated from the Help / Activate menu.
Prepare the files
To prepare all the needed file to build the firmware, follow these steps:
mkdir UPER_FW
cd UPER_FW
git clone https://github.com/ks156/UPER
git clone https://github.com/8devices/MemoryManager
git clone https://github.com/GiedriusM/SFP
Add the projects in the IDE
MemoryManager
- On the file menu, click on New -> Project...
- Select a C/C++ -> C Project, and click next
- Write MemoryManager as project name. Uncheck Use default location, and point to the MemoryManager files
- Select Static Library -> Empty project as Project type, and Code Red MCU tools as toolchain
- In the next screen, be sure that DEBUG and RELEASE are checked, and click next
- Select the correct MCU : LPC11Uxx -> LPC11U34/421 and click finish
SFP
- On the file menu, click on New -> Project...
- Select a C/C++ -> C Project, and click next
- Write SFP as project name. Uncheck Use default location, and point to the SFP files
- Select Static Library -> Empty project as Project type, and Code Red MCU tools as toolchain
- In the next screen, be sure that DEBUG and RELEASE are checked, and click next
- Select the correct MCU : LPC11Uxx -> LPC11U34/421 and click finish
UPER
- On the file menu, click on New -> Project...
- Select a C/C++ -> C Project, and click next
- Write UPER as project name. Uncheck Use default location, and point to the UPER files
- Select Executable -> Empty project as Project type, and Code Red MCU tools as toolchain
- In the next screen, be sure that DEBUG and RELEASE are checked, and click next
- Select the correct MCU : LPC11Uxx -> LPC11U34/421 and click finish
Set the build environment
The easy way
The easiest way to set all the build variables for the three project is to simply download .cproject files, and replace those automatically created by LPCXpresso.
To do it, first close the IDE, and then follow the instructions:
curl -o .cproject https://raw.githubusercontent.com/ks156/misc/master/lpc/memorymanager_cproject
cp .cproject MemoryManager/.cproject
curl -o .cproject https://raw.githubusercontent.com/ks156/misc/master/lpc/sfp_cproject
cp .cproject SFP/.cproject
curl -o .cproject https://raw.githubusercontent.com/ks156/misc/master/lpc/uper_cproject
cp .cproject UPER/.cproject
The project settings will be applied at next IDE starts.
The manual way
TODO