PSoC4 Cy_Boot component update problem for gcc printf

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

cross mob
JeMe_288686
Level 1
Level 1

Updating component Cy_boot 4.1 to Cy_boot 4.2 (PSoC Creator 3.3) causes gcc printf to fall into an interrupt unhandled trap;

   

I tried component CY_Boot 5.2 and the problem is still there. It works fine with component Cy_boot 4.1. 

   

What is the new procedure to use gcc printf ?

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Use sprintf() and copy the string to your device, safest procedure.

   

In .cydwr file view select System-tab and set Heap Size to 0x200

   

In project build settings linker set use newlib nano and float formatting

   

 

   

Bob

0 Likes

Thank you Bob,

   

Heap size to 0x200  solved the problem for printf,  No need to modify all my code.

0 Likes