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

User avatar
tiny
Posts: 187
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 50 times
Been thanked: 87 times
Contact:

Problems with Serial EEprom 24C32 and DS3231 [solved]

Postby tiny » Tue Jan 09, 2018 5:30 pm

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 1662 times

Picture 2.jpg
Picture 2.jpg (47.08 KiB) Viewed 1662 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 1662 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.
These users thanked the author tiny for the post:
Benj (Tue Jan 09, 2018 6:30 pm)
Rating: 5.26%
 

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

Re: Problems with Serial EEprom 24C32 and DS3231

Postby Benj » Tue Jan 09, 2018 6:31 pm

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

User avatar
tiny
Posts: 187
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 50 times
Been thanked: 87 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Postby tiny » Tue Jan 09, 2018 7:19 pm

Thanks in advance Ben!

Christina

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

Re: Problems with Serial EEprom 24C32 and DS3231

Postby Benj » Wed Jan 10, 2018 5:17 pm

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 52 times

serial_eeprom.fcpx
(24.53 KiB) Downloaded 62 times
These users thanked the author Benj for the post:
tiny (Wed Jan 10, 2018 6:51 pm)
Rating: 5.26%
 

User avatar
tiny
Posts: 187
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 50 times
Been thanked: 87 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Postby tiny » Wed Jan 10, 2018 6:48 pm

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 1635 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.82 KiB) Downloaded 39 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.71 KiB) Downloaded 52 times


Regards
Christina

User avatar
tiny
Posts: 187
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 50 times
Been thanked: 87 times
Contact:

Re: Problems with Serial EEprom 24C32 and DS3231

Postby tiny » Sat Jan 20, 2018 4:52 pm

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