I'm using the TMS320F28069M to controller 2 motors based on Lab11d and added SCI to have a communication channel to a host controller.
Meanwhile I found out that I have to do motor re-identification for one of the motors. For motor identification I'm using Lab5b.
I'd like to stick with Lab11d as base and tried to implement the main() and mainISR() code from Lab5b into Lab11d and depending on the value of a variable switch between both modes. Unfortunately the motor won't run if the mode variable is set to use the code from Lab5b.
I seem to miss some important part that is different from Lab5b and Lab11d (besides dual motor). I even tried to do the same with Lab11 as base with the same result for the Lab5 part.