Hi, I simply trying to print into a terminal using DBG_vPrint I have tried so many combinations
but no matter what I cant get the uart to print into a terminal.
I am using a JN-5169 dongle with BeyondStudio.
And I modified the JN-AN-1174 template (IEEE 802.15.4 Application Template for JN516x) end device file and makefile.
The files compile fine and the resulting bin can be loaded into the jn5169 dongle.
I attached these modified files to this message.
I am doing the print call in:
PUBLIC void AppColdStart(void)
{
/* Disable watchdog if enabled by default */
#ifdef WATCHDOG_ENABLED
vAHI_WatchdogStop();
#endif
vInitSystem();
DBG_vUartInit(DBG_E_UART_1, DBG_E_UART_BAUD_RATE_115200);
// vStartActiveScan();
while (1)
{
DBG_vPrintf(TRUE,"Hello");
// vProcessEventQueues();
}
}
The issue must be something related to my makefile or am I using this UART function incorrectly?
Any help would be much appreciated.
The bug was in the makefile .
CFLAGS += -DDBG_ENABLED should come right after TRACE ?= 1
That and I disabled DEBUG ?= HW