Dear all,
I m starting Development on AM335x Starter Kit. It's Cortex M3 Processor in AM3358 ZCZ Package. I m running Linux on target and got the " Run Modus Debug " working. When my User Application uses a Method to print somthing out like printf("Hello World from Sitara") everything works fine . But when i try to get the UARTECHO Example running while Linux is running the process is beeing killed. I suppose the kernel is preventing my User Application from accessing UART . Notice the following Schematic :

My task what i have to do is simple : My Application which will run on the AM3358 SK Board has to communicate through a serrial connection (UART) with a host PC. The host sends the Commands through serial port, the Application recieves that and exectutes something, and sends Answers back to the Host.
In the Schematic we can see that there are UART0 , UART1 available. My Questions are:
1) - Why is my Application beeing stopped when i m trying to access the Processors Register using HWREG( something) |= something ???
2)- How could i find out which Devices (UART , Timer , Spi, .. ) are already initialized or used by the Kernel, and which of them i can use for my Application and which not ? ( Source Code in the SDK would be helpful ? )
3)- When i want to access Registers to initalize a UART or SPI , does that mean that i have to do it as a Kernel Module ?? or in another privileged Mode ?
4)- Which is the easiest way to make the Commuication between my Application work ? Which UART do i have to use? UART0, UART1 ? if UART1 How could i connect UART 1 on the board ? I m planing to use UART0 because its connected to USB0, but i don't know it that will work ..
5)- From my Remote Terminal connected to the Target when i look in /dev/ ... i do not find any ttyS0 there is just tty0 .. so is UART0 , UART1 ready and initialized in the kernel so all what i have to do to get access to /dev/tty* and read and write the Data from it , or do i have to initialize it first ??
6)- If i programmed a Kernel Device Driver to initialize UART and tried to do HWREG( something) |= something would that work ? or is there another way to initalise a device in linux ? (Source Code initalizing a Device in SDK would be helpful ! )
7)- How would the Device Interrupt work with my Application, to tell it that there is Data to read in ttyS0 as example?
8)- Where the hell in SDK can i find the some Device Driver Code witch would initalize a uart , timer or any thing used by the kernel ? i guess the source code is in / user/ ti-sdk-am335x-evm-05.06.00.00/board-support/linux-3.2.0-psp05.06.00.00
You don't have to answer all the Questions, i just wrote them to make my Problem clear.
best regards

