-
Notifications
You must be signed in to change notification settings - Fork 47
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
Can't compile stm32-eth v0.2.0 #32
Comments
At a guess you're trying to build for your native target instead of a thumb embedded target, and additionally that target is not x86 (perhaps Apple Arm?). This would normally work (well, compile without error but not be functional) but there was a recent bug in cortex-m giving the error you're getting; it's been fixed in cortex-m but not yet released. If you build with eg |
@adamgreig, sorry I forgot to say I am using the |
What command are you running to build, exactly, and what's in You can see in the 0.7.2 release commit here that the RegisterBlock is defined, but only for some architectures: https://github.com/rust-embedded/cortex-m/blob/653d218e39bb5dad14a0995f3753cbbd1569c9bf/src/peripheral/mpu.rs#L8 |
This is my [target.'cfg(target_arch = "arm")']
rustflags = [
"-C", "link-arg=--nmagic", "-C", "link-arg=-Tmemory.x"
] And this is how I compile: cargo build --target thumbv7em-none-eabihf Should I added the build target to |
Huh, no, if you have If you clone this repository, can you build the examples? For instance, |
I'll try that |
When I try to compile stm32-eth it can't compile the cortex-m dependencie. This error comes up three times and nothing else:
When I try to compile later version, the same error comes up. Is it my compiler? Or do the dependencies need to be updated?
The text was updated successfully, but these errors were encountered: