• 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 » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » TMDXICE3359 boot application from SPI flash
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

TMDXICE3359 boot application from SPI flash

This question is answered
rolf horstmann
Posted by rolf horstmann
on Mar 29 2012 04:06 AM
Prodigy70 points

Hello all,

I have a TMDXICE 3359 hardware , CCS 5.1.1.00031 and SYSBIOS Industrial SDK

My first try is using the I2C_LED example from SDK , modify the LED rotation speed and LOAD / RUN the I2C_LED.OUT.   no problem , works

First problem , no BIN file was generates. reinstall CSS with CORTEX M MCU support solves this problem.

Now i want to put the new I2C_LED.BIN in SPI Memory and boot from SPI.

Getting Started guide says : write bootloader and application to SPI and reboot the device

                                        start SPI_flashing_tool  and enter the filename to flash when promted.

But when i LOAD / RUN  SPI_flashing_tool.out  no promt appears ?

And where can i found the bootloader.bin

 

 

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Michael Rinker
    Posted by Michael Rinker
    on Mar 29 2012 09:10 AM
    Intellectual700 points

    The command:

    post_build.bin "C:\ti\ccsv5" "C:\ti\ccsv5\tools\compiler\tms470" "C:\ti\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\binary\armv7a\cgttms470_ccs\am335x\evmAM335x\bootloader" "boot" "C:\ti\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\tools\ti_image\cgttms470_ccs\ti_image.exe" "0" "0" "Bootloader"

    The script can not find a .bin file, i think it is temporary, because i has always an other name like this: appl_24648_21875_17451.bin

    When the script is runnung, there is a line set tmpbin=C:\appl_24648_21875_17451.bin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jonathan Marrs
    Posted by Jonathan Marrs
    on Mar 29 2012 18:33 PM
    Intellectual260 points

    I am having the same issue, although I am trying to generate a bootloader binary to be stored in SPI Flash. Is something wrong with my post-build command? Here is the output of my console:

     

    'Finished building target: ecat_appl.out'

    ' '

    C:/TI/ccsv5/utils/bin/gmake --no-print-directory post-build

    "../../../../tools/post_build/post_build.bat" "C:/TI/ccsv5" "C:/TI/ccsv5/tools/compiler/tms470" "C:\TI\am335x_sysbios_ind_sdk_1.0.0.2\sdk\protocols\ethercat\ecat_appl\Debug" "ecat_appl" "C:\TI\am335x_sysbios_ind_sdk_1.0.0.2\sdk\starterware\starterware-starterware-src\tools\ti_image\cgttms470_ccs\ti_image.exe" "1" "0" "ecat_appl_SPI.bin"

    Binary file does not exist in path

    Could Not Find C:\appl_28005_1872_14729.bin

    finished

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shahid AC
    Posted by Shahid AC
    on Mar 30 2012 00:01 AM
    Expert1335 points

    ok.. so the issue is your CCS installation doesn't have tiobj2bin.bat  , in the expected location.

    post_build.bat internally calls other batch files and exes to convert the .out file to .bin file. In your case, the above mentioned batch file must be missing..

    Can you check whether you have tiobj2bin.bat and mkhex4bin.exe in ccsv5\utils\tiobj2bin  folder? if not present  there, can you search for these files in your ccsv5 folder?  if you can find those files in your ccs installation folder,  please copy them to ccsv5\utils\tiobj2bin and try again.

    Regards,

    Shahid

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • rolf horstmann
    Posted by rolf horstmann
    on Mar 30 2012 00:58 AM
    Prodigy70 points

    Hello Jonathan

    i had the same problem, the CCSV5/UTILS/TIOBJ2BIN folder is missing.

    reinstall CCS and add the CORTEX M MCU support  this solved the problem in my system

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jonathan Marrs
    Posted by Jonathan Marrs
    on Mar 30 2012 10:56 AM
    Intellectual260 points

    Actually, the folder C:\TI\ccsv5\utils\tiobj2bin does exist, and I can see the two files in there: mkhex4bin.exe and tiobj2bin.bat

    Is there something else that could be causing this issue?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael Rinker
    Posted by Michael Rinker
    on Mar 30 2012 12:40 PM
    Intellectual700 points

    I have even these folders and the files and even the descreibed problem. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Darrin Hansen
    Posted by Darrin Hansen
    on Mar 30 2012 19:24 PM
    Intellectual640 points

    I'm having the same problem, and I've tracked it down to something to do with Windows 7 and not being able to create a file at the root directory (C:\) when UAC is turned on (even if you're an administrator on the computer).  post_build.bat tries to make a file via the statement set bintmp="C:\appl_%random%_%random%_%random%.bin" (at the root of C:\ drive).  Windows 7 won't allow this and for some reason no error is generated: the .BIN file just isn't created.  Even if you run the tiobj2bin command manually via a command prompt, it appears to execute without error, but the .BIN file is not created.  If you change the "bintmp" location to be somewhere else (like the CWD or C:\temp or something like that), then all is good.  So it seems to be a Windows anomaly?  I know this "condition" exists in Vista and Windows 7, but I don't know if it occurs in Windows XP?

    It would appear to be advisable for TI to change post_build.bat to use a different bintmp location?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shahid AC
    Posted by Shahid AC
    on Apr 02 2012 00:12 AM
    Expert1335 points

    As Darrin Hansen pointed out, this seems to be an issue on Windows Vista and 7.

    For now, as a workaround, you may create a temporary folder some where and update the post-build script to use that folder for temporary binary file. Please ensure that the full path for the temporary folder doesn't contain any spaces.

    for eg :-  create a folder named temp_isdk_post_build  in C:  and update the post_build.bat statement set bintmp="C:\appl_%random%_%random%_%random%.bin" to set bintmp="C:\temp_isdk_post_build\appl_%random%_%random%_%random%.bin"

    postbuild.bat can be found in $(SDK_INSTALL_PATH)\tools\post_build directory.

    This will be fixed in next sdk release.

    Thanks,

    Shahid

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • LucaM
    Posted by LucaM
    on Jul 02 2012 04:40 AM
    Prodigy120 points

    Hello,

    I've a similar problem: with a ICE, the first time I switch on the board the led correctly blinks.

    I've tried to download the UartEcho prebuilt app. I follow the instructions found in "Industrial SDK Getting Started Guide" in the "Flashing Binaries to SPI Flash on ICE Using CCS" section. It seems to download the bin file correctly because at the end of operations Verify...Success appears. But the UART doesn't works.

    I then tried to download the i2c_led example again but nothing blinks. I then tried to download the SPI bootloader (always prebuilt files by now) and the i2c_led.bin app again but nothing blinks.

    These are the steps I execute:

    Enter the file name (full path without spaces)

    Enter the offset (0x0 for the boot_SPI.bin file and 0x20000 for the i2c_led_SPI.bin)

    Press 0 to confirm

    All is ok until verify...success

    Disconnect the debugger

    Turn on and on the board

    but I see only the red led on

    I'm using Windows 7 32 bit, CCS 5.1.1.00031, SysBios SDK 01.00.00.03

    What I'm wrong? Is there a way to see if the correct booloader and app is flashed correctly in SPI?

    Thanks in advance.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shahid AC
    Posted by Shahid AC
    on Jul 03 2012 02:01 AM
    Expert1335 points

    Hello LucaM,

    I think you missed to load the binary file to memory before entering '0' to confirm.  Please go through the below link to know how to load file to memory.

    http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Running_Application_from_SPI_Flash

    Here are the instructions to load binary to memory.

              Load binary file to Memory - Using LoadMemory

                  Open Memory window in CCS ('View->Memory Browser)
                  Select "
    Tools->'
    Load Memory".
                  Browse and select the .bin file to be loaded and Click 'Next'. (File should be named as *.bin)
                  Enter 0x80100000 in "Start Address' field.
                  Select '32 bits' for 'Type-size' field

                  Keep the swap tick box un-checked.

                  click 'Finish'

    Regards,

    Shahid

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Julian Gell
    Posted by Julian Gell
    on Mar 20 2013 03:49 AM
    Prodigy150 points

    Hi,

    I'am stupid...Problem  solved.

    Wish you  have a fun day

    Regards,

    Jupiter.

    TMDXICE3359 NOR bootloader flashing
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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