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

5 views (last 30 days)
Hi Guys,
I am using ccsv5.2 and matlab 2014a(embedded coder 6.6). I have problems when I try to use Flash_loader optoion enabled whatever election of program, erase or verify is (Nevertheless this does not occur with ccsv3). I have checked the API folder and it is ok. The displayed mistake is: "Error while loading and running the program. Cannot start CCS aplication (COM error ID: 0x80040154). Verify that your CCS software is installed and configured properly". Curiously I can build and execute directly into F28335 microcontroller both RAM memory and FLASH memory if Flash_Loader is disabled (I locate some sections in FLASH memory to program in FLASH memory iven with FLash_Loader disabled)
This is very extrange, could you give me some tips please.
There is attached an extended document where is explained the CCSv5 configuration, the xmakefile configuration and the mistake.
Best regards

Accepted Answer

Antonin
Antonin on 28 Jan 2015
Hi Manuel,
The Flash loader options that you see in the configuration parameters of your models are only compatible with CCSv3.3. For CCSv4/5/6, you have 2 options to automatically flash your code as part of the build process.
  1. If you use idelink_ert.tlc (which you are currently using), you can implement the load function the way you did it in configuration 2, in your pdf document.
  2. If you use ert.tlc, this functionality is provided out of the box, you don't have to configure xmakefilesetup, you just have to pass your ccxml in the configuration parameters.
While using idelink_ert.tlc, if you are looking for a command line function to load and run the generated code out of flash, you can use the gmake command with the generate makefile with the "execute" action i.e., go to the code generation folder for your model and type:
!gmake -f model_name.mk execute
I hope it helps, Thanks,
Antonin.

More Answers (1)

manuel
manuel on 28 Jan 2015
Thanks a whole lot Antonin.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!