• 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 » Digital Signal Processors (DSP) » C6000 Single Core DSP » C67x Single Core DSP Forum » Booting C6713 from Flash
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

Booting C6713 from Flash

This question is not answered
usman arif
Posted by usman arif
on Aug 06 2012 07:55 AM

Hi,

I am using a custom board with DSP C6713. I am trying to boot it from external flash but it does not seems to work.

The same code work on C6713 dsk. I have used external programmer for flash memory of my custom board.

I have used the BlinkDSK6713 project as reference and have done some modifications in it but did not change the bootloader file(i.e bootDSK6713.asm file).

Thanks,

Usman. 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 06 2012 08:55 AM
    Expert2655 points

    Salamat,

    Please post a zip of this project for review.  Meantime make certain the FLASH is connected to you hardware POR.

    Good Luck,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • usman arif
    Posted by usman arif
    on Aug 06 2012 09:48 AM
    Expert0 points

    Sam,

    Thanks for reply.

    The flash is properly connected with hardware as I have verified this by writing/reading from flash.

    I have attached the complete project folder for review.

    7318.TestC6713.rar

    Thanks,

    Usman.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 06 2012 10:12 AM
    Expert2655 points

    Salamat,

    While I review details, I assume you have seen this

    EMIF boot (using default ROM timings)

    Upon the release of internal reset, the 1K-Byte ROM code located in the beginning of CE1 is copied to address 0 by the EDMA using the default ROM timings, while the CPU is internally “stalled”. The data should be stored in the endian format that the system is using. The boot process also lets you choose the width of the ROM. In this case, the EMIF automatically assembles consecutive 8-bit bytes or 16-bit half-words to form the 32-bit instruction words to be copied. The transfer is automatically done by the EDMA as a single-frame block transfer from the ROM to address 0. After completion of the block transfer, the CPU is released from the “stalled” state and start running from address 0.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 06 2012 10:25 AM
    Expert2655 points

    Salamat,

    I think you will need to change your link control memory map to

    MEMORY

    {

         boot:          o = 00000000h   l = 00000400h

         vecs:          o = 00000400h   l = 00000200h

         IRAM:          o = 00000600h   l = 0000FA00h

        CE0:           o = 80000000h   l = 01000000h

    }  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • usman arif
    Posted by usman arif
    on Aug 06 2012 10:53 AM
    Expert0 points

    Sam,

    I have read this and I have done these changes and after that it did not work even on dsk6713.

    Regards,

    Usman.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 06 2012 11:03 AM
    Expert2655 points

    Salamat,

    I suggest you boot your hardware with CCS without any GEL and view what the EDMA copy to IRAM after reset.  Following the link map I sent you, you should see your code at 0 where the boot-loader, and you should be able to step through all the way until it transfer control to _c_int00.

    Good Luck,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • usman arif
    Posted by usman arif
    on Aug 06 2012 13:32 PM
    Expert0 points

    Sam,

    On dsk6713 I have observed the values of dsp core registers during the boot up process they seems to be right.

    But when I did the same for my custom board then during the boot up procedure values of dsp core registers were wrong and hence the dsp could not went  to the exact _c_int00 value.

    Regards,

    Muhammad Usman.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 06 2012 13:54 PM
    Expert2655 points

    Grtns,

    Once you reset CPU via CCS with no GEL, your dis-assembly window will show you what is in IRAM.  Did you see your code there?  You may have an endianness issue, or a FLASH access issue.

    Clarify that your boot-loader code is there after reset, otherwise it will not work.

    Good Luck,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • usman arif
    Posted by usman arif
    on Aug 07 2012 05:44 AM
    Expert0 points

    Sam,

    I have done the above steps mentioned by you and I am unable to see the code in IRAM.

    I am not sure about the endianness issue because my flash programmer does not have any option like this.

    Thanks,

    -Usman

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Sam Kuzbary
    Posted by Sam Kuzbary
    on Aug 07 2012 07:23 AM
    Expert2655 points

    Salamat,

    When you do not see your code in IRAM, it means the EDMA did not do what is expected at RESET, per description.

    Endianness is done by the use-case of hex6x. There are tools provided by Spectrum Digital to burn your FLASH using CCS.

    I asked this before.  Do you have your FLASH reset line tied to your CPU Reset?

    Many signal need to be at certain level to direct the CPU boot mode.

    Good Luck,

    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