Part Number: LAUNCHXL-CC2640R2
Tool/software: TI-RTOS
I am trying to use the files at:
/home/marc/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/devices/cc26x0r2/driverlib
Uart.C and Uart.h and get an Exception on the first H# register write?
UART_init( ); UARTEnable(UART0_BASE ); UARTConfigSetExpClk( UART0_BASE, 24000000, 115200, UART_CONFIG_WLEN_8|UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE );
ROV on HWI module reports:
Decoded exception
Decoded Hard Fault: FORCED: BUSFAULT: PRECISERR.Data Access Error. Address = 0x4000102c
The routine that faults in driverlib UART.C:
__STATIC_INLINE void
UARTEnable(uint32_t ui32Base)
{
// Check the arguments.
ASSERT(UARTBaseValid(ui32Base));
// Enable the FIFO.
HWREG(ui32Base + UART_O_LCRH) |= UART_LCRH_FEN; <+++++++++++++++ when stepped, exception occurs ==================
// Enable RX, TX, and the UART.
HWREG(ui32Base + UART_O_CTL) |= (UART_CTL_UARTEN | UART_CTL_TXE |
UART_CTL_RXE);
}
I'm sure I am simply missing some other routine to call first to enable writing to the UART0_BASE addresses....
Anybody in the know let me know!
Cheers,
Marc Y.
