Comments (4)
I can repro this with rustc 1.22.0-nightly (6f87d20a7 2017-09-29)
, but linking works fine with 1.22.0-nightly (325ba23d5 2017-09-19)
. So this may be a rustc regression. I can't bisect the toolchain to nail down the problem right now so I'll advise you to rollback your toolchain version for now.
from cortex-m-quickstart.
@japaric msp430-quickstart also doesn't work atm, but it fails with a different error message.
from cortex-m-quickstart.
I'm just started experimenting with rust for cortex-m and I get a similar problem
$ rustc -V
rustc 1.22.0-nightly (417c73891 2017-10-05)
$ xargo build --example hello
Compiling r0 v0.2.2
Compiling cortex-m v0.2.12
Compiling vcell v0.1.0
Compiling aligned v0.1.1
Compiling cortex-m-rt v0.2.5
Compiling cortex-m-semihosting v0.1.3
Compiling cc3200 v0.0.1 (file:///home/adona/ZAKKE/rust/cc3200)
Compiling volatile-register v0.2.0
error: linking with `arm-none-eabi-ld` failed: exit code: 1
= note: arm-none-eabi-ld:
You must specify the exception handlers.
Create a non `pub` static variable with type
`cortex_m::exception::Handlers` and place it in the
'.rodata.exceptions' section. (cf. #[link_section]). Apply the
`#[used]` attribute to the variable to make it reach the linker.
arm-none-eabi-ld:
Invalid '.rodata.exceptions' section.
Make sure to place a static with type `cortex_m::exception::Handlers`
in that section (cf. #[link_section]) ONLY ONCE.
from cortex-m-quickstart.
This was fixed in cortex-m-rt v0.3.6 so closing. If you still the issue try updating your lockfile.
@attdona That looks like a different issue. The exceptions / interrupts link sections were renamed in cortex-m-rt v0.3.x and you are using v0.2.x. My guess is that you are using a recent svd2rust which only works with cortex-m-rt v0.3.x and cortex-m-quickstart v0.2.x. If you are following one of my first blog post and using cortex-m-quickstart v0.1x then you have to use an older svd2rust releases: v0.7.x is the version used in the blog post (this information is in the blog post). Though I suggest you use cortex-m-quickstart v0.2.x.
from cortex-m-quickstart.
Related Issues (20)
- License files missing
- GDB Load Failed Due to Invalid memory.x Flash Layout
- Allocator example broken
- Document on a quickstart guide for Raspberry Pi Pico HOT 1
- Using probe-rs to initialise memory.x HOT 5
- Update VS Code Config to use unified stlink.cfg
- Make this repository a template HOT 4
- Debug have some problems "unknown command: `arm` " HOT 1
- "message": "failed to parse manifest at `/Users/tz/Downloads/cortex-m-quickstart-master/Cargo.toml`", HOT 2
- add a runner to flash program directly HOT 2
- Is it possible to run examples in `qemu`? HOT 1
- Error while following the Embedded Book HOT 2
- How to run the quickstart code on LPCXpresso55S69?
- cargo generate error HOT 3
- Blue Pill Quickstart HOT 5
- probe-rs HOT 1
- Update for stm32l4 dependency causes linker error HOT 3
- Add documentation ARM v8 Baseline and Mainline (Cortex-M23/M33/M35P)
- Documentation or example for the allocator not working HOT 3
- Feature request: Confusing task names HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cortex-m-quickstart.