Movatterモバイル変換


[0]ホーム

URL:


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

STM32CubeProg.sh(Erase memory when using DFU)#98

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

narzul
Copy link

Programming problems when using DFU.

  • When programming with DFU, unable to write non-zero data to already programmed memory.
  • Resulting in memory map error, validation error and incorrect data.

Added

  • Added: ERASE="yes"
  • When DFU is selected

@fpistm
Copy link
Member

Hi@narzul
It seems more a workaround than a real solution.
Erasing the whole flash each time will reduce life of the flash cycle.
Which board you used?

@narzul
Copy link
Author

Greetings@fpistm
The board that I'm currently working on is the adafruit stm32f405.
However this is a persistent problem for all stm32f4xx chips when programming using DFU.
It is also a general problem for many other stm32 chips, when programming using DFU.

But if you think that this is something that should be addressed a different place, would you be able to point me in the right direction, so I can write a fix there.

@fpistm
Copy link
Member

I have the Adafruit F405 and never had this issue same for other series. Which version of cubeprogrammer you used?

@narzul
Copy link
Author

I'm running STM32CubeProgrammer v2.16.0

@fpistmfpistm added the wontfixThis will not be worked on labelJun 27, 2024
@fpistm
Copy link
Member

fpistm commentedJun 27, 2024
edited
Loading

Hi@narzul
Since the script was reworked, seestm32duino/Arduino_Core_STM32#2323 and#97 .

The simplest way is to use theboards.local.txt

# Add erase option to dfu upload method, --erase could also be usedGenF4.menu.upload_method.dfuMethod.upload.options=-v {upload.vid} -p {upload.pid} -e

@fpistmfpistm closed thisJun 27, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
wontfixThis will not be worked on
Projects
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@narzul@fpistm@ms-macrocaps

[8]ページ先頭

©2009-2025 Movatter.jp