-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compiling errors #1
Comments
Please give me the output of The idea behind the random mangling is that the entry point and interrupts aren't really reentrant, so don't allow it. This is an implementation detail and may change in the future to be, e.g. supported by marking the entry point and interrupts as |
Sure, I've tried one of the newest nightlys as well as an older one (2022-12-12)
Here is the lock (as well as toml) |
Okay, I figured it out. It was completely my fault. In my project, I was referencing msp-rt 0.4.0, but in msp430f5529 I forgot to change the version of msp-rt, so it was referencing an older version. I think the problem was that for entry it was calling one version and for interrupt the other, which meant the The version mismatch was causing the linking problems as well. After this was resolved, it compiles and the blinky program works correctly. Sorry for bothering you with this error and thanks for explaining the random ident, I probably wouldn't have figured that out by myself. I will add a PR today or in few days when I will be happy with all of the patches. |
During linking, there should be a multiple symbol failure due to some symbols being Since the "random idents" error reappeared, I would still be interested in the tree of your project (or a minimized version), pointing to the relevant That said, glad you solved the issue and looking forward to your PR (I'm taking a bit of a break from Rust, but I'll at least merge this). |
Sure, that's not a problem at all since the project is really just a blinky, I wanted to make something easy work first. When running cargo build with this project, I get the redefinition error. After commenting out
after switching to |
Post-mortem for future-me:
This is a correct description of why the This is also why you got the "cannot find interrupt symbols error"; both However, in your original code, the two copies of
GNU |
Hello, I am trying to get msp430f5529 working with Rust. I noticed that this crate is not updated to newest version of msp430 and msp430-rt, I would like to change that and I already created a fork and updated the files, but I came across some problems.
First, when I am compiling, I get linking errors saying that there is undefined reference to RTC, to PORT2, to TIMER2_A1 and so on, for all of the interrupts. I've read in msp430-rt that this would happen if device.x is not present. Strangely, these errors go away when I remove "-C" "link-arg=-Tlink.x". But I am not sure whether the program compiled is correct, could not get the LED blinking using blinky example and will have to investigate further to figure out where the error is exactly. (msp430-elf-size is saying that text has 0 bytes, that seems to me that there is no program inside the binary?) EDIT: my bad, this is not strange at all, removing this won't link, so there is nothing to fail then.
Another thing is that if I try to add interrupts to my code, I get
I've also tried compiling msp430g2553 and I don't get any of these errors.
I get these errors even without any changes to this repository, I thought they would go away after updating, but nope.
Any idea where could these problems come from and how to resolve them? If more information is needed, I can provide anything.
The text was updated successfully, but these errors were encountered: