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.

Flashing code throgh USB port

Other Parts Discussed in Thread: LM3S3748, AM3517

Hi all,

   Seetaram is here, we are using LM3S3748 controller in our product. We have fresh new board in that we can able to flash code through Debug USB but i want to flash my application code through USB port. I have boot_usb boot loader code by using that code can i flash through USB port?. I have gone through usb_boot loader uer guide but i did not get proper procedure and configuration. As my knowledge first have to flash boot_usb code then we have flash our application code through USB port. Is it the way of flashing or any other method?. If is there then please send me the details.

 Regards,

     Projesh

  • We have a flash programmer for 35xx and 37xx which will soon have USB support, perhaps by next week.  It will allow you to program your NAND flash memory over the USB port using a Windows-based application.  Is this what you are looking for?

  • That means next week you release flash programmer through USB port? Ya i want to flash my program through USB port to LM3S3748 controller. At present i cant flash through USB port using Keil or LM flash programmer?. 

     

    Regards,

       Seetaram


  • Hi

    Is there any update of Flashing application code through USB port?. Please send the update

     

    Regards,

       Seetaram

  • Hi,

      Please reply to my doubt i did not get any solution from you to flash application code through USB.  By using sflash can i flash code by USB port using command prompt (loading boot_usb initially ) ?. For example i want to flash Hello World code through USB port using command prompt. For this i want commands to send so please give me format of the commands from that how i can able to flash my hello world code through USB port using command prompt. Please reply to this mail how i can flash in details.

      Regards,

        Seetaram

  • Seetaram,

     

    Apologies for the delay.  A new version (1.2) of the flash utility was just released, addressing the USB concern.

    Special instruction for USB usage have been added to the user's guide: http://processors.wiki.ti.com/index.php/Flash_v1.0_User_Guide

    GForge download page: https://gforge.ti.com/gf/project/flash/frs/

     

     

  • Hi Greg,

    I don't think these tools support the Stellaris chips (LM3S3748) as asked be Seetaram (at least this would be big news to me :-)
      Søren

  • You are correct.  A few posts ago i mentioned the tool supports 35xx and 37xx processors.  I don't have any information regarding your specific controller.

  • Hi Greg,

    I read that. My main point was, that pointing the user to a tool for OMAP-35xx and Sitara 37xx based devices isn't of much use when he needs a tool for the Stellaris chips.

    I therefore wanted to make sure that I hadn't missed anything :-) Unfurtunately I hadn't...
      Søren

  • I apologize for that!  I wasn't familiar with the Stellaris line or part numbers.  It seemed Seetaram was still interested even after I said which parts it supported, which is why I came back to the thread.  My mistake.

  • Hi Greg,

    No need to apologize. I totally agree that Seetaram seemed interested, and I mainly broke in to make sure that the misunderstanding would be stopped when I realized that you guys most likely weren't totally aligned... After all the question was posted in the wrong forum all from the beginning as well  :-( :-)

    Regards,
      Søren

  • Hi,

      It wont support to CortexM3 (LM3S3748) ARM Processor. I want to download LM3S3748 processor please give the idea or programmer of LM3S3748.

     Regards,

       Seetaram

  • Hi all,

    Using the Flash v1.2 to flash my AM3517 EVM board. I could not erase the flash, and having the following error message. Does anyone out there having the same error as mine? Thanks

     

     

    ¯ -stdout

    ¯ -omap 3

    ¯ -t 60

    ¯ -p EVM_MDDR_MICRON_512M

    ¯ -2

    ¯ chip_erase NANDINFO 4000

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap usb)

    ¯ Please turn on device

    ¯ Waiting for device (omap usb)

    ¯ Found device (omap usb)

    ¯ Awaiting ASIC id

    ¯ AsicId items 05

    ¯ AsicId id 01 05 01 34 30 07 58

    ¯ AsicId secure_mode 13 02 01 00

    ¯ AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ AsicId checksum 15 09 01 93 B6 BC 4A 00 00 00 00

    ¯ Searching 2nd for: EVM_MDDR_MICRON_512M 343007 58 GP

    ¯ Error no 2nd for: EVM_MDDR_MICRON_512M 343007 58 GP

     

    Console program failed, exit code: 2

     

     

     

    Nhan Pham

  • The reason for the problem is that the ASIC ID differs between the OMAP35xx and the AM3517.  This is something you can fix by modifying omapflash2nd.txt, which is found in your installation directory.  The next version will fix this by allowing the user to select the processor directly.

    Change "EVM_MDDR_MICRON_512M 343007 57" GP to "EVM_MDDR_MICRON_512M 343007 58 GP" in the file.  In short, replace 57 with 58.  You should be able to proceed after you do that.

  • Hi

    I use LogicPD AM3517 EVM and try to erase the nand flash, but always get the following error messages:

        -stdout
        -omap 3
        -t 60
        -p EVM_MDDR_MICRON_512M
        -2
        chip_erase NANDINFO 0
    Leaving parameter file:temp_script.txt
    @temp_script.txt
    Looking for device (omap usb)
    Please turn off device
    Please turn on device
    Waiting for device (omap usb)
    Found device (omap usb)
    Awaiting ASIC id
    AsicId items 05
    AsicId id            01 05  01  34 30 07 58
    AsicId secure_mode    13 02  01  00
    AsicId public_id     12 15  01  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    AsicId root_key_hash    14 15  01  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    AsicId checksum      15 09  01  93 B6 BC 4A 00 00 00 00
    Searching 2nd for: EVM_MDDR_MICRON_512M 343007 58 GP
    Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_512m.2nd
    Entering parameter file:omapflash2nd.txt at line: 5
        -pheriphalboot_reopen
    Reading board configuration file Targets\Configurations\configuration_evm35xx_micron_512m.txt
    Reading definition file .\targets\definitions\definitions_omap3.txt
        -board_config Targets\Configurations\configuration_evm35xx_micron_512m.txt
    Leaving parameter file:omapflash2nd.txt
    Sending size of second file (0x00006804 bytes)
    Transferring second file to target (0x6804 bytes)
    Closing boot connection
    Found device (omap usb)
    Waiting for 2nd
    Reception failed - timeout after 60 s during peripheral boot (waiting for 2nd)

    Console program failed, exit code: 2

    Is this issue caused by DDR settings?

    What should I do?

    Thanks for your reply.

  • Hi,

    I have same problem. Does anyone have solution for it yet? I hope TI can tell us when they will have solution. I tried everything but nothing seem to work at all (JTAG, USB, RS232). I am still hanging here. Thanks

    Nhan Pham

  • I think you will be in better odds of getting a fast answer by posting Stellaris based questions in the: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/default.aspx forum - I do unfortunately not know how to move a post...

    Good luck
      Søren

  • Hi Nhan Pham

         Can you tell me what problem you are getting?. If you explain properly i can give solution.

       Regards,

           Seetaram

     

  • Seetaram,

    I replied to the post from Charles Wu on the 21 July 2010, but I don't know why it put my post at the end. The question I have is about AM3517, not LM3S3748. I tried to program the NAND flash using the USB flash program from TI, but I have the same error as Charles Wu does. The latest post on this subject is about 3 weeks ago, but I don't see any solution yet. Hope TI have some comments about this. If you can help, that's even better. Thanks

     

    Nhan Pham

  • Nhan, regarding the AM3517 flashing error, it hasn't been resolved yet but hopefully soon.  I apologize for the delay and hope to have a fix for you very soon.

  • Hi Nhan Pham,

       I am working on LM3S3748 if you,  i did not work on AM3517  if you are using 3748 i can give the solution. Better ask TI only.

     

    Regards,

        Seetaram

  • Hi Greg,

     

    I have same problem as Nhan.

    I'm the Flash v1.2 to flash my AM3517 EVM board.

    I could not erase or Download to the flash(NAND), and having the following error message.

     

    Have you resolved this problem?

     

    Thanks.

     

     -stdout

     -omap 3

     -com 1

     -t 60

     -p EVM_MDDR_MICRON_512M

     -2

     chip_download NANDINFO C:\Program Files\Texas Instruments\Flash v1.2\test_data\u-boot.bin

     Leaving parameter file:temp_script.txt

     @temp_script.txt

     Looking for device (omap com1)

     Please turn off device, then turn it on again

     Awaiting ASIC id

     Awaiting ASIC id

     AsicId items 04

     AsicId id 01 05 01 34 30 07 58

     AsicId secure_mode 13 02 01 00

     AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

     AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

     Searching 2nd for: EVM_MDDR_MICRON_512M 343007 58 GP

     Error no 2nd for: EVM_MDDR_MICRON_512M 343007 58 GP

     

    Console program failed, exit code: 2

  • What is the status of this issue? Will it soon be a fix for Flash v1.2 to make it possible to

    reflash the AM3517?

  • Hi,

     

    I have a logic PD Eval board for AM3517 and trying to load some code through USB/UART but could not. Here are the details can some one comment

    Using Flash v1.2, set S7:4 & S7:1 in logic PD board ON and all other OFF. Connected USB OTG to the host PC and here is the message shown on output window of Flash v1.2

    ¯ -stdout

    ¯ -omap 3

    ¯ -t 60

    ¯ -p EVM_MDDR_MICRON_512M

    ¯ -2

    ¯ chip_download SDRAM C:\Program Files\Texas Instruments\Flash v1.2\test_data\u-boot.bin

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap usb)

    ¯ Please turn on device

    ¯ Waiting for device (omap usb)

     

    I believe the USB does not get enumarated at all as it does not get detected by PC at all. I do not find the new device found.

     

    Subsequently, I tried using UART. As I do not have a serial port in my PC am using the debug USB->serial port FTDI in the eval board. Here again no response from the device here is the output messages. Note: the debug serial interface is functional. I tried booting from the NAND and could use this as console.

     

    ¯ -stdout

    ¯ -omap 3

    ¯ -com 5

    ¯ -t 60

    ¯ -p EVM_MDDR_MICRON_512M

    ¯ -2

    ¯ chip_download SDRAM C:\Program Files\Texas Instruments\Flash v1.2\test_data\u-boot.bin

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap com5)

    ¯ Please turn off device, then turn it on again

    ¯ Awaiting ASIC id

     

    As I understand, when the boot sequence is "USB, UART, MMC1, XIP" and if I start up without any USB connected it should switchover to UART & should through the ASIC ID through UART. I connected the debug port to hyperterminal with following settings and expect the ASIC ID which does not show-up.

     

     

    Baud rate - 115200

    Data bits  - 8

    Parity        - Even

    Stop bits  - 1

    Flow control - Xon/Xoff

     

    Can some one help if I am missing something here?

     

    Thanks,

    Karthi

     

  • Just wanted to update an old issue.  The AM3517 problem was traced to a source code problem within the Flash tool. 

    Am3517 support is expected in the next release of the Flash tool (current release version is 1.3).

  • Hey Charles

    I am facing the same problem as you faced. I have modified the omapflash2nd.txt and now i am getting this error

    Waiting for 2nd

    Reception failed - timeout after 60 s during peripheral boot (waiting for 2nd)

     

    If you have found some solution please help.

    Thanks in advance

    Regards

    Kshitij

     

     

  • hi

    i have designed board using am3517 and in testing phase.

    i am facing the problem similar to this can you tell me how did you resolved this issue.

    error is as follows:

     

    ¯ -stdout

    ¯ -omap 3

    ¯ -com 3

    ¯ -t 60

    ¯ -p CUSTOM_AM35XX_BOARD

    ¯ -2

    ¯ chip_download SDRAM C:\Documents and Settings\Anil Sutej\Desktop\boot_crane\MLO

    ¯ command branch SDRAM 0x80000000

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap com3)

    ¯ Please turn off device, then turn it on again

    ¯ Awaiting ASIC id

    ¯ AsicId items 04

    ¯ AsicId id 01 05 01 34 30 07 58

    ¯ AsicId secure_mode 13 02 01 00

    ¯ AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ Searching 2nd for: CUSTOM_AM35XX_BOARD 343007 58 GP

    ¯ Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_4g.2nd

    ¯ Entering parameter file:omapflash2nd.txt at line: 7

    ¯ -pheriphalboot_reopen

    ¯ Reading board configuration file Targets\Configurations\configuration_custom_am35xx.txt

    ¯ Reading definition file .\targets\definitions\definitions_omap3.txt

    ¯ -board_config Targets\Configurations\configuration_custom_am35xx.txt

    ¯ Leaving parameter file:omapflash2nd.txt

    ¯ Sending size of second file (0x00006804 bytes)

    ¯ Transferring second file to target (0x6804 bytes)

    ¯ Closing boot connection

    ¯ Found device (omap com3)

    ¯ Waiting for 2nd

    ¯ Reception failed - timeout after 60 s during peripheral boot (waiting for 2nd)

    Console program failed, exit code: 2

  • Greg,

    Sorry, but this problem just refuses to die.  I also have the AM3517 EVM and it will not talk to the Flash v1.6 via USB. I have read, followed, and studied the  http://processors.wiki.ti.com/index.php/Flash_v1.6_User_Guide manual and still get the following:

    ¯     -stdout

    ¯     -omap 3

    ¯     -no_force_package_alignment

    ¯     -t 60

    ¯     -p EVM_MDDR_MICRON_2G_EMIF

    ¯     -2

    ¯     chip_download NANDINFO1BITBOOT Z:\TargetImages\MLO

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap usb)

    ¯ Please turn on device

    ¯ Waiting for device (omap usb)

     

    I do see the USB activity acknowledged by the PC when powering on the EVM - but the Flash output window is unchanged.

    After a minute it reads:

    ¯ Cannot open device

    Console program failed, exit code: 2

     

    Any thoughts as to how to debug this further?  

    My customer's final target board will only have USB OTG port for firmware updating, so I need to get this path to work.

    Thanks, 

    Daren

  • Found my answer in another post (http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/537/t/132031.aspx#473520)

    by   

  • Hi siddharth,

    I have the exact problem you have. Have you got a solution yet? Do you mind to share? Thanks

    Frank

     

     

    siddharth baisane said:

    hi

    i have designed board using am3517 and in testing phase.

    i am facing the problem similar to this can you tell me how did you resolved this issue.

    error is as follows:

     

    ¯ -stdout

    ¯ -omap 3

    ¯ -com 3

    ¯ -t 60

    ¯ -p CUSTOM_AM35XX_BOARD

    ¯ -2

    ¯ chip_download SDRAM C:\Documents and Settings\Anil Sutej\Desktop\boot_crane\MLO

    ¯ command branch SDRAM 0x80000000

    ¯ Leaving parameter file:temp_script.txt

    ¯ @temp_script.txt

    ¯ Looking for device (omap com3)

    ¯ Please turn off device, then turn it on again

    ¯ Awaiting ASIC id

    ¯ AsicId items 04

    ¯ AsicId id 01 05 01 34 30 07 58

    ¯ AsicId secure_mode 13 02 01 00

    ¯ AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ¯ Searching 2nd for: CUSTOM_AM35XX_BOARD 343007 58 GP

    ¯ Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_4g.2nd

    ¯ Entering parameter file:omapflash2nd.txt at line: 7

    ¯ -pheriphalboot_reopen

    ¯ Reading board configuration file Targets\Configurations\configuration_custom_am35xx.txt

    ¯ Reading definition file .\targets\definitions\definitions_omap3.txt

    ¯ -board_config Targets\Configurations\configuration_custom_am35xx.txt

    ¯ Leaving parameter file:omapflash2nd.txt

    ¯ Sending size of second file (0x00006804 bytes)

    ¯ Transferring second file to target (0x6804 bytes)

    ¯ Closing boot connection

    ¯ Found device (omap com3)

    ¯ Waiting for 2nd

    ¯ Reception failed - timeout after 60 s during peripheral boot (waiting for 2nd)

    Console program failed, exit code: 2