Closed endian-albin closed 4 years ago
Can you send me infinitime-image.bin? Lemme peek inside
You can download it here, thanks.
Looks like a valid MCUBoot Header. Wonder what's wrong...
I've tried your image file, and it doesn't work on my Pinetime either...
Can you tell me from which branch/commit you built the image? Maybe also the version of the toolchain and the cmake command line?
I've just built and flash the last commit from develop (754918fda6a1ead2c6a8b440af489aae038918d0) and it works perfectly...
EDIT: does pyocd provide you other erase options (erase the whole flash, for example) ?
I built it from the master branch: "Add InfiniTime logo" (be05997272b7b1d1b25b122c8162ac6f4c1c12a2).
does pyocd provide you other erase options (erase the whole flash, for example) ?
I'm not sure. I used nrfjprog --ereaseall
for erasing the entire internal flash.
I just tried to build from the same commit as you on the develop branch but got several pages of errors, e.g this:
usr/include/newlib/c++/8.3.1/bits/basic_string.tcc:1239:3: error: template with C linkage
template<typename _CharT, typename _Traits, typename _Alloc>
^~~~~~~~
/usr/include/newlib/c++/8.3.1/bits/basic_string.tcc:1261:3: error: template with C linkage
Build steps:
$ rm -rf build/
$ mkdir build/
$ cd build/
$ cmake -DCMAKE_BUILD_TYPE=Debug -DARM_NONE_EABI_TOOLCHAIN_PATH=/usr/ -DNRF5_SDK_PATH=~/bin/nrf52-sdk-15.3.0/ -DUSE_JLINK=1 -DNRFJPROG=~/nrfjprog ../
$ cd ..
$ make pinetime-mcuboot-app
Compiler version:
arm-none-eabi-g++ (15:8-2019-q3-1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
I've now successfully built and tried out both master
and develop
using the gcc-arm-none-eabi-9-2019-q4-major
toolchain.
I cannot run the bootloader-compatible version. It gets stuck at the bootloader screen.
The bootloader is lupyuen's prebuilt
mynewt_nosemi.elf.bin
(and it can boot Hypnos).