2017-03-10 05:55 AM
Hello All,
I am using SPC560B540L5 Discovery board and SPC stdutio 5.2.3 updated version code generator.
I am trying to emulate the Flash as EEPROM using EED driver. The IDE is installed with EEPROM emulation software and the way I generate the project is also proper even then the necessary configuration files and libraries for EED are not getting generated after generating the code. Normally, it should get listed under the EEPROM Emulation driver in components directory, but nothing exists other than ''mak'' folder. Please find the snap below.
But still I tried to build the project but the compilation failed due to below shown error.
I also tried with the Test application''SPC560Bxx_RLA EE Test Application for Discovery'' but the problem repeats.
Even I tried with different versions of (SPC5studio) 5.0.0, 5.2.1 and 5.2.3 but nothings works.
Kindly help in getting the problem resolved.
Thanks in Advance
Regards,
R.Santhamurthy
Solved! Go to Solution.
2017-03-13 03:22 AM
Hello R. SanthaMurphty ,
The problem has been reproduced on 5.2.3
it will be solvedofficially on 5.3.0.
Anyway, you can install these new eeprom feature by local update
(Uncheck Category)
it solves the issue
Best regards
Erwan
________________ Attachments : com.st.spc5.components.ee.spc56xx.feature.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyoG&d=%2Fa%2F0X0000000bCf%2Fq6FIo_IjnNRyxdR6tPnKjR0P_iipVTeUOHLhDbGJr0k&asPdf=false2017-03-13 03:22 AM
Hello R. SanthaMurphty ,
The problem has been reproduced on 5.2.3
it will be solvedofficially on 5.3.0.
Anyway, you can install these new eeprom feature by local update
(Uncheck Category)
it solves the issue
Best regards
Erwan
________________ Attachments : com.st.spc5.components.ee.spc56xx.feature.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyoG&d=%2Fa%2F0X0000000bCf%2Fq6FIo_IjnNRyxdR6tPnKjR0P_iipVTeUOHLhDbGJr0k&asPdf=false2017-03-13 05:26 AM
Hi Erwan,
I uninstalled and reinstalled EEPROM Emulation software from the Eclipse Marketplace and regenerated the code after restarting the IDE, but the problem didn't resolved.
What do mean by local update,Kindly suggest some quick solution or at least share the necessary source libraries related to EED since it is blocking issue for my development.
Kindly do the needful.
Thanks in Advance,
Regards,
R.Santhamurthy
2017-03-16 11:33 PM
Hi Erwan,
Thank you very much for providing the plugins related to EED. I done with the local update and the EED sources are getting generated now.
EED test code for SPC560B- Discovery RLA is working as described in ''readme'' file.
As per my understanding FSL_WriteEeprom writes 10 records each 4 bytes,
I would like to write one byte at a time in a record in this case how to increment to second byte address of the record. As per below code, the second argument of FSL_WriteEeprom is data ID(nothing but record address. If I want to write single byte per iteration what could be the value need to be passed as a second argument to FSL_WriteEeprom.
Thanks in Advance
Regards,
R.Santhamurthy
2017-03-20 09:35 AM
Hello Santhamurphy ,
Please refer to the document UM_SPC56xx_C90Flash_EED.pdf(cf document in the component)
if you want to store 1 Byte
i would use :
UINT8 eewritebuf[1];
/***********************************
* write some records in the eeprom *
************************************/
test_string_print(&SD1,'WRITE 10 bytes in the Eeprom: ');
for (i=0;i<10;i++){
eewritebuf[0]=i;
result = FSL_WriteEeprom(&eepromConf,i,1,(UINT32)&eewritebuf,callback);
if (result!=EE_OK){
checkResult(result);
return 0;
}
}
checkResult(result);�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?
in EEprom driver , there is no record address.
you should use FSL_ReadEEprom
Best Regards
Erwan
2017-03-30 06:43 AM
Hi Erwan,
Thanks for providing the source for EED component.
While working only with EED component the application is working fine. But when I am trying to add both Flash and EED component together in the application, it is giving error as 'conflicting types for FlashInit()', since the prototype for the FlashInit() differs in eed_flash.h of EED component and ssd_c90fl.h of Flash component.
In my application I should use both the EED and Flash components.i am attaching my test application with this kindly check and provide your valuable suggestion for resolving the reported issue.
________________ Attachments : Bootloader.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hyfe&d=%2Fa%2F0X0000000bBs%2FBPxgSvRx0MUI520Hx66F3RVgQ45ZpYIrOwrTXUtpEzQ&asPdf=false