Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add guide for serial flashing #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

Conversation

@DarinelSanguino
Copy link
Contributor

@DarinelSanguino DarinelSanguino commented Nov 5, 2022

Added section 'Flashing tool' indicating how to select flashing tool.
Added section "Serial port" instructing to set FLASHING_SERIAL_PORT variable in case stm32flash is used.

Copy link
Contributor

@ThomasGravekamp ThomasGravekamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, apart from those two smaller issues.


### Flashing tool

There are differennt interfaces (serial, I2C, SPI, SWD, etc.) and programs you can use to flash code to your device. Make sure to set the `FLASHING_TOOL` variable in your makefile to the name of your flashing tool. Currently the project has two options available:
Copy link
Contributor

@ThomasGravekamp ThomasGravekamp Nov 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error in here "There are differennt interfaces"

A user does not have to "make sure to set the FLASHING_TOOL variable". This variable only applies when you want to use the non default stm32flash tool. So you could actually make this whole text simpler by removing that sentence and...

- [st-flash](https://github.com/stlink-org/stlink) uses SWD interface. (default)
- [stm32flash](https://github.com/stm32duino/stm32flash) uses serial interface.

### Serial port
Copy link
Contributor

@ThomasGravekamp ThomasGravekamp Nov 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... remove this header and explain briefly how to use stm32flash with the STM32-base project:

"If you want to use stm32flash, set the FLASHING_TOOL variable in your makefile with the value stm32flash. Make sure to also set the FLASHING_SERIAL_PORT variable to the name of the serial port you want to use."

@ThomasGravekamp ThomasGravekamp merged commit 9f6b21f into STM32-base:master Dec 2, 2022
Copy link
Contributor

Thanks for also updating the docs

DarinelSanguino reacted with thumbs up emoji

@DarinelSanguino DarinelSanguino deleted the add-guide-for-serial-flashing branch December 5, 2022 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ThomasGravekamp ThomasGravekamp ThomasGravekamp requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /