• 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 » DLP & MEMS » DLP LightCommander Development Platform » DLP_FlashCompile_SetCommPacketCallback
Share
DLP & MEMS
  • Forums
Options
  • Subscribe via RSS

Forums

DLP_FlashCompile_SetCommPacketCallback

This question is answered
Jeon Byung - Chon
Posted by Jeon Byung - Chon
on Apr 05 2012 20:30 PM
Prodigy40 points

I need some example of the DLP compile functions.

The API manual say that,

"The Flash Compile APIs are used when converting a batchfile (produced by the LOGIC application SW)
into binary data. This binary data can then be stored in the parallel (="user") flash for power-up
configuration of the DLP Controller Chip. It should be noted, that normally a configuration batchfile sends
commands to the DLP Controller Chip across USB or SPI, but in this context, these comm packets can be
’compiled’ into binary data, then stored in parallel flash and used to configure the Controller on power-up."

I understood compile function is used for sending batchfile or making BIN file.

but I dont understood where is stored BIN file with compile enable.

1. void DLP_FlashCompile_SetCommPacketCallback (void(*)(UINT8 *packetBuffer, UINT16 nBufBytes) pf)
2. DLP_FlashCompile_FlushCommPacketBuffer ();

I need some example for use these compile APIs.

Help me plz ^^;

DLP Light Commander API compile
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Sanjeev
    Posted by Sanjeev
    on Apr 09 2012 01:22 AM
    Verified Answer
    Verified by Jeon Byung - Chon
    Expert5585 points

    Hi Jeon,

    The FlashCompile APIs intended for generating the binary equivalent of a batchfile. So instead of directly sending them to DLPC200 the binary generated commands can be stored in non-volatile memory or can be hardcoded into another embedded processor/controller memory for sending to DLPC200 at later point of time.

    The BIN file needs to be created in your application, after you install the callback function via DLP_FlashCompile_SetCommPacketCallback  API, whenever the command packet is ready it will call the 'callback function' where you need to create a binary file and start appending at the end everytime the callback function is called.

    I have created VC project0246.BuildFlashImage.zip showing how these APIs can be used. Download and install DLPR200APP from TI website. This contatins the sample projects showing APIs usage. You can add the attached project in this solution then compile and run. Note that in the project i am reading a hardcoded 'status.bf' and the finally generated .bin file is dumped in the same directory where the .exe of project is generated. You can edit .c file as required.

    Another note, you should understand difference in the 'user' flash generation via DLP LightCommander(TM) Control GUI.  The binary file generated via GUI menu option 'Execute->Build Flash Image' does more functionality than the what is done with the Flash Compile APIs. Like from the GUI you can have 'N' number of Solutions in a Project, so when a build flash image option is called, it will basically generate a single binary file that includes ALL the Solutions (.bf files) configuration and then adds a 'flash header' at the top.  In otherwords the GUI build flash image option uses flash compile APIs in addition there is hidden functionality that is used to build final 'user' flash image. At present there is no plan to expose how the parallel flash header and configuration information is added in the binary file.

    So if the plan is to build 'User (a.k. parallel) flash image' we strognly suggest to use the DLP LightCommander(TM) GUI control 'Build Flash Image' option to get the parallel flash binary.

    To parse a 'single' batchfile and get the binary file you can use flash comile APIs. At later point of time you can simple open this binary file and read 512 bytes at a time and send directly to DLPC200 by avoiding the parsing step.

    Let me know if there are any question.

    Regards,

    Sanjeev

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jeon Byung - Chon
    Posted by Jeon Byung - Chon
    on Apr 11 2012 19:56 PM
    Prodigy40 points

     

    Hi Sanjeev,

    Thank you for your answer.

    The Compile example was very helpful. Can I request andother Example?

    I want "Image Transfer APIs" and "Resister and LUT Read/Write APIs".

     

    Regards,

    Jeon

    DLP Light Commander DLP API LC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sanjeev
    Posted by Sanjeev
    on Apr 13 2012 01:06 AM
    Expert5585 points

    Hi Jeon,

    The "Image Transfer APIs" are explained in the __SampleApps solution which is available on the TI network. http://www.ti.com/tool/dlpr200 and DLPR200APP component project name DownloadImagesDriverC.

    The Register and LUT Read/Write APIs are straight forward and explained in http://www.ti.com/lit/an/dlpa024b/dlpa024b.pdf document. For this DLP_RegIO_WriteImageOrderLu API example is provided in the description. For the DLP_RegIO_WriteRegisterField (UINT16 addr, UINT32 value , UINT8 full_reg_LSB_bitnum0b, UINT8 full_reg_MSB_bitnum0b) the recommended way is to always use the data as 32bit content i.e., by referring to the generated batch file use this API as DLP_RegIO_WriteRegisterField (UINT16 addr, UINT32 value , UINT8 0, UINT8 31) .

    Let me know if there anything not clear.

    Regards,
    Sanjeev

    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