Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > cy_boot update

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



cy_boot update
Moderator:
ANCY

Post Reply
Follow this topic



cy_boot update

stoyan posted on 09 Jun 2011 3:48 PM PST
Senior Member
14 Forum Posts

Hi,

Yesterday I have updated PSoC Creator.  When I load the project I have worked on, only cy_boot apears to be newer - from ver 2.2 to 2.21. I have updated it. I made some changes and since then there are only troubles with stuff, that worked before. I am not pasting any code here, because it is very long, but operators like:

    char outputStr [3] [20];

    float input [3];

     ...

    sprintf (outputStr [i], "%.3f", input [i]);

seemed to mess up the mem data.

I tryed:

      sprintf (outputStr [i], "%.3f", 123.456);

and it was the same. Then I tryed:

     char test [20];

     ...

     sprintf (test, "%.3f", 123.456);

same story.

It is working fine with %d, but with %f is not. I debug it several times wondering what's wrong with the code, and I found nothing. Then I get the backed up project (before the update). I started it up, it asked for an update and I choose no. The project runs smooth. The very same project - I loaded it again, and it asked again for update (I didn't mark it previous time as up to date). I made update. I check explicitly what exactly is going to e updated. Compile it, run it - data was messy. 

I spent almost a day chasing gosts. Can you please advise waht's going on. 
 

Thanks,

Stoyan Karanfilov




Re: cy_boot update

Gautam Das posted on 11 Jun 2011 11:15 AM PST
Cypress Employee
742 Forum Posts

Hi Stoyan,

 

From the description provided above, what I understand is that the data gets messy after the cy_boot is updated to latest version.

Here are a few questions to clarify the doubts:

1) Are all other components in the project also updated to the latest version?

2) Is the "stdio.h" header included in the project when sprintf( ) function is used?

 



Re: cy_boot update

Gautam Das posted on 13 Jun 2011 11:25 PM PST
Cypress Employee
742 Forum Posts

Hi Stoyan,

 

I was able to test the code which you have mentioned at my end on PSoC5 Development kit.

The project worked fine and the output was as expected. It was verified by displaying the values on an LCD.

 

In the sprintf( ) function, when "%.3f" is used, then it must be remembered that the minimum size of the array declared should be = Number of Integers + Number of digits after decimal point (which in this case is 3) + 1 (for decimal point) + 1 (for '\0' to indicate the end).

 



Re: cy_boot update

Gautam Das posted on 13 Jun 2011 11:29 PM PST
Cypress Employee
742 Forum Posts

The project is attached along with this comment.

 

Regards,

dasg



Re: cy_boot update

yliu posted on 13 Jun 2011 02:05 AM PST
Cypress Employee
29 Forum Posts

Hi,

This is an known issue of cy_boot_2.21 with PSoC5, please keep using cy_boot_2.20 while using PSoC5.

Regards,

Roy



Re: cy_boot update

yliu posted on 13 Jun 2011 02:09 AM PST
Cypress Employee
29 Forum Posts

Hi Dasg,

Your project is using cy_boot_2.20, but not 2.21 which comes along PSoC Creator 1.0 sp2.

Regards,

Roy



Re: cy_boot update

Gautam Das posted on 13 Jun 2011 03:16 AM PST
Cypress Employee
742 Forum Posts

Hi Roy,

 

Thanks a lot for bringing this to our notice.

I have used cy_boot version 2.20 and didn't update it to version 2.21

 

 

Regards,

dasg



Re: cy_boot update

stoyan posted on 13 Jun 2011 11:08 AM PST
Senior Member
14 Forum Posts

Hi,

Thank you all for replying my post. Dasg, I knew the issue was not in the C program itself, that's why I didn't attach any program. Roy, I am going to stick to 2.20 version of the cy_boot for time being. I'd like to know is this something that you guys are working on, or not at the moment. I mean with the next update of the cy_boot will there be a fix for that problem.

Thanks,

Stoyan Karanfilov



Re: cy_boot update

yliu posted on 13 Jun 2011 05:38 PM PST
Cypress Employee
29 Forum Posts

Hi, Stoyan, We are working on this issue, but I am not sure it will be fixed in next release of PSoC Creator. The update from 2.20 to 2.21 of cy_boot is for PSoC3 typically.

Regards,

Roy



Re: cy_boot update

hasa posted on 24 Apr 2012 01:58 AM PST

1 Forum Post





ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20