energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
794 stars 672 forks source link

Serial1 on LaunchPad Stellaris: UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1 #278

Closed rei-vilo closed 9 years ago

rei-vilo commented 10 years ago

UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1.

The Stellaris® LM4F120H5QR Microcontroller Datasheet (lm4f120h5qr) mentions those pins, for example on tables 21-5 and 21-6, consistent with the pins map I've released.

But why the pins aren't defined on HardwareSerial.cpp?

//*****************************************************************************
//
// The list of UART GPIO configurations.
//
//*****************************************************************************
static const unsigned long g_ulUARTConfig[8][2] =
{
    {GPIO_PA0_U0RX, GPIO_PA1_U0TX}, {GPIO_PC4_U1RX, GPIO_PC5_U1TX},
    {GPIO_PD6_U2RX, GPIO_PD7_U2TX}, {GPIO_PC6_U3RX, GPIO_PC7_U3TX},
    {GPIO_PC4_U4RX, GPIO_PC5_U4TX}, {GPIO_PE4_U5RX, GPIO_PE5_U5TX},
    {GPIO_PD4_U6RX, GPIO_PD5_U6TX}, {GPIO_PE0_U7RX, GPIO_PE1_U7TX}
};

Is there a reason?

capture decran 2013-10-19 a 22 13 15 capture decran 2013-10-19 a 22 13 04 capture decran 2013-10-19 a 22 16 12 capture decran 2013-10-19 a 22 16 00

ghost commented 10 years ago

Hi Vilo,

Thanks for your updates. Would you please share with me how to compile the Energia latest source code? 

Thanks, Tony

在 Oct 20, 2013,6:50 AM,Rei Vilo notifications@github.com 写道:

UART(1) is active on PC_4 / PC_5 but not on PB_0 / PB_1.

The Stellaris® LM4F120H5QR Microcontroller Datasheet (lm4f120h5qr) mentions those pins, for example on tables 21-5 and 21-6, consistent with the pins map I've released.

But why the pins aren't defined on HardwareSerial.cpp?

// // // The list of UART GPIO configurations. // // static const unsigned long g_ulUARTConfig[8][2] = { {GPIO_PA0_U0RX, GPIO_PA1_U0TX}, {GPIO_PC4_U1RX, GPIO_PC5_U1TX}, {GPIO_PD6_U2RX, GPIO_PD7_U2TX}, {GPIO_PC6_U3RX, GPIO_PC7_U3TX}, {GPIO_PC4_U4RX, GPIO_PC5_U4TX}, {GPIO_PE4_U5RX, GPIO_PE5_U5TX}, {GPIO_PD4_U6RX, GPIO_PD5_U6TX}, {GPIO_PE0_U7RX, GPIO_PE1_U7TX} }; Is there a reason?

— Reply to this email directly or view it on GitHub.

rei-vilo commented 10 years ago

See Build Energia at the wiki.

rei-vilo commented 10 years ago

Unfortunately, SoftwareSerial can't be used as an interim solution, because it isn't available on Stellaris / Tiva C platform.

haneefmubarak commented 10 years ago

What are the substitutes? Perhaps we could patch SoftwareSerial.

spirilis commented 9 years ago

Closing this in lieu of issue #552 with pullrequest