The project based on the CY8C21x45/CY8C22x45 device does not work after the CSD2X User Module update to Ver 4.00. How can I resolve this issue?
The situation appears only if you select the “Single-channel with IDAC configuration only” option of CSD2X User Module and the baDACCodeBaselineL array is located not at RAM page 0. Location of the baDACCodeBaselineL array in RAM can be checked in the *.mp file located in the project’s output directory.
If the CSD2X User Module in your project uses the configuration and RAM location described above, then perform the following steps to restore project functionality:
- Adapt the CSD2X User Module parameters in the Parameters window and wizard
- Lock the CSD2X User Module
- Open the CSD2X.asm file
- Replace the CSD2X_SetIdacValue API code by the following:
mov [CSD2X_baDACCodeBaselineR], A ; Store
left DAC value
mov [CSD2X_baDACCodeBaselineL], X ; Store
right DAC value
mov reg[IDACR_D], A
swap A, X
mov reg[IDACL_D], A