• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » Matlab 2010a & Piccolo Flash
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Matlab 2010a & Piccolo Flash

    Matlab 2010a & Piccolo Flash

    This question has suggested answer(s)
    Gaston_Melo_Arg
    Posted by Gaston_Melo_Arg
    on Sep 29 2010 12:55 PM
    Genius4065 points

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

    Regards

    Gastón

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Mihail Lilov
      Posted by Mihail Lilov
      on Sep 30 2010 03:57 AM
      Suggested Answer
      Prodigy85 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on Sep 30 2010 16:07 PM
      Genius4065 points

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

      Best Regards

      Gastón

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on Sep 30 2010 16:41 PM
      Genius4065 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mihail Lilov
      Posted by Mihail Lilov
      on Oct 01 2010 00:04 AM
      Prodigy85 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Oct 01 2010 10:26 AM
      Mastermind22775 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on Oct 01 2010 10:34 AM
      Genius4065 points

      Thanks Chris for your straight answer.

      Best regards

      Gastón

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Thanh Dang
      Posted by Thanh Dang
      on Nov 02 2010 23:36 PM
      Prodigy40 points

      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

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on Nov 03 2010 04:57 AM
      Genius4065 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Thanh Dang
      Posted by Thanh Dang
      on Nov 19 2010 02:20 AM
      Prodigy40 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on Nov 19 2010 09:52 AM
      Genius4065 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ChrisClearman
      Posted by ChrisClearman
      on Nov 23 2010 12:48 PM
      Mastermind22775 points

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

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • david arbelaez
      Posted by david arbelaez
      on May 10 2012 19:17 PM
      Prodigy200 points

      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

      flash programming
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Gaston_Melo_Arg
      Posted by Gaston_Melo_Arg
      on May 11 2012 05:43 AM
      Genius4065 points


      david arbelaez
      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use