I’m trying to use the CSDADC middleware, so I can measure the voltage at Vdda. The initialization function Cy_CSDADC_Init results in a fault every time. I traced the problem to function Cy_CSD_GetVrefTrim in cy_csd.c. The occurs when it tries to read a trim value from SFLASH.
After searching the Onethinx forum, I believe the fault is occuring because the sflash is read protected. So, does this mean I can’t use any middleware or PDL function that reads from sflash?