There is just 10k of RAM.
Found schematic problem: +6V and batt+ circuits are not connected.
Led and Moto controls work properly.
PWM doesn't work at all. Any PWM enable channel causes failure.
If anything related to PWM is uncommented CPU jumps to unhandled exception.
Standard PWM HAL test works.
Still doesn't die.
Removed unused stuff from mcucfg.h and it still works.
Works in native firmware.
PWM initialization works.
It seems ADC works as well. Default value is about 340.