Page 1 of 1

Problems with Serial EEprom 24C32 and DS3231 [solved]

Posted: Tue Jan 09, 2018 5:30 pm
by tiny
I'm using FC 7.3.0.6 on Windows 7 Pro 64Bit.

Item 1) Serial EEprom 24C32:
User elctronix has already reported this problem!
The Serial EEprom can not be addressed with FC7.3 via I2C. After calling up the program file the EEprom is configured like in picture 1, if I then assign the correct pins, I can not set the Remappable pins on the same values (picture 2). If the program then has to access the memory, the program hangs.
Picture 1.jpg
Picture 1.jpg (41.18 KiB) Viewed 4311 times
Picture 2.jpg
Picture 2.jpg (47.08 KiB) Viewed 4311 times
Item 2) RTC DS3231
The configuration (Figure 3) is unchanged from FC 7.2, which correctly assigns I2C pins. The program will already hang on the Init DS3231.
Picture 3.jpg
Picture 3.jpg (64.18 KiB) Viewed 4311 times
Everything ran smoothly under FC 7.2.

If you can control this please!

Christina

Re: Problems with Serial EEprom 24C32 and DS3231

Posted: Tue Jan 09, 2018 6:31 pm
by Benj
Thanks I'll investigate this for you and see if I can get the problem resolved.

Re: Problems with Serial EEprom 24C32 and DS3231

Posted: Tue Jan 09, 2018 7:19 pm
by tiny
Thanks in advance Ben!

Christina

Re: Problems with Serial EEprom 24C32 and DS3231

Posted: Wed Jan 10, 2018 5:17 pm
by Benj
Hi Christina,

To help me get to the bottom of the problem for you can you tell me which target device you're currently using.

Here are updated components to hopefully solve the 24C32 issue. Simply copy to your "Flowcode 7/components" directory and restart Flowcode.
serial_24c16.fcpx
(24.45 KiB) Downloaded 200 times
serial_eeprom.fcpx
(24.53 KiB) Downloaded 207 times

Re: Problems with Serial EEprom 24C32 and DS3231

Posted: Wed Jan 10, 2018 6:48 pm
by tiny
Sorry, of course: ECIO40P16

First, I changed the internal RTC feature instead of the DS3231 macro, works.
Then copied the two component files into FC / Components (with restart FC), no success.
Configuration Serial EEprom see Picture4
Picture4.jpg
Picture4.jpg (37.47 KiB) Viewed 4284 times
I have tested all device addresses (0-7), no success.
With an I2C Spy, I've seen that the Serial EEprom is not addressed directly:
I2C Spy does not work.csv
(3.69 KiB) Downloaded 197 times
The first entry is a BME280, works.
The following entries are from the RTC macro, this one works.
Only the serial EEprom is missing!

Then I loaded the HEX file from the working FC 7.2 version.
The second file I2C Spy is working.csv is an I2C image of the working program, you can see that RTC, BME280 and Serial EEprom are working fine.
I2C Spy is working.csv
(15.25 KiB) Downloaded 202 times
Regards
Christina

Re: Problems with Serial EEprom 24C32 and DS3231

Posted: Sat Jan 20, 2018 4:52 pm
by tiny
The component 24C32 does not work even with the changed component, I can set the software I2C pins, but the remappable pins remain unchanged on C4 / C3 and are not changeable.
For the UART components, I only change the remappable pins and the TX / X pins are tracked correctly.
In the meantime, I have temporarily written my own component for access to the serial memory, but it would be nice if I could use the existing function in Flowcode again.
I am using FC 7.3 with the new updates with ECIO40P16.

Christina