energia / msp430-lg-core

15 stars 12 forks source link

2 UARTs MSP430FR5994 #72

Closed rei-vilo closed 5 years ago

rei-vilo commented 5 years ago

I'm trying to use 2 UARTs on a MSP430FR5994.

Unfortunately, I am confused when I compare the schematics of the LaunchPad with the pins_energia.h header file.

LP-pin 3 = J1.3 P6.1 MSP-pin 9 LP-pin 4 = J1.4 P6.0 MSP-pin 8

P2.1 RX debug - ezFET MSP-pin 42 P2.0 TX debug - ezFET MSP-pin 43

P3.5 = MSP-pin 48
P3.4 = MSP-pin 49
P4.3 = MSP-pin 34
P4.2 = MSP-pin 33
rei-vilo commented 5 years ago

Basic code is

void setup() {
  pinMode(RED_LED, OUTPUT);
  Serial.begin(9600);
  Serial1.begin(9600);
}

void loop() {
  delay(500);
  digitalWrite(RED_LED, 1 - digitalRead(RED_LED));

  Serial.print(millis());
  Serial.println(" Serial");

  Serial1.print(millis());
  Serial1.println(" Serial1");
}

A logic analyser gets nothing from pins 3 / 4.

rei-vilo commented 5 years ago

The exact same code works fine against the MSP430FR5969 LaunchPad.

StefanSch commented 5 years ago

just commited a fix and opened a pull request

StefanSch commented 5 years ago

merged