Hello,
i make my first Speps with Stellars now and want to set up a simple UART Programm, which sends one Character to my PC
I use a kind of the Exampleprogramm from here:
http://www.ti.com/lit/ug/spmu019o/spmu019o.pdf
And tit looks like this:
#include "inc/hw_gpio.h"
#include "inc/hw_memmap.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/sysctl.h"
#include "driverlib/uart.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom_map.h"
void main(void)
{
// 50 MHz Takt - 16MHz Quarz + PLL
SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |
SYSCTL_OSC_MAIN);
UARTConfigSetExpClk(UART1_BASE, SysCtlClockGet(), 19200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
UARTEnable(UART1_BASE);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); // Port F als GPIO aktivieren
GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_4); // GPIO 4 als Output
while(1)
{
UARTCharPut(UART1_BASE, 'c');
SysCtlDelay(2000000);
}
}
but there is no communication to my PC.
My Hardware is the Stellaris Launchpad and i want to connect the Pin B1 with Rx of an FT232.
Why?
Thank you!
Daniel
