René's URL Explorer Experiment


Title: STM32H7x option_write reads incorrect address in flash · Issue #45 · STMicroelectronics/OpenOCD · GitHub

Open Graph Title: STM32H7x option_write reads incorrect address in flash · Issue #45 · STMicroelectronics/OpenOCD

X Title: STM32H7x option_write reads incorrect address in flash · Issue #45 · STMicroelectronics/OpenOCD

Description: A recently added support for STM32H7R/H7Sx MCUs (aa109db) broke stm32h7x option_write command on STM32H757BIT6. I tested stm32h7x option_write command with 3 different commits: Most recent commit - 0a084c2 Added support for STM32H7R/H7Sx...

Open Graph Description: A recently added support for STM32H7R/H7Sx MCUs (aa109db) broke stm32h7x option_write command on STM32H757BIT6. I tested stm32h7x option_write command with 3 different commits: Most recent commit -...

X Description: A recently added support for STM32H7R/H7Sx MCUs (aa109db) broke stm32h7x option_write command on STM32H757BIT6. I tested stm32h7x option_write command with 3 different commits: Most recent commit -...

Opengraph URL: https://github.com/STMicroelectronics/OpenOCD/issues/45

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"STM32H7x option_write reads incorrect address in flash","articleBody":"A recently added support for STM32H7R/H7Sx MCUs (https://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b) broke `stm32h7x option_write` command on STM32H757BIT6. I tested `stm32h7x option_write` command with 3 different commits:\n\n- Most recent commit - https://github.com/STMicroelectronics/OpenOCD/commit/0a084c29345576911fb8d10fcbd158d0361b6186\n- Added support for STM32H7R/H7Sx - https://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b\n- One commit prior to adding support for STM32H7R/H7Sx - https://github.com/STMicroelectronics/OpenOCD/commit/b62cbc2e853189e730fd94e6d9c0a1d3ceb2661f\n\n# Hardware\n\n- STM32H757BIT6 - dual core\n- STLINK-V3MINIE\n\n# Software\nOpenOCD is running in a Docker container:\n```\nRUN git clone https://github.com/STMicroelectronics/OpenOCD.git \u0026\u0026 \\\n    cd OpenOCD \u0026\u0026 \\\n    git checkout insert_git_commit_here \u0026\u0026 \\\n    ./bootstrap \u0026\u0026 \\\n    ./configure --enable-stlink \u0026\u0026 \\\n    make -j$(nproc) \u0026\u0026 \\\n    make install \u0026\u0026 \\\n    cd .. \u0026\u0026 \\\n    rm -rf OpenOCD\n```\n\nI am running OpenOCD with the following command\n`openocd -f openocd_stm32h757.cfg`\n\nI am connecting to the OpenOCD with telnet\n`telnet 127.0.0.1 4444`\n\n### Configuration file:\n```\n# openocd_stm32h757.cfg\nsource [find interface/stlink-dap.cfg]\ntransport select dapdirect_swd\nsource [find target/stm32h7x_dual_bank.cfg]\nreset_config srst_only \n```\n\n# Test results\n\nI tried disabling booting of CM4 by changing option byte FLASH_OPTSR_PRG and also tried `stm32h7x option_write` example in the [OpenOCD documentation section 12.5.2](https://openocd.org/doc/pdf/openocd.pdf). The output of the commands tested with different commits are shown in a table below. Only commit b62cbc2 produced expected results and wrote the option byte.\n\n| Command | Most recent https://github.com/STMicroelectronics/OpenOCD/commit/0a084c29345576911fb8d10fcbd158d0361b6186 | STM32H7R/H7Sx support https://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b | Prior to adding support https://github.com/STMicroelectronics/OpenOCD/commit/b62cbc2e853189e730fd94e6d9c0a1d3ceb2661f |\n| ------------- | ------------- | ------------- | ------------- |\n| reset | - | - | - |\n| stm32h7x option_read 0 0x1c | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 |\n| stm32h7x option_write 0 0x20 0x00000000 0x00400000 | Failed to read memory at 0x51e3be78 \u003cbr\u003e error while reading from address 0x51e3be78 | Failed to read memory at 0xe000edf4 \u003cbr\u003e error while reading from address 0x856d9473 | - |\n| stm32h7x option_read 0 0x1c | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1b86aaf0 |\n| stm32h7x option_write 0 0x20 0x8000000 0x8000000 | Failed to read memory at 0x51e3be78 \u003cbr\u003e error while reading from address 0x51e3be78 | Failed to read memory at 0xe000edf4 \u003cbr\u003e error while reading from address 0x856d9473 | - |\n| stm32h7x option_read 0 0x1c | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1bc6aaf0 | Option Register: \u003c0x5200201c\u003e = 0x1b86aaf0 |\n\n# Observations\n\nDifferent functions are used in `src/flash/nor/stm32h7x.c` for reading values for commands `option_read` and `option_write`.\n\n| commit | OpenOCD command | function in stm32h7x.c |\n| ------------- | ------------- | ------------- |\n| aa109db | stm32h7x option_read | stm32x_read_flash_reg |\n| aa109db | stm32h7x option_write | stm32h7_read_flash_reg_by_index |\n| b310b3b | stm32h7x option_read | stm32x_read_flash_reg |\n| b310b3b | stm32h7x option_write | stm32x_read_flash_reg |\n\n# Conclusion\n\nIt seems function `stm32h7_read_flash_reg_by_index` in `src/flash/nor/stm32h7x.c` used in `option_write` command reads incorrect address from flash.\n\nThanks in advance!","author":{"url":"https://github.com/novakmichalinfo","@type":"Person","name":"novakmichalinfo"},"datePublished":"2026-01-13T13:57:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/45/OpenOCD/issues/45"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5e078d21-8e55-7834-8a2a-853317a746fe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E6C:29A644:67D6C42:8932B9D:6A5DDA61
html-safe-noncea9c66c2bbecb4a51368343a7fa7c0e0cffe4280ac86d70b69347b4632ca73285
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTZDOjI5QTY0NDo2N0Q2QzQyOjg5MzJCOUQ6NkE1RERBNjEiLCJ2aXNpdG9yX2lkIjoiNDA5NDg5Mjk4NTEwNDA2MzA3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f0e9135d86c67ecd03d5c8a4fac1a33de55f74926208ab9d250a1559645ad8c
hovercard-subject-tagissue:3808972566
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STMicroelectronics/OpenOCD/45/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5d2753fd83ac672bdf2360f4588ac1e91f8cb018962e8cfd61e743e0d9e232af/STMicroelectronics/OpenOCD/issues/45
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d2753fd83ac672bdf2360f4588ac1e91f8cb018962e8cfd61e743e0d9e232af/STMicroelectronics/OpenOCD/issues/45
og:image:altA recently added support for STM32H7R/H7Sx MCUs (aa109db) broke stm32h7x option_write command on STM32H757BIT6. I tested stm32h7x option_write command with 3 different commits: Most recent commit -...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenovakmichalinfo
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/STMicroelectronics/OpenOCD git https://github.com/STMicroelectronics/OpenOCD.git
octolytics-dimension-user_id10744877
octolytics-dimension-user_loginSTMicroelectronics
octolytics-dimension-repository_id226140039
octolytics-dimension-repository_nwoSTMicroelectronics/OpenOCD
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226140039
octolytics-dimension-repository_network_root_nwoSTMicroelectronics/OpenOCD
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/STMicroelectronics/OpenOCD/issues/45#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTMicroelectronics%2FOpenOCD%2Fissues%2F45
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTMicroelectronics%2FOpenOCD%2Fissues%2F45
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=STMicroelectronics%2FOpenOCD
Reloadhttps://github.com/STMicroelectronics/OpenOCD/issues/45
Reloadhttps://github.com/STMicroelectronics/OpenOCD/issues/45
Reloadhttps://github.com/STMicroelectronics/OpenOCD/issues/45
Please reload this pagehttps://github.com/STMicroelectronics/OpenOCD/issues/45
STMicroelectronics https://github.com/STMicroelectronics
OpenOCDhttps://github.com/STMicroelectronics/OpenOCD
Notifications https://github.com/login?return_to=%2FSTMicroelectronics%2FOpenOCD
Fork 56 https://github.com/login?return_to=%2FSTMicroelectronics%2FOpenOCD
Star 197 https://github.com/login?return_to=%2FSTMicroelectronics%2FOpenOCD
Code https://github.com/STMicroelectronics/OpenOCD
Issues 21 https://github.com/STMicroelectronics/OpenOCD/issues
Pull requests 4 https://github.com/STMicroelectronics/OpenOCD/pulls
Actions https://github.com/STMicroelectronics/OpenOCD/actions
Security and quality 0 https://github.com/STMicroelectronics/OpenOCD/security
Insights https://github.com/STMicroelectronics/OpenOCD/pulse
Code https://github.com/STMicroelectronics/OpenOCD
Issues https://github.com/STMicroelectronics/OpenOCD/issues
Pull requests https://github.com/STMicroelectronics/OpenOCD/pulls
Actions https://github.com/STMicroelectronics/OpenOCD/actions
Security and quality https://github.com/STMicroelectronics/OpenOCD/security
Insights https://github.com/STMicroelectronics/OpenOCD/pulse
STM32H7x option_write reads incorrect address in flashhttps://github.com/STMicroelectronics/OpenOCD/issues/45#top
https://github.com/novakmichalinfo
novakmichalinfohttps://github.com/novakmichalinfo
on Jan 13, 2026https://github.com/STMicroelectronics/OpenOCD/issues/45#issue-3808972566
aa109dbhttps://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b
0a084c2https://github.com/STMicroelectronics/OpenOCD/commit/0a084c29345576911fb8d10fcbd158d0361b6186
aa109dbhttps://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b
b62cbc2https://github.com/STMicroelectronics/OpenOCD/commit/b62cbc2e853189e730fd94e6d9c0a1d3ceb2661f
OpenOCD documentation section 12.5.2https://openocd.org/doc/pdf/openocd.pdf
b62cbc2https://github.com/STMicroelectronics/OpenOCD/commit/b62cbc2e853189e730fd94e6d9c0a1d3ceb2661f
0a084c2https://github.com/STMicroelectronics/OpenOCD/commit/0a084c29345576911fb8d10fcbd158d0361b6186
aa109dbhttps://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b
b62cbc2https://github.com/STMicroelectronics/OpenOCD/commit/b62cbc2e853189e730fd94e6d9c0a1d3ceb2661f
aa109dbhttps://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b
aa109dbhttps://github.com/STMicroelectronics/OpenOCD/commit/aa109db19ffd22eb05e18b010140fb562934533b
b310b3bhttps://github.com/STMicroelectronics/OpenOCD/commit/b310b3ba9d89a059e0edc4f374a31632ec1c58fd
b310b3bhttps://github.com/STMicroelectronics/OpenOCD/commit/b310b3ba9d89a059e0edc4f374a31632ec1c58fd
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.