rust-embedded / cortex-m-quickstart

Template to develop bare metal applications for Cortex-M microcontrollers
809 stars 167 forks source link

use less unstable dependencies #29

Closed japaric closed 6 years ago

japaric commented 6 years ago

This PR and the ones at the bottom reduce the number of unstable features needed for Cortex-M development to a single one: lang = "panic_fmt", which already has a path towards stabilization and which we hope to get on stable by 1.28.

Check out the temporary documentation (we still need more docs) to try out this preview.

We would love your input on these unresolved questions

This PR depends on:

japaric commented 6 years ago

Something I noticed while working on this is that LLD (both HEAD and rustc's) will mislink FFI calls into external assembly files. LLD will insert a BLX instruction that calls the foreign function instead of a BL instruction. The BLX instruction produces a hard fault at runtime.

cc @jcsoo

japaric commented 6 years ago

bors r+

bors[bot] commented 6 years ago

Build succeeded