Other Parts Discussed in Thread: C2000WARE
Hi,
I'm working on code generation using Matlab 2018b + Code Composer V6, I generate code using ert.tlc on C2000 TMS320F28335 target and I experience issues regarding accessing the flash during execution on my target.
In my Simulink model, I have a S-Function named "Ecriture_FLASH" with an associated .tlc file, this function uses the Flash_Erase and Flash_Program base functions and is dedicated to writing 16 bytes into Flash Sector H when calling the calibration mode. My model has several interfaces like I2C communication, PWM output, QEP input and so on, the model builds well and real-time execution on the target is OK, until I call the calibration mode.
When I enter this mode, I lose the communication, my target doesn't respond anymore. I checked that it was caused by Flash_Erase and Flash_Program specifically.
Previously I built this model using Matlab 2013a (with idelink.tlc) + Code Composer V5.5 and everything worked fine, I could access the flash without losing my system.
Is there any incompatibility between Matlab 2018, Code Composer V6 and the flash libraries of the F28335 ?
When I build my model, I get warnings about Flash28335_API_V210.lib like "build attribute vendor section TI missing in Flash28335_API_V210.lib<....obj>, compatibility cannot be determined" which I didn't have on Matlab 2013 + CCS V5.5. Or is it a problem regarding the linker ? I don't know where to look at.
Thank you for your help,
Best regards,
François