Serial EEPROM data not write in PIC32MZ2048ECH144

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Serial EEPROM data not write in PIC32MZ2048ECH144

#1 Post by sharfudeen » 08 Apr 2019 16:02

Dear mikroElektronika team,

I am facing the problem to write data into serial EEPROM 24LC512 with using PIC32MZ2048ECH144 PIM
https://www.mikroe.com/easypic-fusion-v ... 2048efh144
It reads existing data which is already stored in EEPROM.
That means it has not write new data.
I have attached the Project Zip file.
Please support me to solve the problem. it is most urgent.
Thanks
Sharfudeen
Attachments
EEPROM I2C.rar
(323.15 KiB) Downloaded 84 times

sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#2 Post by sharfudeen » 10 Apr 2019 08:22

Dear Petar,
I have tried with different code to write. Please find attached the Project code.
In this code, write the data 0x00 to 0x79 increment 1
writing address, high - 0x00 and low - 0x00 to 0x79.
After writing, read the data from the above address.
I have read different data.
00 85 8C 13 50 FC 00 .... 00
Why did not read the written data?
Thanks
Sharfudeen
Attachments
EEPROM I2C.rar
(323.15 KiB) Downloaded 78 times

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#3 Post by petar.suknjaja » 11 Apr 2019 09:27

Hi,
I've tested also and have found that it really doesn't write the code.
Let me investigate this further and I'll let you know what I've found out.
Kind regards,
Petar

sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#4 Post by sharfudeen » 11 Apr 2019 10:16

Dear Petar,
Thanks, I will wait for your reply after investigation
Thanks
Sharfudeen

sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#5 Post by sharfudeen » 15 Apr 2019 11:34

Dear Petar,

Any update for the above?

Thanks
Sharfudeen

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#6 Post by petar.suknjaja » 16 Apr 2019 10:08

Hi,
Yes I am, sorry for delayed response,
I've managed to run the code to read what's been written to EEPROM by changing the place of the input parameters on the line
EEPROM_24C02_RdSingle(hi,lo ); to
EEPROM_24C02_RdSingle(lo,hi);

Added the UART debug and soon I've read all the characters I wrote to the EEPROM.

Kind regards,
Petar

sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#7 Post by sharfudeen » 16 Apr 2019 10:39

Dear Petar,

Thanks for your reply
Still same even changed the parameter as you said above

Thanks
Sharfudeen

sharfudeen
Posts: 12
Joined: 03 May 2018 15:24

Re: Serial EEPROM data not write in PIC32MZ2048ECH144

#8 Post by sharfudeen » 16 Apr 2019 13:11

Dear Petar,

Please send zip file which is working fine

Thanks
Sharfudeen

Post Reply

Return to “mikroC PRO for PIC32 General”