Closed D4rk4 closed 1 year ago
I had the same issue came up. Looking into the makefile I see:
-DMK_BOOTLOADER_VERSION=(80c3a84 << 16) + ( << 8) +
(note the two spaces after the second plus).
This is failing on line 176, as it obviously is not an actual integer.
I had not built my own bootloader for the nRF52840 prior so not sure what the actual value is supposed to be.
When I replaced the line with:
BOOTLOADER_VERSION_REGISTER = 0x1234; //(MK_BOOTLOADER_VERSION);
it did compile correctly.
what is your output of following shell command $ git describe --dirty --always --tags
also what is the output of following target: $ make BOARD=metro_nrf52840_express print-GIT_VERSION
dark@hope{~/repos/Adafruit_nRF52_Bootloader}:git describe --dirty --always --tags
247bbe5
dark@hope{~/repos/Adafruit_nRF52_Bootloader}:make BOARD=metro_nrf52840_express print-GIT_VERSION
GIT_VERSION = 247bbe5
dark@hope{~/repos/Adafruit_nRF52_Bootloader}:
mine is
$ git describe --dirty --always --tags
0.7.0-17-g256e174-dirty
try to run get fetch --tags
so that it could get the release version to pass to the code.
@hathach indeed git fetch --tag was the solution. Hopefully this is added to the repo readme
Operating System
Linux
INFO_UF2.TXT
N/A
What happened ?
How to reproduce ?
make BOARD=metro_nrf52840_express all
Also the same with the custom board based on nrf52840.
Debug Log
No response
Screenshots
No response