Problems with Serial EEprom 24C32 and DS3231 [solved]

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Problems with Serial EEprom 24C32 and DS3231 [solved]

Post 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 4278 times
Picture 2.jpg
Picture 2.jpg (47.08 KiB) Viewed 4278 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 4278 times
Everything ran smoothly under FC 7.2.

If you can control this please!

Christina
Last edited by tiny on Thu Jan 25, 2018 3:17 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Post by Benj »

Thanks I'll investigate this for you and see if I can get the problem resolved.

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Post by tiny »

Thanks in advance Ben!

Christina

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Post 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 199 times
serial_eeprom.fcpx
(24.53 KiB) Downloaded 206 times

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Post 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 4251 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 195 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 201 times
Regards
Christina

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Post 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

Post Reply