I am using the TI IDDK Develpoment kit to control a PMSM motor. I am following the instructions given in the "Sensored FOC of PMSM" document to control the motor. However, I facing a few problems while debugging the BuildLevel 1.
The code runs fine when executing from Flash. But when trying to use RAM is when I start facing issues.
These are the steps I am following:
1.) I erased the flash memory, using CCS On-chip Flash GUI (Debug view -> Tools menu -> On-Chip Flash -> Erase Flash).
2.) In the Debug Configs, the following options are set: "Run to Symbol - Main" and "On a Program Load or Restart".
3.) Instead of hitting the debug icon, I also tried Run-> Load -> Load program and select the load file then do a reset and restart after the load is complete. After this step, the program does stop at Main()
When I set the enable flag as 'high', the program stops after a point. The program gets stuck in the "Offset_CalCounter" for loop. How should I debug this problem? I am not able to figure out what I am doing wrong.
In addition I have the following doubts:
What does this warning mean :" Icepick_C_0 : Trouble reading memory block at 0x0 on Page 0 of Lenght 0xC8 ". I am new to embedded programming, and was curious to know what this warning implies.
Also, Sometimes when I rebuild a code; the "build" process takes forever long to complete. It is usually waiting for unfinished jobs. Could anyone tell me why this happens?
Thanking you.
Pai