| Folder | Description |
|---|---|
| .vscode | VS Code cmake Tools config files |
| cmake | Build config files |
| platform | Some source files to bridge the gap between the MRE SDK and the Toolchain |
| resources | Place resources you want to bundle with your app here |
| src | Main code for app |
- cmake (>=3.25)
- Ninja
- Arm GNU Toolchain
- MRE SDK (for includes, libs and MoDis)
- TinyMRESDK (For resourse pack and app pack)
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-arm-none-eabi.cmake "-DTOOLCHAIN_PREFIX=C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/14.2 rel1" "-DMRE_SDK=C:/Program Files (x86)/MRE SDK V3.0.00" -DTinyMRESDK=path/to/tiny/mre/sdk -DCMAKE_BUILD_TYPE=Release -DVXP_DEV_SIGN=C:\path\to\vxp-dev-sign\vxp-dev-sign.exe -G "Ninja" ..
ninja
mkdir vs
cd vs
cmake -DMRE_SDK=path/to/mre/sdk -DTinyMRESDK=path/to/tiny/mre/sdk -G "Visual Studio 17 2022" -A Win32 ..
Demo.sln
Also you can use cmake gui for config (Don`t forget to set MRE_SDK and TinyMRESDK variables)
Note You can't run .vxp on MoDis and .vc.vxp on phone.
Note: If you use Nokia phone, you need to add your IMSI (-DIMSI="91234567890") with 9 at begin (because of mre api bug)
Just copy build/vxp/vxp.vxp to sd-card
You can use run_in_MoDis target (right click and Set as Startup Project), but if you want to debug it, manualy change Command (in project properties) to MoDis.exe.
Or you can manualy copy vs/vxp/vxp.vc.vxp to MoDis.
- Copy this to new folder
- Change app/developer name and other settings in base
CMakeList.txt - Update paths in CMakePresets.json, .vscode/settings.json, .vscode/c_cpp_properties.json and .vscode/cmake-kits.json to match your installation locations
- If you want to add CMake liblary, add it as static lib (you can use
set(BUILD_SHARED_LIBS FALSE))
Based on XimikBoda/CmakeMreTemplate