How to write EEPROM of PSoC3 while programming new firmware?

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

cross mob
LeYu_281131
Level 3
Level 3

It is very easy, using the API to write a data in EEPROM.

   

but, i want to know write a data in EEPROM just once when i write new firmware.

   

maybe, it is possible write a data through miniprog3.

   

is it possible?

   

Please reply a solution.

0 Likes
4 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I do not see in Miniprog3 user manual any references to programming

   

EEPROM in addition to FLASH, or for that matter any output hex file

   

format that includes EEPROM data from the linker. The only api I see

   

that can put anything into EEPROM is Keil MON51, and appears to be

   

restricted to the debugger.

   

 

   

You could always consider a modified bootloader that could have the

   

additional capability of running EEPROM APIs.

   

 

   

Regards, Dana.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

The PSoC programmer user guide (version 3.15.1) says in part 2.12:

   

Because the PSoC 3 and PSoC 5 hex files do not describe EEPROM data; PSoC Programmer does not support EEPROM
programming from the GUI. PSoC Programmer allows you to clear EEPROM data after programming PSoC 3 and PSoC 5
chips...

   

So this leaves only the boot loader method dana mentioned.

0 Likes
Anonymous
Not applicable

 PSoC 3 and PSoC 5 hex files do not describe EEPROM data. PSoC Programmer does not support EEPROM programming.

   

The PSoC Programmer COM does support EEPROM actions at the API level, which allows you to create scripts or utilities that perform EEPROM actions. These examples are detailed in the Examples folder in the root installation directory of PSoC Programmer: 
[INSTALL PATH]\Cypress\Programmer\x.y.z\Examples\Programming\PSoC3_5\SWD\C_Sharp_EEPROM

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

In Creator 3.0 there is a new tab in the .cydwr view: E²Prom. There you may edit the eeprom contents for your need and program it together with the project.

   

 

   

Bob

0 Likes