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.

Boot from different address



Hi,

I'm working with the dm6437 processor. I'm trying to boot my application from the SPI24 flash memory. In fact, I managed to boot it from this flash with the section number 0  (from adress 0x000000), but when I tried to boot it from another section different from 0. In my case section number 5 in the flash memory (address 0x050000). The boot didn't work. Before, I worked with the NAND flash memory existed in the EVM6437 and I succeeded to boot applications from different blocks of this memory.

My question is: Is it possible to boot from different sections (address) with SPI24 flash memory?

If  yes, what should be the modification to make? In fact,  I'm guessing that it shoud be in the "SPI_secondary_boot" project, but I make some modifications with no result.

 

Regards,

  • did anyone there have an idea how to boot a such program with the SPI24 mode from an address different from 0x000000 in the SPI flash memory

  • The ROM boot loader of that device is hardcoded to use address 0x0 of the flash for finding and loading a boot image. You cannot force the ROM boot loader to load from any other address of the flash.

    Regards, Daniel

  • Thank you for your answer.

    But I have succeeded before to boot my program with the NAND flash memory (existed in the EVM6437) from and address different from "0x00000000".

    So, what's the explanation of this? Because I understand from your reply that the ROM bootloader will search for the magic number , so if it will not find it in the address 0x00000000 it will be blocked.

    In that case, if I need to update my program with this flash memory. What should I do?

  • Hot snow said:

    But I have succeeded before to boot my program with the NAND flash memory (existed in the EVM6437) from and address different from "0x00000000".

    So, what's the explanation of this? Because I understand from your reply that the ROM bootloader will search for the magic number , so if it will not find it in the address 0x00000000 it will be blocked.

    Not every boot mode of the boot loader behaves the same.  The SPI mode does not do any searching for a boot image.  The NAND boot mode, which anticipates that there could be bad blocks in the NAND device, will do some searching in case the initial blocks of the device were bad blocks.

    Regards, Daniel