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
Device:
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
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
嗨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