Skip to content

fix otp write errors on da14531 and da1469x at 96MHz - #64

Open
hupster wants to merge 1 commit into
ezflash:mainfrom
hupster:fix-otp-write
Open

hupster wants to merge 1 commit into
ezflash:mainfrom
hupster:fix-otp-write

Conversation

@hupster

@hupster hupster commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The default timings for OTP access seem to assume a 32MHz clock. If the CPU is already running at a different speed, OTP read and write errors occur unless the OTPC timings are corrected, which would be these values for 96MHz:

  • OTPC_TIM1_REG_96MHZ = 0x0999515F
  • OTPC_TIM2_REG_96MHZ = 0xA4040409

For the simplest solution and one that probably also works for the da1470x (untested), just reset the CPU.

Also fixed a bug that probably broke OTP access on the da14531.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant