Build and execute ROM and Runtime as flat binaries #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rather than from the ELF files.
We also build the apps and prepend the correct TBF header, and pack that into the binary as well.
This meant we had to copy in the TBF header file from elf2tab.
We now build the runtime binary twice: once to get the initial size, and then we re-compile / re-link it with the correct offsets so that the apps are loaded as close to the kernel as possible. This helps minimize the RAM requirements.
This fixes a bunch of small bugs related to setting the stacks and capsules correctly in the board file so that the example app will actually execute.
There are some bugs related in the app related to either formatted printing or the timer interface with the capsules that I haven't 100% debugged yet.