Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
JeGa_1293081
Level 1
Level 1
Welcome! 5 questions asked First question asked

when I try to enable debug_uart when experimenting CE224856_BLE_Low_Power_Beacon_with_Hibernate_RTOS,  it does not work, I have added UART TopDesign.cysch, and uart_debug.h uart_debug.c to project.

here is what's added into main()

        /* Initialize the hardware used to send debug messages, if debug is enabled

       in uart_debug.h header file */

    DebugPrintfInit();

   

    /* \x1b[2J\x1b[;H - ANSI ESC sequence to clear screen */

    DebugPrintf("\x1b[2J\x1b[;H");

    DebugPrintf("PSoC 6 MCU: Beacon Hibernate (RTOS)\r\n");

but did not see anything printed on terminal. can anyone help take a look at the code?

Thanks

0 Likes
1 Solution

Thank you PY_21, It's working and I have found reason why.

#define IO_STDOUT_UART      UART_STDIO

#define IO_STDIN_UART       UART_STDIO

Cheers!

View solution in original post

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
1000 replies posted 5 likes given First comment on blog

Hello,

Please refer the below modified project in which I'm able to print the data in terminal.

Please let me know if this helps.

Thanks,

P Yugandhar.

Thank you PY_21, It's working and I have found reason why.

#define IO_STDOUT_UART      UART_STDIO

#define IO_STDIN_UART       UART_STDIO

Cheers!

0 Likes