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.

MSP430F6736: EVM430F6736

Other Parts Discussed in Thread: MSP430F6736, EVM430-F6736

Hi all,

I have been using the EVM430-F6736

Now, i pretend using only the msp430f6736A's microcontroller whith the academic objective (i am a Master's student) of programming the micro for doing a a system similar to the e-meter but much more simply. I pretend only doing measures of current, voltage, active power, reactive power and energies, power factor and frequency for a single phase. I have reprogrammed the EVM430F6736 (www.ti.com/.../slaa517e.pdf) with IAR software, with smaller codes.

The next step is using the serial port and communicate with my PC, because i have to save the measures because now i only can see the measures in the display. I have to use Matlab in this task. I am going to do a GUI with Matlab, but at first i have the objective of reading and printing the data.

I reprogrammed the EVM430F6736 with slaa517's code files (http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=slaa517&fileType=zip) literally, so the EVM430F6736 is now as when i received at first time.

To complete this objective, i did a measure of a lamp, with the serial port connected to the PC USB port (searching the port which is used, COM3 in this case). I used this basic Matlab code:

                               

I didn't received data.

But i saw in IAR project that serial.c wasn't included in the project emeter-6733 (I supose that this is the issue because i can't read and print data in matlab, but i'm not sure. If that isn't the problem tell me please). I added the file to the project, and now i have the following files in the project:

                                

When i programmed (with MSP-FET) in IAR the EVM430F6736 with serial.c file, i had the next issue:

Building configuration: emeter-6733 - Debug 
Updating build tree... 
serial.c 
Fatal Error[Pe1696]: cannot open source file "termios.h" C:\Users\Miguel\Desktop\slaa517_nuevooo\SLAA517\Source\emeter-ng\serial.c 62 
searched: "C:\Users\Miguel\Desktop\slaa517_nuevooo\SLAA517\Source\emeter-ng/../emeter-toolkit\" 
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\430\inc\dlib\" 
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\430\inc\" 
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.4\430\inc\dlib\c\" 
Error while running C/C++ Compiler 

Total number of errors: 1 
Total number of warnings: 0

At this moment i can't solve the problem, i tryed to add that library and searched the problem in the Internet, but i did'n solve the problem. 

Can someone help me?

Thanks in advance!

Miguel

  • Hello Miguel,

    From what you're describing, I suspect that you're not receiving any data from the EVM since it may be waiting on a certain command before sending data.

    In one of your previous posts, I promised to share our upcoming library that features CCS support. I’m happy to inform you that the official software release for the new Energy Measurement Design Center and Software Library is available on TI.com. It supports CCS and includes documentation and Design Center examples for the supported EVMs. Please download and install the release from the following link:

    www.ti.com/.../MSP430-ENERGY-MEASUREMENT

    Let me know if you have any questions.

    Regards,

    James

    MSP Customer Applications
  • Hi James,

    Thanks for try to solve my problem, but at this momment i can't. I know that i am not receiving data, as i told you in the previous post i it is because if i add serial.c IAR shows me mistakes (At first that i have to add a file .h called termios.h. Later, IAR shows my other new mistake because you need to add other file .h, i added the required file .h and it appears other issue, and again and again those problems). I don't know how to solve it (And in your previous answer i understand that you try to told me that the issue is easy to be solved, which is logical because there are files with serial configuration although they aren't programmed initialy in the EVM). For this reason i supose that really is not very difficult using serial port in this context and i am spending a lot of time in this without good results. Do you know the problem?

    On the other hand, you tell me that the new library that features CCS support for this project is available (I appreciate very much that you have remembered it). But i have some questions about that. As you know i am an student, finishing my studies. My End of Master Project is this, the project with EVM. I have modified all the MSP430F6736 code for my project in IAR. And I had to have the documents finished at the first June's fortnight. For that reasons i have to ask you if there are very big differences between using IAR or CCS in the project, and if you can explain me it briefly if it was a great improvement or is similar. (If you can give me your advice about using IAR or CCS for this project too). You have to consider that I have never used CCS and i haven't no much time to begin and doing the other parts of the project.


    Thanks in advance

    Miguel

  • Hello Miguel,

    I would recommend shifting away from the legacy library with IAR support and instead get familiar with the new Energy Measurement Design Center (EMDC) tool which features CCS support. The IDEs are very similar, and the time spent getting used to CCS would be much less than the time it may take you to resolve the IAR issues.

    What's great about the EMDC tool is that you can very quickly be up and running and measuring voltage, current, power, energy, etc. using one of the supplied example projects for the EVM430-F6736. I'm confident this will help accelerate your project, especially since you mentioned this was only part of the overall project. This was one of the main goals with the release of the new EMDC tool - make metrology measurements so easy and quick that users can focus on their application development rather than focusing all their time on getting the metrology measurements to work!

    I would encourage you to read through the Quick Start section in the EMDC Technology Guide (found here).

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum