This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Code composer studio version 4.0

I am using SMC75 EVM kit for controlling permanent magnet synchronous motor. For that I am using Code Composer Studio version 4.0. My problem is with watch window. when I follow the instructions given by the company, they stated to "EnableFlag 1". Initially , EnableFlag is 0. When I am trying to set EnableFlag to "1" in watch window, it is reset to "0". It is not stable to 1. So, please give me a  suggestion .

  • Hi,

    Although I don't know the board or have access to the instructions from the manufacturer, I would first inspect if the variable EnableFlag is located in RAM or in Flash memory - the address where the variable is located can give you a clue.

    If located in Flash, then the instructions may not be correct - the watch window does not write to Flash memory directly.

    If located in RAM, then I would open a memory view (menu View --> Memory Browser) and point it to the variable's address in memory. See if you can modify it from there. If you can, then I suspect there is a bug with the watch window. If you can't, then further investigation may be needed.

    If the suggestions don't work for you, can you send the CCS version, the variable's address and the device being used?

    Hope this helps,

    Rafael 

     

  • Thank you for your reply. I am sending the files. I stucked in the build level 1. In the 18th page while running the program I need to change the EnableFlag to 1, but when  I am changing the variable to 1, it it set to again 0. Help me, I am new to CCS.

    7824.SMC75 EVM PMSM Sensored FOC Example Execute on CCSv4.pdf

     

  • not at all familiar with that chip, but i needed to turn on 'silicon realtime mode' to edit variables in the watch window on C674x devices. Its the icon in the top toolbar of the clock and the pause button - have you tried that?

  • Hi,

    I tried "Silicon real time mode" to edit variables, but it is again reset to zero, not stable to 1. I tried a lot, but I was unable to set 'Enable Flag' to 1. Please advise me .

    Thank you.7888.SMC75 EVM PMSM Sensored FOC Example Execute on CCSv4.pdf