Hello everyone,
I have an idea to convert car alternator as a motor. Form a physical point of view the motor is a synchronous engine as BLDC is. But in case alternator I have to apply current to the rotor. To control the current I want to extend VESC firmware. During the investigation the FW I've faced with an issue that if I disable optimization (-O0 CFLAG in .make) the FW is stuck in mc_interface_init(&mcconf) method in setup (main.c).
Does anyone have an idea of how to debug VESC FW?