Part Number: AM3358
For UART_BasicExample_bbbAM335x_armTestProject l2_global_address (uintptr_t addr) do nothing or addr = l2_global_address (addr), am I right? Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM3358
For UART_BasicExample_bbbAM335x_armTestProject l2_global_address (uintptr_t addr) do nothing or addr = l2_global_address (addr), am I right? Thanks
Hi Anping,
From what I was able to find, l2_global_address() function is NOT used for AM335x device (do nothing). You can double check this if you run your UART example in step by step mode and check if your flow will enter into this function body and compute the addr or just exit doing nothing. You can also try to put HW breakpoint into this function and check the flow.
pdk_am335x_1_0_15/packages/ti/drv/uart/test/src/main_uart_test.c
/**
* @b Description
* @n
* Utility function which converts a local GEM L2 memory address
* to global memory address.
*
* @param[in] addr
* Local address to be converted
*
* @retval
* Computed L2 global Address
*/
static uintptr_t l2_global_address (uintptr_t addr)
{
#if defined(SOC_K2H) || defined(SOC_K2K) || defined(SOC_K2L) || defined(SOC_K2E) || defined(SOC_K2G) || defined(SOC_C6678) || defined(SOC_C6657) || \
defined(DEVICE_K2H) || defined(DEVICE_K2K) || defined(DEVICE_K2L) || defined(DEVICE_K2E) || defined(DEVICE_K2G) || defined(DEVICE_C6678) || defined(DEVICE_C6657)
This function seems to be specific for DSP, while AM335x device do NOT have DSP.
Regards,
Pavel
Hi Pavel
Thank you for your reply. Do you know the difference between UART_read and UART_read2, UART_write and UART_write2. At what situation each of them is used. Thanks
The question has been answered on the other thread so please close this if the original topic of the thread is resolved.