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.

How to make Flash v1.2 work on AM3715 EVM board?

Other Parts Discussed in Thread: AM3715, AM3517

Hi,

  I tested to download image to Mistral AM3715 EVM board, but failed. I tried to erase the NAND flash, but fail again(I couldn't erase the NAND memory, and the WINCE code in NAND still could boot up after erasing.). What should I take care?

  Thanks for sharing.

Br, Jianjun  

  • Jianjun,

     

    Have you referred to the Flash UG provided here?  http://processors.wiki.ti.com/index.php/Flash_v1.0_User_Guide

     

    Also were you using the GUI or the CLI interface?

     

     

  • Jianjun,

     

    Can you please post the tool output to the forum so I can see what is going on?

     

    Regards,

    Greg

  • please find the log as below. (I used Flash v1.2 GUI, UART3 for downloading, target is (37xx) Hynix 2Gb 200MHz, NAND, and Operation Setting is Erase All.) After erasing All operation, WINCE could still boot from am3715 evm board. Thanks for checking.

     

    -stdout

    -omap 3

    -com 1

    -t 60

    -p EVM_MDDR_HYNIX_2G

    -2

    chip_erase NANDINFO 0

    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

    AsicId items 04

    AsicId id 01 05 01 36 30 07 07

    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_HYNIX_2G 363007 07 GP

    Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd

    Entering parameter file:omapflash2nd.txt at line: 11

    -pheriphalboot_reopen

    Reading board configuration file Targets\Configurations\configuration_evm37xx_hynix_2g.txt

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

    -board_config Targets\Configurations\configuration_evm37xx_hynix_2g.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 com1)

    Waiting for 2nd

    Found 2nd

    Looking for a driver for 'NANDINFO'

    chip_driver NANDINFO Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin gpmc 0x6E000000 cs 0 address 0x28000000 bberase 0 onfi 0 bpp 1024 sbpp 32 ppb 64 bpl 4096 l 1 acv 0x23 f 0x0019

    Downloading driver

    Downloading 'Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin'

     

    Sending data (14524 bytes) :::::::::::::::::::: [14524]

    Sending data (14524 bytes) :::::::::::::::::::: [14524]

    Interface 'OMAPFLASH DRIVER v5'

    Driver 'NAND ONFI 16/8 BIT'

    Driver configuration: gpmc = 0x6E000000

    Driver configuration: cs = 0x00000000

    Driver configuration: address = 0x28000000

    Driver configuration: bberase = 0x00000000

    Driver configuration: onfi = 0x00000000

    Driver configuration: bpp = 0x00000400

    Driver configuration: sbpp = 0x00000020

    Driver configuration: ppb = 0x00000040

    Driver configuration: bpl = 0x00001000

    Driver configuration: l = 0x00000001

    Driver configuration: acv = 0x00000023

    Driver configuration: f = 0x00000019

    NAND NONEv0 VENDOR 0x00 UNKNOWN

    NAND 16 BIT DEVICE 0x00 UNKNOWN

    NAND 1024 BYTES/PAGE (SPARE 32)

    NAND 64 PAGES/BLOCK (65536 BYTES/BLOCK)

    NAND 4096 BLOCKS/UNIT (268435456 BYTES/UNIT)

    NAND 256 MB TOTAL SIZE

    NAND ONFI DRIVER INIT COMPLETE

    Downloading complete

    Elapsed time: 0:01.609 (14524 bytes/s)

    End loading driver

    Erasing

    Erasing to end of device starting at 0x28000000

     

    Erase progress .................... [65536]

    Erase progress .................... [5439488]

    Erase progress .................... [10813440]

    Erase progress :................... [16187392]

    Erase progress :................... [21561344]

    Erase progress ::.................. [26935296]

    Erase progress ::.................. [32309248]

    Erase progress ::.................. [37683200]

    Erase progress :::................. [43057152]

    Erase progress :::................. [48431104]

    Erase progress ::::................ [53805056]

    Erase progress ::::................ [59179008]

    Erase progress ::::................ [64552960]

    Erase progress :::::............... [69926912]

    Erase progress :::::............... [75300864]

    Erase progress ::::::.............. [80674816]

    Erase progress ::::::.............. [86048768]

    Erase progress ::::::.............. [91422720]

    Erase progress :::::::............. [96796672]

    Erase progress :::::::............. [102170624]

    Erase progress ::::::::............ [107544576]

    Erase progress ::::::::............ [112918528]

    Erase progress ::::::::............ [118292480]

    Erase progress :::::::::........... [123666432]

    Erase progress :::::::::........... [129040384]

    Erase progress ::::::::::.......... [134414336]

    Erase progress ::::::::::.......... [139788288]

    Erase progress ::::::::::.......... [145162240]

    Erase progress :::::::::::......... [150536192]

    Erase progress :::::::::::......... [155910144]

    Erase progress ::::::::::::........ [161284096]

    Erase progress ::::::::::::........ [166658048]

    Erase progress ::::::::::::........ [172032000]

    Erase progress :::::::::::::....... [177405952]

    Erase progress :::::::::::::....... [182779904]

    Erase progress ::::::::::::::...... [188153856]

    Erase progress ::::::::::::::...... [193527808]

    Erase progress ::::::::::::::...... [198901760]

    Erase progress :::::::::::::::..... [204275712]

    Erase progress :::::::::::::::..... [209649664]

    Erase progress ::::::::::::::::.... [215023616]

    Erase progress ::::::::::::::::.... [220397568]

    Erase progress ::::::::::::::::.... [225771520]

    Erase progress :::::::::::::::::... [231145472]

    Erase progress :::::::::::::::::... [236519424]

    Erase progress ::::::::::::::::::.. [241893376]

    Erase progress ::::::::::::::::::.. [247267328]

    Erase progress :::::::::::::::::::: [268435456]

    NAND ERASED 250413056 BYTES FROM ADDRESS 0x28000000 (275 BAD BLOCKS)

    Elapsed time: 0:00.000

     

    Console program success, exit code: 0

  • All of the output looks correct, no errors reported.  Can you confirm that your NAND chip select is 0, and the NAND address would be 0x28000000? 

    After you erase, does the output from the programming step also look good?  Feel free to copy that output here as well if you're not sure.

    You might try modifying your file Targets\Configurations\configuration_evm37xx_hynix_2g.txt, and modify the lines which being "memory NAND" and "memory NANDINFO".  On that line you will see "address 0x28000000" - try replacing that with "address 0x0" in both places.  One of our FAE's has reported that change was helpful in his situation.

  •  

     

    Hi Greg,

     

    The NAND chip select is 0, and the NAND address would be 0x28000000 on the AM3715 EVM.

    I tried to retest the erase all function with your suggestion(modify the configuration_evm37xx_hynix_2g.txt) on EVM board, but still failed. (output file looks fine, but I still can boot board from NAND.)

    Here is the output log, please check. Thanks.

    -stdout

    -omap 3

    -com 1

    -t 60

    -p EVM_MDDR_HYNIX_2G

    -2

    chip_erase NANDINFO 0

    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

    AsicId items 04

    AsicId id 01 05 01 36 30 07 07

    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_HYNIX_2G 363007 07 GP

    Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd

    Entering parameter file:omapflash2nd.txt at line: 11

    -pheriphalboot_reopen

    Reading board configuration file Targets\Configurations\configuration_evm37xx_hynix_2g.txt

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

    -board_config Targets\Configurations\configuration_evm37xx_hynix_2g.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 com1)

    Waiting for 2nd

    Found 2nd

    Looking for a driver for 'NANDINFO'

    chip_driver NANDINFO Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin gpmc 0x6E000000 cs 0 address 0x0 bberase 0 onfi 0 bpp 1024 sbpp 32 ppb 64 bpl 4096 l 1 acv 0x23 f 0x0019

    Downloading driver

    Downloading 'Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin'

     

    Sending data (14524 bytes) :::::::::::::::::::: [14524]

    Sending data (14524 bytes) :::::::::::::::::::: [14524]

    Interface 'OMAPFLASH DRIVER v5'

    Driver 'NAND ONFI 16/8 BIT'

    Driver configuration: gpmc = 0x6E000000

    Driver configuration: cs = 0x00000000

    Driver configuration: address = 0x00000000

    Driver configuration: bberase = 0x00000000

    Driver configuration: onfi = 0x00000000

    Driver configuration: bpp = 0x00000400

    Driver configuration: sbpp = 0x00000020

    Driver configuration: ppb = 0x00000040

    Driver configuration: bpl = 0x00001000

    Driver configuration: l = 0x00000001

    Driver configuration: acv = 0x00000023

    Driver configuration: f = 0x00000019

    NAND NONEv0 VENDOR 0x00 UNKNOWN

    NAND 16 BIT DEVICE 0x00 UNKNOWN

    NAND 1024 BYTES/PAGE (SPARE 32)

    NAND 64 PAGES/BLOCK (65536 BYTES/BLOCK)

    NAND 4096 BLOCKS/UNIT (268435456 BYTES/UNIT)

    NAND 256 MB TOTAL SIZE

    NAND ONFI DRIVER INIT COMPLETE

    Downloading complete

    Elapsed time: 0:01.625 (14524 bytes/s)

    End loading driver

    Erasing

    Erasing to end of device starting at 0x00000000

     

    Erase progress .................... [65536]

    Erase progress .................... [5439488]

    Erase progress .................... [10813440]

    Erase progress :................... [16187392]

    Erase progress :................... [21561344]

    Erase progress ::.................. [26935296]

    Erase progress ::.................. [32309248]

    Erase progress ::.................. [37683200]

    Erase progress :::................. [43057152]

    Erase progress :::................. [48431104]

    Erase progress ::::................ [53805056]

    Erase progress ::::................ [59179008]

    Erase progress ::::................ [64552960]

    Erase progress :::::............... [69926912]

    Erase progress :::::............... [75300864]

    Erase progress ::::::.............. [80674816]

    Erase progress ::::::.............. [86048768]

    Erase progress ::::::.............. [91422720]

    Erase progress :::::::............. [96796672]

    Erase progress :::::::............. [102170624]

    Erase progress ::::::::............ [107544576]

    Erase progress ::::::::............ [112918528]

    Erase progress ::::::::............ [118292480]

    Erase progress :::::::::........... [123666432]

    Erase progress :::::::::........... [129040384]

    Erase progress ::::::::::.......... [134414336]

    Erase progress ::::::::::.......... [139788288]

    Erase progress ::::::::::.......... [145162240]

    Erase progress :::::::::::......... [150536192]

    Erase progress :::::::::::......... [155910144]

    Erase progress ::::::::::::........ [161284096]

    Erase progress ::::::::::::........ [166658048]

    Erase progress ::::::::::::........ [172032000]

    Erase progress :::::::::::::....... [177405952]

    Erase progress :::::::::::::....... [182779904]

    Erase progress ::::::::::::::...... [188153856]

    Erase progress ::::::::::::::...... [193527808]

    Erase progress ::::::::::::::...... [198901760]

    Erase progress :::::::::::::::..... [204275712]

    Erase progress :::::::::::::::..... [209649664]

    Erase progress ::::::::::::::::.... [215023616]

    Erase progress ::::::::::::::::.... [220397568]

    Erase progress ::::::::::::::::.... [225771520]

    Erase progress :::::::::::::::::... [231145472]

    Erase progress :::::::::::::::::... [236519424]

    Erase progress ::::::::::::::::::.. [241893376]

    Erase progress ::::::::::::::::::.. [247267328]

    Erase progress :::::::::::::::::::: [268435456]

    NAND ERASED 250413056 BYTES FROM ADDRESS 0x00000000 (275 BAD BLOCKS)

    Elapsed time: 0:00.000

     

    Console program success, exit code: 0

  • You may have a bad configuration file.  It appears that there are some bad parameters in your log file, such as 1024 bytes/page, whereas the true value should be 2048.

    Please compare the NANDINFO line in your configuration file to the following:

    memory NANDINFO driver Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin parameters gpmc 0x6E000000 cs 0 address 0x0 bberase 0 onfi 0 bpp 2048 sbpp 64 ppb 64 bpl 2048 l 1 acv 0x23 f 0x0019

  • Hi, Greg:

      It works after above modification. Thanks!

      Sorry for slow response. I was on business trip these days.

     

    Br, Jianjun

  • I have One problem.

    I'm using flash 1.3 to flash the bootloader to 3517 EVM through UART3. But it throws following error

    -stdout

    ¯ -omap 3

    ¯ -com 1

    ¯ -t 60

    ¯ -p CUSTOM_OMAP35XX_BOARD

    ¯ -2

    ¯ chip_download SDRAM Z:\svn_folder\lable25\AM35x-OMAP35x-PSP-SDK-03.00.00.05\images\u-boot\am3517\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: CUSTOM_OMAP35XX_BOARD 343007 58 GP

    ¯ Error no 2nd for: CUSTOM_OMAP35XX_BOARD 343007 58 GP

     

    Console program failed, exit code: 2

     

     

    I did't modyfy anything in the config file. Please tel me why is that happens? 

     

    I'm not getting flashV1.2 tool.. Can anyone give the link for that?

     

    Thanks

    Sudhee.

  • AM3517 support has not yet been added to Flash tool.  It will be forthcoming in a soon-to-be-released version.