-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/CMakeLists.txt: use iHEX format for mcuboot image creation #256
Conversation
please note two fixes this PR brings |
I thought that I think some companion app (gadgetbridge, amazfish, siglo) expect a .bin file for the OTA functionality, and could be confused if they found a .hex file instead. |
Ah! that's unfortunate I missed your comment.
This PR surely doesn't bring any regressions. Everything works absolutely
as it should.
DFU zip files contain BIN only. And NRFutil flavors accept HEX and convert
them to BIN as required by DFU uploaders.
Check my latest P8 DFUs, which were produced with this patch applied.
|
Does this applies to all companion apps (Gadgetbridge, Amazfish and Siglo) ? I'm not sure they all use code from NRFutil... |
NRFutil is the tool that produces DFU. The result must be the same whether
you give it a bin or hex. the resulting DFU zip contains BIN.
|
added one more fix commit
|
introduced in InfiniTimeOrg@58a2d00
fixes cases when git is missing in the build system
for better control of addresses used by img/fw + fix typo (RECOVERYY)
up-to-date with the current `develop`.
|
Does switching to iHEX actually give is any benefits here? The other changes look good thanks for updating this. |
On Sun, Oct 3, 2021 at 9:09 AM Tim Keller wrote:
Does switching to iHEX actually give is any benefits here? The other
changes look good thanks for updating this.
missed this comment because of all the renames...
1. iHEX oftentimes is better because it contains address information. With
IT we have bootloader-targeted images which have tricky offsets that are
good to control tightly. One can do it like this:
$ hexinfo.py *.hex
- file: 'hwmonitor.hex'
entry: 0x000000DD
data:
- { first: 0x00008020, last: 0x0000F4D3, length: 0x0000F4D4 }
- file: 'hwmonitor-mcuboot.hex'
data:
- { first: 0x00008000, last: 0x0000F51B, length: 0x0000F51C }
2. iHEX is accepted by all the software around: openocd, imgtool and many
others. Easily converted by objcopy.
|
Thanks for the info, I am further un-opinionated, So I await my fellow devs @JF002 and @Avamander opinions :) |
Thank you @StarGate01 for pushing this one ))
|
incredible!
👍
|
for better control of addresses used by img/fw