Problem with eeprom read/write in V9

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
deon
Posts: 5
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:38 pm
Has thanked: 1 time
Been thanked: 2 times

Problem with eeprom read/write in V9

Post 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.

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Problem with eeprom read/write in V9

Post 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.

deon
Posts: 5
Joined: Thu Dec 10, 2020 3:38 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Problem with eeprom read/write in V9

Post 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.

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Problem with eeprom read/write in V9

Post 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.

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Problem with eeprom read/write in V9

Post 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.

deon
Posts: 5
Joined: Thu Dec 10, 2020 3:38 pm
Has thanked: 1 time
Been thanked: 2 times

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

Post 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.

Post Reply