In Single conversion mode the ADC does one conversion and than stops. You can select single conversion in CubeMx by setting…
single
ADXL345 Accelerometer and STM32
The ADXL345 is a complete 3-axis acceleration measurement system with a selectable measurement range of ±2 g, ±4 g, ±8 g, or ±16 g.