Skip to content
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

Improve README #119

Merged
merged 3 commits into from
Aug 2, 2020
Merged

Improve README #119

merged 3 commits into from
Aug 2, 2020

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Aug 1, 2020

A lot of people had troubles with using this HAL because the Cargo features were not set up properly. For example:

These features were inadequately documented. The first commit of this PR attempts to fix that by documenting how to properly specify a dependency on stm32l0xx-hal (and the available Cargo features).

Additionally, I simplified the toolchain setup docs. The repo still contains helper scripts for flashing and debugging. These scripts are highly dependent on your debug probe (JLink? STLink? Something else?), your toolchain (OpenOCD? JLinkExe? The STLink tool? Cargo Flash?), your OS and your MCU. I do not think they should belong in this repo. Documentation on different setups should probably be moved to the Embedded Rust book. My suggestion would be to remove the helper scripts and the corresponding sections in the README (the README updated by this PR already contains a link to the Embedded Rust book).

If there's a toolchain we should recommend, then in my opinion it should be cargo-flash or cargo-embed (as soon as GDB debugging works reliably). Shoutout to @Yatekii @Tiwalun @adamgreig and many others that are working on the probe-rs project.

What do you think, @arkorobotics?

@arkorobotics
Copy link
Member

The Readme is long overdue for an update. The improvements you've made in this PR look good. I just want to make sure we capture the issues with flashing the L0 family MCU's with OpenOCD v.0.10.0. I'll look into adding the instructions (removed in this PR) to the Embedded Rust book as the flashing issue can be frustratingly difficult to track down (and it doesn't seem OpenOCD is planning to release the fixed version any time soon).

That said, I'm going to merge this PR. Thanks!

@arkorobotics arkorobotics merged commit 9d7f50a into master Aug 2, 2020
@dbrgn dbrgn deleted the improve-docs branch August 2, 2020 10:40
@dbrgn
Copy link
Contributor Author

dbrgn commented Aug 2, 2020

Great, thanks for the quick review @arkorobotics 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants