Other Parts Discussed in Thread: MOTORWARE, HALCOGEN
After flashing hex of StartApplicationBug project into the board, it is found that the program cannot run in the board. At this time, the board consumes very little current, only 0.082A, as shown in the figure below:
After flashing hex of StartApplicationGood project into the board, it is found that the program can run in the board. At this time, the board consumes current, 1.087A, as shown in the figure below:
These two projects in the attachment.
Both these two procjects use AcPmsm_FocLoop() function, the difference is:
In the project of StartApplicationGood,AcPmsm_FocLoop() is running in the task of “1ms runnable”, which is from Vector Autosar.
In the project of StartApplicationBug,AcPmsm_FocLoop() is running in the Interrupt of “epwm”, which is from Ti Vim.
So, we just don’t know why this interrupt cause this hex can’t run in TMS570LS0714.