Hi, you can refer to the KBA: Updated Code Example to Fix Out-of-box Project for CY8CKIT-148 – KBA225730
The CE was updated so that all the buttons in the -148 kit would work as expected. TuneMagSense function basically calibrates the IDAC codes (to increase sensitivity) and Lx clock frequency (sensitive frequency region).
To tune your board, you can refer to Section 5: Tuning MagSense Component Parameters of the design guide: https://www.cypress.com/file/427771/download.
You could also develop from the CE, keeping it as a reference.
Thank you for your reply.
Does your answer mean that when using MagSense we must manually calibrate Lx and IDAC without enabling Auto-calibration?
Because, when Auto-calibration is enabled, Lx and IDAC will be overwritten.
Auto-calibration routine routine would be called during MagSense_Start API.
There maybe scenarios where the auto-calibration might return less sensitive IDAC codes. To enhance the sensitivity of sensors, we have added the TuneMagSense API after the auto-calibration is completed.
Yes, you could either enable auto-calibration and use TuneMagSense API, as done in the code example.
Else, you could refer to the guide and perform manual tuning.