Page 1 of 1

Problem with eeprom read/write in V9

Posted: Sat Jul 02, 2022 4:48 am
by deon
Hi,

I have an old project using PIC16F628A that was created on V8. I converted it to V9 and found out that the eeprom read/write macro doesn't seem to be working. There is no activity in the console window and values written to eeprom memory isn't stored. All the locations show a value of FF. To be sure; I downloaded the examples from the Wiki, and none of them work as intended. In each case, the written values to eeprom isn't stored or updated in the console window.

Is this a known issue in V9.3?
I tested the eeprom function on V5/6/7/8 and it works perfectly.

Thanks.

Re: Problem with eeprom read/write in V9

Posted: Mon Jul 04, 2022 10:13 am
by BenR
Hello,

Is this a problem in the Flowcode simulation or on the physical chip? From saying the data is not in the console I'm assuming it's in the simulation so I'll investigate this for you.

Re: Problem with eeprom read/write in V9

Posted: Mon Jul 04, 2022 6:02 pm
by deon
HI,

I tried it in the hardware, and it is not writing to eeprom, so I guess it may not be producing the correct code for the eeprom read/write. This problem is not with the 16F628A only. I tried some other targets, and experienced the same problem in simulation and hardware.

The code produced by all the previous versions, works with the hardware as well.

Thanks.

Re: Problem with eeprom read/write in V9

Posted: Wed Jul 06, 2022 9:50 am
by BenR
Hello,

This is strange and I'll investigate it for you. Can you attach a project that shows the problem as that might help to highlight what's going wrong.

I have replicated some of the issues so looking at a fix for you now.

Re: Problem with eeprom read/write in V9

Posted: Wed Jul 06, 2022 10:59 am
by BenR
Hopefully sorted for you now in simulation and on embedded device. I've pushed the fix via the library update system.

Let us know how you get on.

Re: Problem with eeprom read/write in V9 [SOLVED]

Posted: Wed Jul 06, 2022 4:37 pm
by deon
Ben,

It works in the simulation, and I will test it on the hardware to make sure. I really appreciate your efforts.

Update: The few targets I tested with, it worked fine!

Thanks.