Hello!
On the S32K313, simply executing WFI usually puts the MCU into a light sleep state, which explains why your current only drops from ~40 mA to ~30 mA. The datasheet’s ~10 µA figures apply to the deepest low‑power modes (VLPS/STOP) with clocks and regulators shut down, and on a bare MCU rather than a dev board. To reach those numbers, you need to configure the proper low‑power mode registers, disable all system clocks and peripherals, and account for extra current draw from board components like regulators, LEDs, or debug circuitry. In short, ~30 mA is expected for light sleep, while the microamp range is only achievable in deep sleep modes with minimal external load.