Hi everybody,
I am triyng implement the funcionality of ECAP to measure a rotor velocity of a fan.
I studied the example "ecap_capture_pwm" and it works very well. However, when I introduce the routine "void InitECapture()" on my developed firmware (that is already well advanced) I can not access the ECAP registers. When I put a breakpoint on the first line of InitECapture() and watch the ECap1Regs on Watch Windows even pressing F11 (stepping into) the registers values do not change. I tried force the change on Watch Windows but without sucess.
My initialization code is similar the example "ecap_capture_pwm" and the diferences were exhaustively tested and did not suggest the solution. I changed the Build Options, now are identical. I changed the memory because my application will run on flash and the example runs on RAM, I changed the example to flash and it still works ok, so my memory configuration is ok.
Please, anyone has seen or experienced it?
I work with C2808 for two years and sincerly I do not know what to do. I tested it soo much for a week and until now, the problem still.
I am using CCS 3.3.46.1, CGToll v4.1.3 and Blackhawk 2000.
Please, anybody help me?
Regards,
Andrea