common: remove rdimon when debug is enabled#1741
Conversation
|
Please rebase on main -- half of src/platforms/common/stm32/meson.build | 2 +-
src/platforms/common/syscalls.c | 65 -----------------------------------------------------------------
src/platforms/common/usb_serial.c | 12 ------------
3 files changed, 1 insertion(+), 78 deletions(-) |
|
Thanks for taking a look! I will try to make time to work on this a bit next week. |
|
Please rebase this on |
Save about 1.2KiB (depending on GCC version) by redirecting `_write` directly in `libnosys`, instead of pulling in `librdimon`.
Make most syscall stubs unconditional. Remove semihosting routing for debug output.
|
Rebased. Builds for me, haven't tested yet. |
|
With Before: After: |
|
That's a pretty nice saving! We'll get this reviewed in the next 24h we hope, with the aim to merge it once you can confirm it still works as intended. |
|
Did a quick check scanning and attaching a nRF target with BMP. Debug output to aux CDC as expected. (At least as far as I can recall; I don't remember all the details of how that debug output should look.) |
dragonmux
left a comment
There was a problem hiding this comment.
This all LGTM, so merging. Thank you for the contribution! Sorry that it took quite so long to get to merging this.
Save about 1.2KiB (depending on GCC version) by redirecting
_writedirectly inlibnosys, instead of pulling inlibrdimon.Detailed description
librdimonsemihosting capabilitieslibnosysI/O functions such as_writecan be retargeted directly without using semihostinglibrdimonsemihosting brings in a lot of unused codeI haven't tested on other probe platforms, so I might have unintentionally broken something.
Your checklist for this pull request
Closing issues
N/A