Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > ISSP programmer preserve EEPROM?

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



ISSP programmer preserve EEPROM?
Moderator:
ARVI

Post Reply
Follow this topic



ISSP programmer preserve EEPROM?

pabbott posted on 11 Apr 2012 1:37 PM PST
Member
2 Forum Posts

First, how do you search the forum?  ( I tried to find the answer myself, but can't even figure out how to search within a forum)

Anyway, I need to reflash a lot of devices in the field, but preserve the EEPROM which contains calibration data.

It would save a lot of time (=$) if we don't have to repeat the calibration routine.

Is this possible with the ISSP programmer?

Thanks




Re: ISSP programmer preserve EEPROM?

Bob Marlowe posted on 11 Apr 2012 02:14 PM PST
Top Contributor
1768 Forum Posts

Hi,

at the right hand upper corner you find a "Keyword Search". The number of found articles are not only restricted to this community, so you'll have to read a bit to find what you're looking for.

 

The hex-file-format from which a PSoC1 is programmed allows for gaps (not programmed areas). When all other fails, you'll have to edit the file manually and delete the area where your EEProm-area lies.

 

Bob



Re: ISSP programmer preserve EEPROM?

pabbott posted on 14 May 2012 01:30 PM PST
Member
2 Forum Posts

Thanks for the suggestion, but it didn't seem to work.

Here's what I did:

I identified the EEPROM section of flash from E2PROM_1.h

#define  E2PROM_1_START_ADDR      (0xff * 64)                        // absolute address of E2PROM_1 EEPROM device
which is 0x3fc0.

In the .hex file, I deleted the following line.

:403fc00030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030c1

Then tried to load the hex file in the ISSP programmer, but it complained that the checksum was invalid.

So, I initialized the area to zeros in the C code with the following in main.c:

// clear the EEPROM space
#pragma abs_address 0x3fc0 //E2PROM_1_START_ADDR
    const char InitialValues[64] = {0x00};
#pragma end_abs_address
 

Now, the EEPROM area is all zeros, and I can delete the line without the ISSP programmer complaining.

:403fc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c1

But alas the EEPROM memory was still wiped when flashing.

Now that I think about it- I guess the chip has to do a full erase in order to be reflashed since it is secured.  Seems like there may be no solution to preserving the calibration data...

 






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