Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

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



PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN
Moderator:
RKRM

Post Reply
Follow this topic



PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

brucenhorvath posted on 23 Aug 2012 8:20 AM PST
Member
6 Forum Posts

 Going from ES2 to ES3 silicon apparently requires the EEPROM_Start() which calls CyEEPROM_Start() that turns on EEPROM power.    ES2 did not require the Start.   What worked under ES2 silicon stopped working with ES3. Suspect Low Power tweaking of the EEPROM.

ES3 gives an CYRET_UNKNOWN (255) for EEPROM calls if EEPROM Power not Started. Wish the CyStatus could have been more explicit; would have saved me a quite few hours of intense debugging time.   Hope this saves somebody else some time.

sequoiacpe




Re: PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

Bob Marlowe posted on 23 Aug 2012 10:32 AM PST
Top Contributor
1768 Forum Posts

sequoiacpe,

thank you for sharing your experience with us!

 

Bob



Re: PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

anir posted on 24 Aug 2012 10:30 PM PST
Top Contributor
24 Forum Posts

 Hi,

      The EEPROM datasheet in Creator 2.0 (EEPROM v1.60) mentions about the APIs support. e.g.: For API EEPROM_Start(), it mentions that "This API is available only for PSoC 3 Production or later". PSoC 3 ES3 is production silicon.

Also while using EEPROM and Flash APIs please don't forget to read System Reference Guide - section "Flash and EEPROM". It tells us that CySetTemp() API needs to be called once before executing a series of Flash / EEPROM writing functions.

Regards, Aniruddha



Re: PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

brucenhorvath posted on 24 Aug 2012 06:21 AM PST
Member
6 Forum Posts

 AND CySetFlashEEBuffer() is needed if not ECC enabled (which I suspect is the typical norm).

But my point was that EEPROM code that worked on ES2 probably will not work on ES3. And my latest look at EEPROM example projects (only 1 available) does not include the Start. Cypress should be more explicit when changing what is needed for operation when they make a significant change; and expand the cystatus to be more helpful to tell what is the true problem when any change obsoletes old workable code with new requirements. And test and update where required when a change effects an example project. 

sequoiacpe



Re: PSoC3 EEPROM without EEPROM_Start yields CYRET_UNKNOWN

anir posted on 29 Aug 2012 11:12 PM PST
Top Contributor
24 Forum Posts

Hi,

     In PSoC Creator  2.0 Component Pack 3, I see that the example project clearly mentions that EEPROM start is for PSOC3 ES3 or later and also EEPROM_Start() API is called guarded by 'CY_PSOC3_ES3' define. Are you referring to some other PSoC Creator version/ build? Please note that PSoC3 ES2 device support has been removed from PSoC Creator 2.1 as PSoC3 ES3 is the production quality silicon. I suggest you to move to PSoC3 ES3 silicon.

     I agree that the status for most of the APIs does not clearly mention the reason for failure. I will try to convey your concern to the appropriate team. Thanks for your suggestion.

 

Regards, Aniruddha






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20