You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "darrylring (via GitHub)" <gi...@apache.org> on 2026/10/01 20:44:12 UTC

[PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

darrylring opened a new pull request, #20434:
URL: https://github.com/apache/nuttx/pull/20434

   ## Summary
   
   This adds support for the OTP flash region in the STM32H5 via both low-level functions and an eFuse lower half driver. This complements the OTP block read/write/lock driver that was added in https://github.com/apache/nuttx/pull/20144.
   
   Word read/write requires some care, because reading unwritten OTP flash triggers flash double ECC errors. Re-writing OTP flash corrupts the data and ECC, so reading will also trigger flash double ECC errors. This driver handles this by disabling flash ECC error NMIs during reads, but also checking for the ECC errors and behaving accordingly.
   
   Closes https://github.com/apache/nuttx/issues/20188
   
   ## Impact
   
   New functionality, gated by `CONFIG_STM32H5_OTP_WORD`.
   
   ## Testing
   
   **NOTE: Testing not complete. I want to solicit review on the overall design, however.**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #20434:
URL: https://github.com/apache/nuttx/pull/20434#issuecomment-5948938556

   @darrylring please rebase your patch to fix the conflict.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #20434:
URL: https://github.com/apache/nuttx/pull/20434#issuecomment-5957589991

   @darrylring did you finish the testing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "darrylring (via GitHub)" <gi...@apache.org>.
darrylring commented on PR #20434:
URL: https://github.com/apache/nuttx/pull/20434#issuecomment-5956676403

   @xiaoxiang781216 Thanks, done. My two PRs had some overlap and duplication, but I wanted this one to stand alone until the EDATA change landed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "darrylring (via GitHub)" <gi...@apache.org>.
darrylring commented on PR #20434:
URL: https://github.com/apache/nuttx/pull/20434#issuecomment-5956694796

   Oh, and pinging @acassis @liam-geotab @mykhailosopiha @aryan9948 in reference to https://github.com/apache/nuttx/issues/20188


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #20434:
URL: https://github.com/apache/nuttx/pull/20434


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [WIP] arch/arm/stm32h5: Add OTP/eFuse support [nuttx]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20434:
URL: https://github.com/apache/nuttx/pull/20434#issuecomment-5940314435

   <!-- membrowse-pr-comment -->
   ## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
   
   *No memory changes detected for:*
   - [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   - [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=c152d3bbcca16567b499a51424d766667a66a439&base=437306409e8a553ad82a08e6e8cafa382ee77c15)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org