PINE64
Build Infinitime Sources - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136)
+--- Thread: Build Infinitime Sources (/showthread.php?tid=14491)



Build Infinitime Sources - aemkai - 07-22-2021

Hello,
im a relative newbie to programming and wan't to have a own clock face.
I followed the build steps from Git - build and program and the build with a new face with some little changes was also successfull.[url=https://github.com/JF002/InfiniTime/blob/develop/doc/buildAndProgram.md][/url]
I wan't to programm the firmware by OTA/DFU, but my problem is, there wasn't a pinetime-mcuboot-app-dfu build.
The files build are:
  • pinetime-app-1.2.0.bin
  • pinetime-app-1.2.0.hex
  • pinetime-app-1.2.0.map
  • pinetime-app-1.2.0.out
The dependencies as descriped on git are installed and additionally adafruit-nrfutil.
I prepare the build with
Code:
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH="/opt/gcc-arm-none-eabi/gcc-arm-none-eabi-10-2020-q4-major" -DNRF5_SDK_PATH="/opt/nRF5_SDK_15.3.0_59ac345" -DUSE_JLINK=0 -DNRFJPROG="/opt/nrfjprog/nrfjprog" -DCMAKE_BUILD_TYPE=Release -DBUILD_DFU=1 ../

and run the build with
Code:
make -j pinetime-app
 in the build-directory.

What have i done wrong. How to get an pinetime-mcuboot-app-dfu.zip?

thanks in advance


RE: Build Infinitime Sources - aemkai - 07-23-2021

(07-22-2021, 01:40 PM)aemkai Wrote: Hello,
im a relative newbie to programming and wan't to have a own clock face.
I followed the build steps from Git - build and program and the build with a new face with some little changes was also successfull.[url=https://github.com/JF002/InfiniTime/blob/develop/doc/buildAndProgram.md][/url]
I wan't to programm the firmware by OTA/DFU, but my problem is, there wasn't a pinetime-mcuboot-app-dfu build.
The files build are:
  • pinetime-app-1.2.0.bin
  • pinetime-app-1.2.0.hex
  • pinetime-app-1.2.0.map
  • pinetime-app-1.2.0.out
The dependencies as descriped on git are installed and additionally adafruit-nrfutil.
I prepare the build with
Code:
cmake -DARM_NONE_EABI_TOOLCHAIN_PATH="/opt/gcc-arm-none-eabi/gcc-arm-none-eabi-10-2020-q4-major" -DNRF5_SDK_PATH="/opt/nRF5_SDK_15.3.0_59ac345" -DUSE_JLINK=0 -DNRFJPROG="/opt/nrfjprog/nrfjprog" -DCMAKE_BUILD_TYPE=Release -DBUILD_DFU=1 ../

and run the build with
Code:
make -j pinetime-app
 in the build-directory.

What have i done wrong. How to get an pinetime-mcuboot-app-dfu.zip?

thanks in advance

add: cmake recognizes the DFU-Option as wanted:
Code:
* Build DFU (using adafruit-nrfutil) : Enabled



RE: Build Infinitime Sources - aemkai - 07-23-2021

Hello, i found another issue.
Despite setting JLink-Option to "-DUSE_JLINK=0", the outprint is "Programmer/debugger : JLINK". Also, the CMake wants a path to NrfJprog. Could this be a reason?


RE: Build Infinitime Sources - aemkai - 07-23-2021

Okay, problem is solved.
My mistake was to use
Code:
make -j pinetime-app
instead of
Code:
make -j pinetime-mcuboot_app
Build is running on the watch :-)


RE: Build Infinitime Sources - JF002 - 08-01-2021

Quote:Build is running on the watch :-)
Awesome !


You can also type
Code:
make -j all

or just
Code:
make -j

to build all targets at once Wink