Thank you, both of you.
I'll use a CSA, but I have one question; won't I have problems, since my circuit is 3.3v and I want to measure on the 5V circuit?
Or should I just supply the CSA from the 3.3v line, and use the voltage reference in the STM32 to supply the CSA reference?
If the rest of your circuit is also 3.3V, you may monitor current after LDO.
It's not the 3.3v circuit I want to measure, but whatever is connected to the VBUS, but thanks.
BR Jonas