Closed maclobdell closed 3 years ago
I have run into this as well when the compiler can't find the bootloader file.
cc @ARMmbed/mbed-os-tools
Be nice if we had some industry or ARM standard partitions and descriptions with metadata descriptors.
For bootloaders, applications, libs, data etc.
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2320
Is this still valid? Is 5.13 supported?
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority.
Description
Mbed OS version: 5.13.1 (most likely earlier also) Compiler: GCC, ARM, IAR Relevant tools versions tested: mbed-cli (1.10.0), mbed-os-tools (0.0.8)
When building an application that uses managed bootloader mode, such as a Pelion client example (e.g. mbed-os-pelion-example), the error below with undeclared APPLICATION_ADDR can result.
I have found the reason that APPLICATION_ADDR is not defined can be caused by these conditions (could be more):
1) the area reserved for the bootloader is too small. (e.g. if "target.header_offset" is set too low and thus overlaps with the bootloader). 2) the bootloader file is not found. (e.g. if there is a typo in "target.bootloader_img" : "bootloader/mbed-bootloader_filename.hex"), then it results in the same error.
Ideally, these conditions should result in a descriptive error, but instead result in the below messages, which do not indicate the source of the problem.
It would be very useful if the build tools could catch these common mistakes and provide clear error messages to aid the developer. Thanks!
Issue request type