Hi all,
I have been trying to work with UARTE for both TX and RX, and my test code is working with RX perfectly but not TX, when i try to transmit my data using uart_tx() it returning success and then it will trigger UART_TX_ABORTED and then UART_TX_DONE but at the end we cant see any data on terminal.
when i step in further in to uart_tx(), i.e uarte_nrfx_tx() i have observed that when we call "i irq_lock();" its calling function "static ALWAYS_INLINE unsigned int arch_irq_lock(void)" from "C:\...\Nordic\v1.5.1\zephyr\include\arch\arm\aarch32\asm_inline_gcc.h"
and in this function the controller going into "#error Unknown ARM architecture"
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
{
unsigned int key;
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
__asm__ volatile("mrs %0, PRIMASK;"
"cpsid i"
: "=r" (key)
:
: "memory");
#elif defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
unsigned int tmp;
__asm__ volatile(
"mov %1, %2;"
"mrs %0, BASEPRI;"
"msr BASEPRI, %1;"
"isb;"
: "=r"(key), "=r"(tmp)
: "i"(_EXC_IRQ_DEFAULT_PRIO)
: "memory");
#elif defined(CONFIG_ARMV7_R)
__asm__ volatile(
"mrs %0, cpsr;"
"and %0, #" TOSTR(I_BIT) ";"
"cpsid i;"
: "=r" (key)
:
: "memory", "cc");
#else
#error Unknown ARM architecture
#endif /* CONFIG_ARMV6_M_ARMV8_M_BASELINE */
return key;
}
i dont know weather this is the exact reason for data not transmit, but i cant see any other.
please find the attached project
please help me
Best Regards
Rajender