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.
Hello,
We are planning on using TMS320F28069 to control a PMSM motor. Our problem is that we should be able to do real time data debugging and CCS data logger is not good enough for our application. We need to be able to debug all internal variables real time. Can you suggest a solution? Appreciate the URGENT response.
Thanks
Hi George,
Can you be a little more specific on your debug requirements, what you tried in CCS, and how it was insufficient?
Are you interested in a snapshot of multiple variables at one time instant? The change in one-or more variables over time? What duration time-slices are relevant to your debug?
In general, if you are using JTAG, you will be limited to the JTAG interface speed (at best several Mbps). Using JTAG, different emulators (e.g. XDS100 vs XDS510USB) will also support different JTAG clock rates.
If JTAG data rates are sufficient, but CCS doesn't quite have what you want, you can try debug-server scripting: https://software-dl.ti.com/ccs/esd/documents/users_guide/sdto_dss_handbook.html
If you need to get more data out than JTAG could support, you'll need some custom code + use of a higher speed interface. SPI or CAN would probably be the place to start. You could also use a bank of GPIOs + some type of digital capture card.
Thanks Devin for your response! We generate the code using MATLAB. We don't use CCS. We are looking for the most appropriate method to debug the internal variables of the motor in real time to analyze the waveforms and everything else in details/That being said, what is your proposed method ?
If you are not using CCS, then its data logging is irrelevant.
In Simulink, you can use a SCI peripheral to throw out the data of your concern and capture them in a hyper-terminal. I recommend you to review examples in Matlab to help with that.
Thanks Ramesh! The SCI peripheral in MATLAB is so slow! We are looking for a real time solution to capture the waveforms of internal motor control variables. Any suggestion?
You could try SCI @5Mbps. If this is not enough, then try SPI and then use it a SPI to USB adapter to connect to PC. I have not done it myself, so I may not be able to offer any more information I guess.