- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to use printf for debuging. I compiled Dynamic_GATT_Service_Configuration example and see that it`s work. I see all messages on Teraterm window. I placed in my project same code but because some reason if I use UART_UartPutString I see output but printf not 😞
#include <stdio.h> I placed.
What it can be ?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Add the debug.c/.h file from 'Dynamic_GATT_Service_Configuration' project to workspace explorer of your project.
2) Ensure that heap size in your project is big enough to drive printf. The value can be set in your project from CYDWR -> Systems Tab -> Heap size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Add the debug.c/.h file from 'Dynamic_GATT_Service_Configuration' project to workspace explorer of your project.
2) Ensure that heap size in your project is big enough to drive printf. The value can be set in your project from CYDWR -> Systems Tab -> Heap size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you route the UART output to the same pins as in the example project (and start the UART in your code)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please send us your program so we can look at it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As Roit already stated: CYDWR (this is the view where you usually set the pins)-> Systems Tab (at bottom of the window) -> Heap size (set to 0x200 at least)
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(this is the view where you usually set the pins) was important hint !
in example it was 0 , when I changed it start to work !
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are always welcome!
Bob