Page 1 of 2

FlashEEPROM component emulate EEPROM

Posted: Fri Jun 24, 2022 8:20 am
by seokgi
Hello?
EEPROM was not included due to design mistakes. After searching the documentation, I found that there is a way to emulate a flash rom and use it like an EEPROM. Does FC9 also have a feature? Is it the FlashEEPROM component? Can you give a function description and example of FlashEEPROM?

Thank you.

Re: FlashEEPROM component emulate EEPROM

Posted: Fri Jun 24, 2022 9:38 am
by medelec35
Hello.
What target device have you got as the microcontroller has to have onboard flash program memory.
Have a look at your configuration settings and check if there is a SAF Enable option as that will have to be enabled.
If there is not then the microcontroller does not have Flash EEPROM capabilities.
I have not used the FlashEEPROM component with the 16F15324 I had, as it was not created then.
I used the normal EEPROM and that worked well.

Re: FlashEEPROM component emulate EEPROM

Posted: Fri Jun 24, 2022 11:38 am
by seokgi
It is a PIC24FJ512GA606.

Thank you.

Re: FlashEEPROM component emulate EEPROM

Posted: Fri Jun 24, 2022 1:04 pm
by BenR
Hello,

Yes the Flash EEPROM is the component you need. The properties for the component should allow you to choose a page in flash memory to assign to store the data.

There are then two functions read and write which allows you to read and write a 16-bit value from a 0 indexed location.

If you are having problems then let us know and I'll investigate and make an example to go on the wiki.

Re: FlashEEPROM component emulate EEPROM

Posted: Tue Nov 29, 2022 6:10 am
by seokgi
I did several tests. But that doesn't work. When the power is reset, the memory is also cleared.

The Initialize property is not visible.

can you send me an example?

Re: FlashEEPROM component emulate EEPROM

Posted: Tue Nov 29, 2022 9:18 am
by BenR
Hello,

Please can you send us your project or a cut down version of so we can investigate how you're using the component. Ill also have a look at the datasheet for the PIC24FJ512GA606 and make sure our component is setup correctly for use with this.

Re: FlashEEPROM component emulate EEPROM

Posted: Tue Nov 29, 2022 12:10 pm
by seokgi
Thank you.
I post my project here.
It's a bit complicated. Take a look at the E2PROM user macro section here. And in the Timer All part, I also want to know how to use the timer efficiently.
In the MODBUS user macro part, RS485 mode in BUS mode also does not work well. RS232 mode works fine.

Thank you for your attention.

Re: FlashEEPROM component emulate EEPROM

Posted: Wed Nov 30, 2022 12:51 pm
by BenR
Hello,

In your program you seem to write to locations 0, 1 and then on initialise you read from locations 1, 2.

For the Modbus component, maybe try adjusting the Reply delay property. Maybe try a value of 100 or 200 and hopefully this might make a difference.

Re: FlashEEPROM component emulate EEPROM

Posted: Thu Dec 01, 2022 1:50 am
by seokgi
Still not working.
I am uploading my modified project.
Can you write a simple example project for me?

And the FlashEEPROM component does not have the Initialise property in the attached picture. Will this work without it?

https://www.flowcode.co.uk/wiki/index.p ... _component

Re: FlashEEPROM component emulate EEPROM

Posted: Tue Dec 06, 2022 9:32 am
by seokgi
Hello.
Just request every time.

when will it be resolved?

Thank you.