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