Build Infinitime Sources
#1
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
  Reply
#2
(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
  Reply
#3
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?
  Reply
#4
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 :-)
  Reply
#5
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
Working on Pinetime with FreeRTOS (C/C++) : https://github.com/JF002/Pinetime

Mastodon : https://mastodon.codingfield.com/@JF
Twitter : https://twitter.com/codingfield
Matrix : @JF002atrix.org
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Daemon and go library to interact with InfiniTime on Linux Arsen6331 0 180 08-21-2021, 10:32 AM
Last Post: Arsen6331
Information InfiniTime Default Face USA Mod - No longer supported The3DmaN 1 1,000 02-25-2021, 03:51 PM
Last Post: The3DmaN
  InfiniTime Avamander 4 2,709 02-24-2021, 02:38 PM
Last Post: Avamander
  Build PineTime Firmware in the Cloud lupyuen 3 2,715 07-27-2020, 04:54 PM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)