energia / msp432-core

MSP432 Core and Framework
14 stars 10 forks source link

Request for soft serial and parity in MSP432 #15

Open robertinant opened 7 years ago

robertinant commented 7 years ago

From @Suyogaerospace on January 31, 2016 9:30

Hi I think all four serial ports should be made available for msp432 with parity support and if possible soft serial too.

Copied from original issue: energia/Energia#835

robertinant commented 7 years ago

From @dronus on June 28, 2016 13:9

Actually the original Arduino variants have this settings now, see: https://www.arduino.cc/en/Serial/Begin So Energia should just implement the updated API.

This is especially important for the MSP432 boards, as the settings can't be changed by low level poking like it is possible on the Arduino and Energia MSP430 platforms, as it is implemented by precompiled runtime code on the MSP432.

robertinant commented 7 years ago

From @RickKimball on June 28, 2016 15:38

You might look at the change I made for the msp430 with usci. The uart on the msp432 is pretty close to this. You just need to implement the appropriate arm code.

https://github.com/energia/Energia/issues/766 https://github.com/energia/Energia/commits/issue_766 http://forum.43oh.com/topic/9063-usci-patch-for-parity/

robertinant commented 7 years ago

From @dronus on July 14, 2016 14:12

The UART is controlled by TI runtime libraries on the MSP432 EMT core, so this is a completely different thing. No registers are set, but TI libraries linked and configured by config struct's.

Currently these structs are only configured by the baudrate setting of Serial.begin, and this initalisation code is buried in Wiring runtime library binary blob.

So to "implement" those settings, one have to change the Serial.begin source code and rebuild the binary libraries. However, there seems to be no documentation at all how those where built.