I have opened the motor and took a look at the controller. First thing I've noticed is a strong burnt plastic smell, and also a strange black mark on the inside of the case (see right arrow of the first pic). Is this worrying, or could this be from normal wear or manufacturing?
This is what the bare motor looks like. Not sure what to think of it... Does the color looks off? Resistance between the coils is about 1 ohm, but this could be because of my very low quality multimeter leads.
Now for the controller: I was able to program and verify the MCU using an ST-Link, so this part seems to be working. Visually, the controller looks fine, couldn't see any obviously blown part.
But the controller behaves very strangely when I disconnect the bare motor (so that it is only connected to the battery and XH18 display): if I plug in the battery and turn the battery on, I can use the battery's gauge button just fine. I can then turn on the display, see the "Welcome" message on boot and for a fraction of a second, I can see the speed indicator before the display abruptly turns off. When this happens, the battery's gauge button stops working.
Is this normal behavior when the bare motor and speed sensor are disconnected from the controller? Or does this definitively means something is wrong with my controller?
I believe one component of the controller got toast, but I still cannot rule out a problem of the motor because of the color and black mark...
Also, I apologize for my bad english. My ebike has been my only mean of transportation for the past few months, while I waiting for my motorcycle licence and exams. This is something that takes forever to get in my country (France). So for the next few weeks, I will have to rely on barely adequate public transport that comes thrice a day to my village...