Hi
I have the AM3359 ICE board 1.0A and AM335X_StarterWare_02_00_00_06 and am335x_sysbios_ind_sdk_1.0.0.3 installed. The serial console via the FTDI chip is connected to UART5. That differs from the basic UART examples (without SYS/BIOS) where UART0 is used. I whote a simple console output to the ICE board and changed the output to UART5:
#include "uartStdio.h"
void main(void)
{
char rxByte;
UARTConsoleInit();
UARTprintf("Hello World\n");
while(1)
{
rxByte = UARTGetc();
}
}
My problem ist that I can see the "Hello World" output on the terminal, but the UARTGetc() function is not running into the breakpoint.after that line if I send some characters (is does not receive the char):
/* Waits indefinitely until a byte arrives in the RX FIFO(or RHR). */
while(0 == (HWREG(baseAdd + UART_LSR) & UART_LSR_RX_FIFO_E));
My pinmux setup according to schematic AM335x_ICE_3h0013_Schematic_Rev 1_0a.pdf is:
void UARTPinMuxSetup()
{
//uart5_txd_mux
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(8)) = 4 | CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_PUDEN |
CONTROL_CONF_LCD_DATA8_CONF_LCD_DATA8_RXACTIVE;
//uart5_rxd_mux
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(9)) = 4;
}
How do I compile the examles from AM335X_StarterWare_02_00_00_06\examples\evmAM335x\, they seem to be for another board ?
Is there a basic example collection for the ICE board without SYS/BIOS for the AM3359 ICE ?
regards, bjoern