Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
armcc - remove fromelf output before regenerating one #6344
Fix armcc recompile errors during elf2bin stage. Errors shown as follows:
Fix issue #6306
Pull request type
referenced this pull request
Mar 13, 2018
Excerpts from prior PRs that proposed the same change:
Typically when there are multiple LRs and building creates a directory rather than a binary it indicates something is wrong in the scatter file. Adding this change may mask scatter file errors. Rather than having an obvious error at compile time, a binary will be created that does not work.
It looks like the LPC4088_DM's post build hook makes use of multiple regions being created if the binary is big enough. It does this by manually combining the regions with little padding (up to 512K). With this PR padding is done automatically, but rather than 512K it pads the entire address space from LR_IROM1 to LR_IROM which is ~640MB.
How do you plan on correcting that behavior for the LPC4088_DM? How do you plan on making this change in a way that is backwards compatible? Could using a
.hex file be a viable workaround?
Build number : 1496
Build number : 1140