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.

Whether AM3517 can boot from SPI flash???

Other Parts Discussed in Thread: AM3517

Whether AM3517 can boot from SPI flash???

when set SYS.BOOT[5:0]=0b111100 that means the boot sequence is UART SPI,the AM3517 can't work correctly,

because there are no signals output on SPI1 pins and also no uart output at all.

so why?

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

If can boot AM3517 from SPI flash,which SPI port should be used? the AM3517 has four SPI PORT[1-4].

Does the spi flash sector size must be 512bytes?

Does the flash tool supports SPI download in futures?

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

Best Regards.

 

  • Hi,

    Can you confim that reset is released on the Board? Are you able to attach the JTAG? Normally, if UART boot is selected, the UART TX must toggle. SPI boot uses SPI1.

    Regards,

    Madan

  • thanks for your reply.

    In our project, AM3517 can boot from nand flash or sd card successfully,and the UART output is right.

    the new demand now is  boot from spi flash.when change sys.boot[5:0] to be 0b111100,nothing happen,no  output on UART and on signals on SPI1 pins.

    it's very strange, I don't know how to correct it.

    Can you ask your team to do some test on spi flash boot?

    maybe a guide to spi flash boot will most useful to us.

    thanks.

  • Hi,

    Can you tell me what the value at 0x00014020 is? Is it 0x8B63DB59 ? Have you verified that you are able to program and read form the SPI flash correctly using some other code? Is the SPI flash connected to CS0? Please make sure that when you flash the SPI memory, you swap the endianess of the image - ARM is little endian, but the SPI protocol is big endian.

    Regards,

    Madan

  • Hi, 

    Also, ROM will work only with 24 bit SPI flashes (size more than 64KB and less than 16 MB) and in mode 3. Please confirm this is the case.

    Regards,

    Madan

  • Hi,Madans

        I know these constraints that described in AM3517 TRM  chapter 24.4.7.8 SPI Flash.

        In chapter 24.4.7.8, a description  is the ROM code assumes one sector is 512 bytes.

        there is a problem that now we can't find a spi flash which has a sector of 512 bytes.mostly the sector size of SPI flash is 4KB and page size is 256Bytes.

        Can you give some advices on the spi flash selection?

       some other messages you can find in     http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/p/62369/430540.aspx#430540

    Regards.

       

  • The 4KB sector size and the 256 byte page size are important for flashing. The 512 byte sector size, mentioned in the docs is only a number used by the ROM for reading form the flash - so fo eg, if the doc says that 4 sectors are searched for an image, it means that the first four 512 byte chunks will be read and searched for an image, irrespective of the actual device geometry. I hope this clarifies.

     

    Regards,

    Madan

  • it's means that AM3517 will search the 0-511B,511-1023B,1024-1535B,1536-2047B as the four vitual sector in the first sector(4KB) of spi flash for an image, Does it?

    I find the reason why there is no spi signal on SPI1 pins, because the chip is XAM3517,when use AM3517,the SPI signal comes.

    some other problems:

     DO you have any u-boot  code or tools that can support  flash MLO to SPI flash? 

    will the Flash.exe tool support for flashing MLO to spi flash in the future?

    any other advices or cautions will be pleasure. thanks

    Best Regards.

  • Yes, your understanding of the search pattern is correct. Regarding tools and u-boot, I will let my colleagues answer.