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.

made a program for uart boot load section

Other Parts Discussed in Thread: OMAP-L138, TPS65070

could load ais.bin(generate by aisgen)  to memory and run, that means we don't need to compile the c# uart loader, anybody who needs, leave e-mail.

program is not optimize but just as is, for VC6. later will finish it with ccs code to make a SPI flash writer. don't know why the tools use C#... could not compile with CCSV4 and need to install a lot of programs before we could compile it.

 

  • Hi Power,

    Good job. Thanks for the contribution. I just made this thread into a discussion. Could you please also tag or update your topic with the device this is for?

    regards,

    Paul

  • Hi, Paul

    this is for 138/1808. tag updated.

    the purpose of the program is to replace the SFx_OMAP-L138.exe for end user to update SPI flash (other devices not going to implement cause CPU does not support high bit ECC and NOR kinda too slow for write and expensive.)

    usage:

    <name of program built> COM1 ubl-ais.bin u-boot.bin

    there is a hidden special ais.bin for uart->spi writer that will execute and load files to SPI flash.

    it will load ubl-ais.bin and u-boot.bin to spi flash in a fast way (sfx_OMAP-L138.exe is kinda too slow)

    current stage:

    load ubl-ais.bin ok, execute ok

    to do:

    UBL function for writing SPI(for our customer board), nand/nor write needs to be complete by who else needs it.

    because there is no manual describing how to convert .out to ais, or I could make it a small and light program without .NET, at this moment, flash by UART is enough for me.

     

    Regards,

    Power Pan

  • I have to complain TI's software tools CCSV4.1, it took me several hours to copy an existing project to a new one but failed(according to the guide telling how to copy and modify the project file). so I had to start the project base on the old one.

    program finished as what I need. attached is the console message under windows, could be easily rewrite to a user friendly GUI.

    command line: spi_writer COM1 ubl-spi.bin u-boot.bin

    note that there is a special spiwriter.bin for writing the 2 bin to flash needed

    first the program load the spiwriter.bin to uart, and run the program, then get the file via uart, first ubl-spi.bin then u-boot.bin to DDR memory and write to spi flash, after that, jump to 0xc1080000 and run u-boot.

    my program is special for UART0 and remove tps65070 control, anybody who needs to make it fit your own board, need to modify that.

    total time is about 30s accessing(200K total), acceptable. if use it as uart-boot loader(say 500K takes 1:15), a lot faster then hawkboard's tools(about 10minutes for uartboot)

    ----------------------------------------------------------------------------------------------------------------------------------------

     

    com1 opened successfully.

    Now trying to get header, please reset target, 1.

    BOOTME got.

    XMT_START ok.

    Ping op code ok.

    Ping sync ok.

    Disable CRC ok.

     

    Section done.

    wait for target boot.

    Boot & hand shake ok.

    Starts to flash UBL...

    file transfer starts ...

    Done.

    Starts to flash U-BOOT

    file transfer starts ...

    Writing flash now, might take a long time, please be patience.

    Section end with DONE

    Jumping to entry point at 0xC1080000.

     

     

    U-Boot 2009.11 (May 05 2011 - 02:46:50)

     

    I2C:   ready

    DRAM:  128 MB

    MMC:   davinci: 0

     

    Press any key to continue

     

     

  • Dear Power:

    Could you please send me the tool (include source code), since I have a customer OMAPL137 board failed to UART booting from "UART Boot Host" program. My e-mail is:

         calvintia63@gmail.com.

    Thanks & Best Regards