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.

Matlab 2010a & Piccolo Flash

Did someone tried to use the piccolo flash memory using matlab 2010a?

Regards

Gastón

  • Hi Gaston,

    I already used the flash of the piccolo via matlab 2010a.

    There is a memory problem and a automatically programming is not possible.

    A manually programming have to be done here:

    at CCS -->Tools -->F28XX On-Chip Flash Programmer-->accept the message wiht ok-->Execute Operation.

     

    Best Regards,

    Mihail

  • What about the password (I don´t want my piccolo get locked). You did somthing more or is just that?

    Best Regards

    Gastón

  • Sorry for ask, but I want to know if this is a Matlab BUG or is a Code Composer Problem.

    Hope someone of Texas see this post to answer it.

  • The first message in my case is:

    "Data vefirication failed at address 0x3F0000..."

    I think, something there is wrong programmed in the connection between matlab and CCS.

    The next message for the password Locations is not critical. You can accept this message with ok.


    Best Regards,
    Mihail

  • Here is the answer regarding flashing Piccolo:

    There is a bug in Mathworks tools, described here

    http://www.mathworks.com/support/bugreports/search_results/index

    597766

     

    Summary

     

    Flash Loader/Flash Programmer utility for C2000 processors does not work

     

    Description

     

    This bug consists of the following four issues:

    1. The enableQuestion_Flash.fig file is corrupt, preventing the flash warning message dialog from opening. This failure halts code generation with the flash loader and stops the entire flash programming procedure.
    2. The C2808pmsmfocflash and c28335pmsmfocflash demos give annoying popup warnings blocking the code generation process. After launching code generation on the demo, the pop up warning window appears multiple times stating "Unconfigured FLASH memory section".
    3. The Execute button on the Flash_loader pane under the Peripherals tab of a C2000 target preferences block doesn't work. Regardless of how you set Enable Flash Programmer parameter, clicking Execute produces the following error message:Undefined variable "prop" or class "prop.Enable_Flash.ui".
    4. Flash API browse button does not work. After you click "Apply", the API goes back to the default one, unless before clicking "Apply", you manually edit the input area, e.g., type an extra space to the end or cut and paste the entire content.
    5. F28027 flash programmer does not work.

     

     

    Workaround

     

    The patch is created for R2009b release.

    1. To install the patch, download the attached files, patch_installer.m andpatch_flashprogrammer.zip.
    2. Start MATLAB and enter the following command at the prompt:
      patch_installer('patch_flashprogrammer.zip', 'install')
    3. Complete the installation by following the instructions on the MATLAB command line.
    4. Remove the following file:
      toolbox\idelink\foundation\pjtgenerator\tgtpref2\+targetpref\@Controller\Controller.p
    5. Reboot MATLAB.

  • Thanks Chris for your straight answer.

    Best regards

    Gastón

  • 3733.Configuration.rar

     

    Hi,

    I'd like to use RTW Embedded Coder to generated C Code from Simulink for F2811,
    but i don't  know how to config CCS. Can someone help me ?


    I'm using

    Window Vista

    Matlab R2009b with RTW Embedded Coder 5.4

    Embedded IDE Link 4.0

    CCS 3.3

    My custom board with chip F2811

    Emulator TMS320 JTAG USB XDS 100 Olimex

    I loaded an example C Code into Flash memory with API Flash Tool.

    It's done.

    Attachment is my model, my configuration and error : Error while executing C2000
    'If_pjtgeninfo' function. Caused by : Can't read file C

    Thanks in advandce

     

  • Dang,

    First of all you don't have to configure CCS, this one is used by Simulink to download the C program into the chip.  Please goto to Matlab help---->target support package--------

    --->demos

    Open one example model and check the configuration parameters.

    Regards

    Gastón

  • Hi Gaston,

    There isn't any Demo for using with Flash in Matlab help for target support package. It's nice if you send me a demo ?

    Many thanks

    Dang

  • Hi Dang,

    There is a BUG in Matlab when you try to use the FLASH.  Anyway you still can load the model into the dsp but you must do it manually (using code composer, once the error windows apear)

    Regards

    Gastón

  • I've asked Mathworks C2000 support to follow-up on this thread and add some clarification

     

  • hello i ve been trying to progrogram my picollo with matlab2010a and CCS3.3, but it appears a error "unconfigures flash memory sections"..

    so i guees that it is associated with the bug with was found. i know how to program my dsp with just CCS mnaually, but when i tried to program

    the model generated from simulink in my dsp and CCS, i can not make it.. i tried something

    first, in the file (test_main.c) generated by simulink, after the libraries, i declare

    extern unsigned int  RamfuncsLoadStart;
    extern unsigned int  RamfuncsLoadEnd;
    extern unsigned int  RamfuncsRunStart;
    extern void InitFlash(void);

    second, after init_board() ; i wrote the following lines


      InitFlash();    // call InitFlash in RAM
      memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, &RamfuncsLoadEnd - &RamfuncsLoadStart);

    when i build the program appears:

    error: errors encountered during linking

    >> Compilation failure

    Build Complete,
      1 Errors, 0 Warnings, 0 Remarks.

    could you tell me me what i ve made wrong or is there any aproach to program my dsp manually?

    regards,

    David


  • david arbelaez said:
    could you tell me me what i ve made wrong or is there any aproach to program my dsp manually?

    You should try changing to Ram if your program is not to long. To see the length of your program go, to the matlab folder---->select your program folder----->>open memory map (as txt).

    contact matlab technical support to get the patch.

    Regards

    Gastón

  • Hello Chris,

    I am using CCSv5.4 and matlab 2014a (with embedded coder 6.6 that supports CCSv5). When I use simulink to build and execute into RAM memory of Delfino F28335 there is not problems, however if I try to program into flash memory using Flash_Loader field in simulink appear a problem,

    Please, could you give me some tips?
    Regards
  • you will need to discuss with The Mathworks any problems you are having with their tool.
    www.mathworks.com/.../ti-piccolo.html