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.
Problem with eeprom read/write in V9
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 3:38 pm
- Has thanked: 1 time
- Been thanked: 2 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: Problem with eeprom read/write in V9
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Problem with eeprom read/write in V9
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.
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.
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: Problem with eeprom read/write in V9
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: Problem with eeprom read/write in V9
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.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Problem with eeprom read/write in V9 [SOLVED]
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.
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.