This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Please, I need some suppot to program into flash memory using the Flash_Loader option that simulink offers.

Hi guys,

I am using matlab 2014a/simulink, in particular the toolbox Embedded Coder 6.6 that supports CCSv5 (I use CCS 5.4) to Build and Execute code into F28335 MCU experiemtal kit. The thing is that when I program code into RAM memory there is not problem at all. Nevertheless if I try to progarm into FLASH memory by means of setting the Flash_Loader field (this option is available in Coder Target/Pherispheral/) in "Progam, Erase, Verify" arise a error related to CCS. The error says that CCS is not well installed. I have check the CCS requeriments with checkEnvSetup('ccsv5',''f28335,'check') and xmakefilesetup commads.  why works using RAM memory? and, why does not work  with Flash by menas of enabling Flash_Loader field? Anybody can give me some tips? I have read something about a matlab bug....

Best regards

Manuel

  • Manuel,

    You will need to talk with the MathWorks regarding this issue.

    On F28x for loading into RAM it is a simple memory write operation. For loading to flash a small program has to be downloaded to the target first and then the real program is streamed to it and it programs the flash. When loading a program from CCS it will take care of this automatically. I am not sure how Embedded Coder is interacting with CCS in this case. You can probably take the output generated by embedded coder and just open CCS and have it load the program.

    Regards,
    John