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.

Flashing C6713 DSK with Matlab/Simulink



Hello,

I am working with my C6713 DSK and programming it using embedded coder in Simulink (with CCS v3.3). Now that the program works, I want it to run on the board as a standalone. As far as I understand, I need to assign the program to the DSK's flash memory (address 0x90000000).

And yes, I have googled on how to do it (and have seen the wiki page as well). I have managed to flash other simpler programs (which were written in CCS instead of building in Simulink) by using the hex6x utility, DOS commands, etc. However, I am having trouble flashing the code which I have built through Simulink, using the hex6x utility.

I have noticed that if I click on the "Target Preferences" block (in Simulink), there will be a GUI window which states which memory is involved (all I can see is IRAM, SDRAM). So I added "flash" by specifying the memory 0x90000000. Alas, the flashing was unsuccessful too. My question is, can anyone guide me on how to flash my program using Simulink/Matlab? I am pretty confident that this can be done using Simulink/Matlab. I tried finding the right resources to teach on how to do this, but there were none.

And just to reconfirm my doubts, as long as my code file size is less than 512kb, this should be able to flash as a standalone, right?

Thanks, and sorry for any ignorance.

Nic

  • Greetings,

    It is good that your run time now execute your Simulink model on the 6713 hardware using CCS3.3.  Now you need to take it a little further by making it a stand alone run time with a secondary boot loader that you will need to design, then use Spectrum Digital Flashburn tools to store you final code in the on-board FLASH and boot it from Reset.

    Good luck,

  • Thanks for that Sam, but what I wanted to know is that can I do the above procedure using Matlab/Simulink? There is nearly no documentation on this, as far as I know, but I am rather curious on the GUI (in Matlab/Simulink) which allows the options of different memories (SDRAM, IRAM, etc.). If there is any guide on how to use this utility, it would be much appreciated.

     

  • Greetings,

    Mathworks link to CCS never supported burning code in FLASH.  It bring to Simulink the memory map configuration, for volatile memory to give the use options where to put each section of the code, but have no add on to create a 2nd boot loader or a startup, except what CCS itslef offers it in the form of source code or GEL.

    Good Luck,