I am using MPC5748G dev kit and I tried running EEPROM emulator "demo" program in the S32DS for power architecture. I changed the size to 40. But when ever I am trying to write to the EEPROM more than 10 characters it is only writing up to 10 characters. I tried reading it back, but in the buffer I can only see 10 characters. Please help me in this regard.
I am attaching demo code along with this mail.
已解决! 转到解答。
Hi,
I did quick test on my side and it works as expected. I just changed the size like this:
And that's the only change I did in the project.
Then I confirmed first record is programmed as expected:
Second one is also OK:
This is state of cleared buffer after programming of all records and before reading of a record with id 10:
And finally, I can see that the record is read as expected:
So, I can see no problem here.
Regards,
Lukas
I am using MPC5748G dev kit and i am executing it on S32DS. I have a query regarding EEPROM. how to select our desired address space in EEPROM and what is the relation between id and EEPROM?
Thank You so much.. It worked. But I have a query regarding this EEPROM demo code. suppose I need to write data into EEPROM in every 1 minute. I can use PIT Timer for that but, how to write into EEPROM without losing previous data ? I need to take value and put into EEPROM continuously. For the first it write perfectly. But for the 2nd loop it is going to Devassert and stuck in infinite loop. So, how to write in to a EEPROM in a loop?
Hi,
I did quick test on my side and it works as expected. I just changed the size like this:
And that's the only change I did in the project.
Then I confirmed first record is programmed as expected:
Second one is also OK:
This is state of cleared buffer after programming of all records and before reading of a record with id 10:
And finally, I can see that the record is read as expected:
So, I can see no problem here.
Regards,
Lukas
hank You so much.. It worked. But I have a query regarding this EEPROM demo code. suppose I need to write data into EEPROM in every 1 minute. I can use PIT Timer for that but, how to write into EEPROM without losing previous data ? I need to take value and put into EEPROM continuously. For the first it write perfectly. But for the 2nd loop it is going to Devassert and stuck in infinite loop. So, how to write in to a EEPROM in a loop?