-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards: msp430: garbage collect dead code when linking. #5713
Conversation
Could this not be set directly in the cpu/msp430-common makefile instead? |
1e807e3
to
661b5be
Compare
You are absolutely right. I just couldn't find that file since I wasn't looking for Fixed it. |
ACK if Murdock agrees. |
Btw, should #5632 be modified the same way perhaps? (move from boards to cpu dir) |
Just for curiosity: could you please post numbers for master and with/without the |
I would love to do, but compilation fails before it can output numbers. However, it spits out numbers that exceed 1 MB due to all the fonts being compiled in. |
You could try to modify the linkerscripts to fake more available memory. |
Well, another problem is that the MSP-430 cannot address more than 1 MB (20 bit address if I recall correctly).
Anyway, this is some of the build output for Chronos board (1.67 MB):
|
Ah, yes, true. Anyhow, we it's obvious that this improves a lot. Did anyone check if it is still working on hardware? |
I can give a try on a Z1 node |
I confirm it still works |
661b5be
to
7cf1c46
Compare
Rebased. Murdock failed this afternoon, but it already succeeded yesterday and no new commits were added since. Related to #5689? |
I don't think so. I detected the same problem in 2 different PRs. |
Fixed. A system upgrade made gdb collide with stack randomization seccomp options. |
Great! Thanks @kaspar030 :D |
Murdock complains, but I don't think it has to do with this PR. Something about not being able to reach Github.com for |
The MSP430-based board are blacklisted from U8g2 package, because the flash file size exceeds the memory size. There was a similar problem with the ATMega targets, which was fixed with #5632.
This PR does the same for MSP430-based boards. However, I don't have any boards to test it with and I don't know what implications it has for other programs. Without this patch the U8g2 test application fails to compile, with this patch it succeeds.