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.

MSP430F67791A: Problem communicating with MSP through Energy Measurement Design Center

Part Number: MSP430F67791A
Other Parts Discussed in Thread: EVM430-F6779,

Hello,

I am using a EVM430-F6779 - 3 Phase Electronic Watt-Hour EVM for Metering and also I designed a custom board based on this evaluation board.

I tried to communicate the evaluation board with the computer using the old e-meter GUI and library that is based in IAR. Communication works well: Both TX and RX have signals (There are not phases connected during this test, I powered the evaluation board using the DGND and DVCC pins)

      

When I upload this firmware to the MSP430 of my custom board, it also works well:

      

After checking my custom board can communicate with the the old firmware and the old GUI, I upload the firmware using the MSP Energy Measurement Design Center Guide to the evaluation board:

Checking the signals I can detect when the software sends the signal to start send information to the PC. Also, I can detect all the bytes that are sent to the computer.

    

Now, when I try to program the firmware to my custom board, I cannot detect the MSP:

When I check the signals, I can see how the TX signal arrives to the MSP, but it does not answer:

    

My initial thoughts were my schematic was wrong, but if the old GUI can work, it means the MSP has TX/RX connection well, and means I can flash the program well. Also, i check the same firmware with both MSP. Both of them has the same reference: MSP430F67791A

I searched if I did some mistake deleting an important connection:

Am I doing something wrong with the firmware or the schematic is wrong?

Thanks,

David

  • Hi 

    Why UART RX line keep low?  Have you check the connection of the UART jump line?

  • Hi Allen,

    I checked it again, and the new FW of the energy center puts TX line of my custom board to low. When I program the old FW to my custom board TX line remains high.

    I also checked in the evaluation board, and both FW maintains the TX line at high level.

  • Hi

    The code generated by EMDC is different between two FW. You can double check in debug mode to compare the EVM board and your custom board different performances. Whether custom board receive the TX signal and perform the same as the EVM board.

  • Hi Allen,

    Thanks for the suggestion: finally I discovered the problem.

    I spend some time in order to be able to compile the program and debug it, but once I did it, I saw the firmware did not pass this code:

    Then, I started to watch the meaning of those registers and I saw they are related to the oscillator. I saw with the oscilloscope the oscillator was not oscillating. After try a few times to change the code, finally I compared the old firmware code with this new one, and I saw there was one difference:

    After copy this line from the old firmware to the new one, finally, it started working.

    I am not sure why it did work, but at least now is working and I can focus in other kind of problems.

    Thanks for the suggestions.

**Attention** This is a public forum