- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I am using the CY8CKIT-042 pioneer kit and PSOC Creator 3.2 SP1 to develop my first PSOC application.
Firstly, I create an example project - BLE HID mouse, after doing the Build and Program, the kit works fine and the Putty on PC can receive the debug message.
And when I create a new project and revise the _write() for using printf() function (refer to the debug.c of example project), when I do the Debug, the firmware will be frozen at printf(), I found it will run into the infinite loop CY_ISR() in Cm0Start.c.
I tried the puts() function, it frozen too; It seems to happen when I called the function of stdio.h.
I have checked the Build Settings of the new project, it is same with the example project.
please see the attached main.c.
Aaron Deng
Solved! Go to Solution.
- Labels:
-
BLE
-
ispn:39611:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you check what is the size of the heap memory allocated to the system from the project's CYDWR -> Systems tab?
Assuming that you have proper libraries to use that function in your system, you may have to increase the memory set for heap size in your project.