Dear Jan,
I have made a good start on my first function and i'm still learning a lot!
Here is a picture of my function:

it still needs a lot of work, but i am now just fiddling around with enabling the cell balancing.
as you can see in the function, it enables the balancing on highestCell which is currently set to 1(cell 2).
this function is then called in the main function like so:

and after running this code, the voltage of cell 2 drops like expected(i charged cell 2 a bit to test the balancing feature).
though something is not right, cell 2 drops but cell 1 and 3 rise in voltage which is weird, right?
balancing off:

balancing on(by my function):

Can you tell my why cell 1 and 2 are rising in voltage? Is this expected behavior?
Note that when i connect the kl25z and turn on the balancing manually via the evalGUI, it reacts the same way(so it might be a hardware issue?).
kind regards,
Bart van Beunignen