Jump to content
43oh

/dev/ttyACM1 UART of MSP430F5529 - garbage data received on the PC


Recommended Posts

Hi,

This is about the new F5529 LaunchPad.

I've set up the uart communication on UCA1 (P4.4 as TXD, P4.5 as RXD), 9600 8N1. When using the /dev/ttyACM1 application UART on the Ubuntu I get the garbage on the minicom. But when I connect these RXD/TXD pins directly to PC's RS232 (RS over USB) then it works perfect. That means that UART on UCA1 works ok and that something is wrong with application UART available on /dev/ttyACM1.

Has anyone used this successfully?

 

Best Regards,

tml

Link to post
Share on other sites

UCA1 TX/RX lines on target MSP430F5529 are connected to UCA0 RX/TX lines on MSP430F5528 eZ-FET Lite. If you are writing that everything is working fine when you connect UCA1 TX/RX lines on target MSP430F5529 directly to PC (over your adapter), but not working if it is going over eZ-FET Lite, then the problem is in eZ-FET Lite USB-UART bridge software. Unfortunately firmware source code is still no available, and there is no description about supported BR, but it should work (per LP datasheet) with any BR up to 1 Mbps. Is there any reason why you need so low (9600 bps) BR. Try for example 115200 bps.

Link to post
Share on other sites

UCA1 TX/RX lines on target MSP430F5529 are connected to UCA0 RX/TX lines on MSP430F5528 eZ-FET Lite. If you are writing that everything is working fine when you connect UCA1 TX/RX lines on target MSP430F5529 directly to PC (over your adapter), but not working if it is going over eZ-FET Lite, then the problem is in eZ-FET Lite USB-UART bridge software. Unfortunately firmware source code is still no available, and there is no description about supported BR, but it should work (per LP datasheet) with any BR up to 1 Mbps. Is there any reason why you need so low (9600 bps) BR. Try for example 115200 bps.

 

Ok, it works well for 115200, I should have checked it before I spammed the forum.

Surprisingly I had to use UCA1BR0 = 70 (8MHz) instead of 69 as for 69 it still pushed garbage (8000000/115200=69.44(4))

 

Thanks!

 

Best Regards,

tml

Link to post
Share on other sites

For UART setup, can be used http://forum.43oh.com/topic/2640-uart-configurator

 

// 8000000 Hz  115200 bps

UCA0BR0 = 0x45; // 69

UCA0BR1 = 0x00;

UCA0MCTL = UCBRS_4 + UCBRF_0; // 0.444 * 8 = 3.555

 

There is some misalignment with F5528's UART. I tried the settings you suggested and get garbage on ttyACM1 (application UART).

The only setting that works for me is:

UCA0BR0 = 0x46; // 70
UCA0BR1 = 0x00;
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...