Hello,
I am using the SmartSnippets Toolbox to perform RF testing. I can read and write the XTAL Trim value from RF Master and see the improvements in offset error in my BLE transmissions with my spectrum analyzer.
What is the correct method to program this trim value into the OTP? In the configuration script, I have tried setting the Trim/Calibration value: GP_CLK_TRIM to my desired value (0x8B). I burned this to the OTP and can read it back correctly. However, it does not affect the trim value of my crystal on boot. I do not wish to use the production line testing tool and its crystal trimming method at this time.
Thanks,
Mike
Device:
Hi mbwjr12,
Thanks for your question. You are partially correct. The calculated trim value should be writte into the OTP Configuration Scrip but not in the GP_CLK_TRIM. The CLK_FREQ_TRIM_REG should be configured with the trim value. Please check the otp_cs.c file from the SDK and line 224. This piece of code copies the trim value if it is written to the OTP CS to . In order to burn the trim value in the OTP CS, you should do the following steps.
Thanks, PM_Dialog