You are here

VESC debugging without optimization

1 post / 0 new
Siverian
Siverian's picture
Offline
Last seen: 2 years 5 months ago
Joined: 2020-02-12 23:06
Posts: 3
VESC debugging without optimization

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?