what relationship between the OTP and the optimal crystal configuration?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
dialog@67490083
Offline
Last seen:10月3weeks ago
加入:2020-06-01 33
what relationship between the OTP and the optimal crystal configuration?

Hi,

I pursed two WiRa Kits and follow "http://lpccs-docs.dialog-semiconductor.com/wira_social_distancing_tag_example/user_guide.html" to learn about "Crystal trimming".

Please refer to the attachment which is output from one of my kit, then tell what relationship between "CLK_FREQ_TRIM_REG" and "otp@0x0345".

Thanks,

QiZhang

Attachment:
Device:
PM_Dialog
Offline
Last seen:5 days 8 hours ago
Staff
加入:2018-02-08 11:03
Hi QiZhang,

Hi QiZhang,

Thanks for your question. The described procedure will crate a new entry into the OTP configuration script and the CLK_FREQ_TRIM_REG will be configured with the correct trimmed value. All you need to do is to follow the steps described in the tutorial and then the device will boot with the proper trimmed value. Once the system boots. The entered trimmed value will be applied in every boot. In case you want to change it, you should run the procedure again and the old entry will be overridden with the new trimmed value.

Thanks, PM_Dialog

dialog@67490083
Offline
Last seen:10月3weeks ago
加入:2020-06-01 33
Hi PM_Dialog,

Hi PM_Dialog,

Please refer to my question's attachment. "CLK_FREQ_TRIM_REG" value is not equal opt value @0x0345. ("otp@0x0345")

Because otp register only allow to programe one time, How I can verify "cli_programmer COM257 write_otp 0x0345 2 0x50010000 0x000AFD1F" execute successfully?

Thanks,

QiZhang

PM_Dialog
Offline
Last seen:5 days 8 hours ago
Staff
加入:2018-02-08 11:03
嗨QiZhang,

嗨QiZhang,

As mentioned in my previous comment, the provided script take care of the whole procedure and it will program the CLK_FREQ_TRIM_REG with the proper value. Yes, the OTP can be programmed once, but this procedure will create a new entry in the configuration script. If you repeat the procedure, you will create a new entry and the previous one will be overridden. (it will exist0 as Configuration Script entry, but it will be overridden by the SDK). Please try to follow the steps descripted in the user manual, and the 32M crystal will be trimmed properly.

Thanks, PM_Dialog