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.

Programming the Flash in a AM3517 EVM

Other Parts Discussed in Thread: AM3517

Hi,

my company is new to the ARM processor and has no experience with it at all and we are working on a ZOOM AM3517 EVM board from LogicPD (and sold to us by TI) that will eventually end up as bare metal  and we are attempting to program the flash on the AM3517 chip it using an XDS100 JTAG debugger and CCS v5.1.0 and it doesn't appear to work.

Note: Because of the industry involved we cannot use Linux, Windows CE or anything else as an O/S, it's all hand-coded.

What we keep getting is:

Cortex_A8_0: File Loader: Data verification failed at address 0x40014000 Please verify target memory and memory map.

Cortex_A8_0: Unable to terminate memory download: NULL buffer pointer at 0x3a9f

Cortex_A8_0: GEL: File: D:\ARM-AFDX-End-system\TI CCS\ARM Cortex-A8 Bootloader\Debug\ARM Cortex-A8 Bootloader.out: a data verification error occurred, file load failed.

but according to the AM35x ARM Microprocessor Technical Reference Manual, page 154 0x40014000 is publc boot rom, so how do you, or can you, program this are aof the chip using the little XDS100?

We've also tried programming it using TI's Flash.exe v1.5.and still no luck. As you can see it seems to work up until it fails with a modulus 4 error. If the file has the sysmbols stripped then fails the same way. I tried changing the offset on the off chance but then it complains of offset parameter being larger than the device size, which I suppose is fair enough. All this has been done using the ONFI compliant NAND setting as that is what I understand the NAND to be.

¯ -stdout

  • Stewart:

    Can you provide the text output from the runof Flash v1.5.

    We will soon have a new version of Flash that does not have the "mult of 4 bytes" requirement on the image file.

    Can you pad the image file with zeros and use the existing Flash v1.5.1.0?

    Regards,

    Michael T

    PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • Ummmm interesting....

    I did include a grab of the text from the Flash tool, just after where it says '-stdout' along with a couple of other questions. Oh well.


    ¯     -stdout
    ¯     -omap 3
    ¯     -com 1
    ¯     -t 60
    ¯     -p EVM_MDDR_MICRON_2G_EMIF
    ¯     -2
    ¯     chip_download NANDINFO D:\ARM-AFDX-End-system\TI CCS\ARM Cortex-A8 Bootloader\Release\ARM Cortex-A8 Bootloader.out
    ¯ 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  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_2G_EMIF 343007 58 GP
    ¯ Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd
    ¯ Entering parameter file:omapflash2nd.txt at line: 15
    ¯     -pheriphalboot_reopen
    ¯ Reading board configuration file Targets\Configurations\configuration_am35xxevm_micron_2g.txt
    ¯ Reading definition file .\targets\definitions\definitions_omap3.txt
    ¯     -board_config Targets\Configurations\configuration_am35xxevm_micron_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 0x30000000 bberase 0 onfi 0 bpp 2048 sbpp 64 ppb 64 bpl 4096 l 1 acv 0x23 f 0x0019
    ¯ Downloading driver
    ¯ Downloading 'Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin'

    ¯ Sending data (40768 bytes) ::::::::::::::::.... [32764]
    ¯ Sending data (40768 bytes) :::::::::::::::::::: [40768]
    ¯ Sending data (40768 bytes) :::::::::::::::::::: [40768]
       Interface 'OMAPFLASH DRIVER v5'
       Driver 'NAND ONFI 16/8 BIT'
       Driver configuration: gpmc = 0x6E000000
       Driver configuration: cs = 0x00000000
       Driver configuration: address = 0x30000000
       Driver configuration: bberase = 0x00000000
       Driver configuration: onfi = 0x00000000
       Driver configuration: bpp = 0x00000800
       Driver configuration: sbpp = 0x00000040
       Driver configuration: ppb = 0x00000040
       Driver configuration: bpl = 0x00001000
       Driver configuration: l = 0x00000001
       Driver configuration: acv = 0x00000023
       Driver configuration: f = 0x00000019
       NAND HW ECC
       NAND BCH Mode = 0
       NAND HWECC offset = 2, size = 12
       NAND NONEv0 VENDOR 0x00 UNKNOWN
       NAND 16 BIT DEVICE 0x00 UNKNOWN
       NAND NAND CYCLES 0x23 (3 ROW, 2 COLUMN)
       NAND 2048 BYTES/PAGE (SPARE 64)
       NAND 64 PAGES/BLOCK (131072 BYTES/BLOCK)
       NAND 4096 BLOCKS/UNIT (536870912 BYTES/UNIT)
       NAND 0 BIT(S) ECC REQUIRED
       NAND 512 MB TOTAL SIZE
       NAND ONFI DRIVER INIT COMPLETE
    ¯ Downloading complete
    ¯ Elapsed time: 0:04.428 (10192 bytes/s)
    ¯ End loading driver
    ¯ Downloading
    ¯ Operation FAILED (Remote: : size modulus 4 must be 0)
    ¯ Elapsed time: 0:00.000

    Console program failed, exit code: 3

    Interesting, a direct cut & paste doesn't work.

    We would like eventually to use the NOR flash on the application board, but one step at a time.