renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
192 stars 82 forks source link

Incorrect ADC calibration handling in FSP4.6 for RM_MOTOR_120_DRIVER.c #294

Closed tototrixALC closed 11 months ago

tototrixALC commented 1 year ago

Hi everyone,

I noticed that FSP4.6 don't wait for CALIBRATION ending before start scanning. Screenshot from "RM_MOTOR_120_DRIVER_Open" function:

image

In this case, the first real ADC capture is wrong. The quick and dirty workaround for me: Step1: Add a small time before the StartScan

image

Step2: Handle the CALIBRATION interrupts to do nothing

image