I'm working on integrating Ti-RTOS with motorware and getting it to run on the Launchpad 28069 board. The motor sometimes moves a quarter turn after setting the run variable, but otherwise remains motionless.
Motorware lab03a was used as my starting point. The motor parameters in user_j5.h work just fine in a normal lab03a project. The major changes made to the lab03a code were removing pie.c (handled by RTOS now), and turning the main motorware control loop into an RTOS task. The hal.c file was also copied into the project and renamed as hal_USER.c, since the pie stuff had to be removed. None of the files in the c:\ti folder are modified for this project.
* The ADCs work (gMotorVars.VdcBus_kV)
* Speed reporting works (gMotorVars.Speed_krpm)
* The ADC interrupts occur at the correct intervals
* Ti-RTOS tasks work
I've attached a git repo that has my current progress. Help on this would be most appreciated.
Thanks,
Grant