Most of the projects in https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days use UART debug interface using printf commands. Just add the debug.c/.h file from any one of these projects to your own, bring the SCB-UART component to the TopDesign, start the component in main file and set the CyDwr -> Systems Tab -> Heap Size to 200 bytes (for a start). After this, you can use the printf comand (exact syntax) to send strings of any kind. In case you get a hard fault, increase the heap size.
Thank you for your reply roit
I will give it a try
I built the following code.
CyGlobalIntEnable; /* Enable global interrupts. */
UART_UartPutString("Hello Aneesh \n\r");
UART_UartPutString("Let us check whether this works \n\r");
I used the SCB UART component.The code was successfully built and programmed in the CY8CKIT-042BLE.
I am using Tera-Term for emulating the Hyper terminal.
This code (UART_UartPutString(txdata); ) should display the txdata. But this string is not displayed on the screen. What may have gone wrong?
I have also attached a workspace bundle regarding the same. Also is there any API in PSoC IDE that performs a similar function as serial.println() in Arduino IDE
amn_rev.Bundle01.zip 1.4 MB
Could you explain me how can you use TeraTerm? Is it possible to use USB Dongle as GATT Server and a smartphone as GATT client?
If I plug the USB dongle I can't see the bluetooth name in discover BT on my phone. :(