Executing programs stored in external SPI flash memory on an ARM processor

前端 未结 2 595
囚心锁ツ
囚心锁ツ 2021-02-04 21:52

I have an ARM processor that is able to interface with an external flash memory chip. Written to the chip are programs compiled for the ARM architecture ready to be executed. Wh

2条回答
  •  一生所求
    2021-02-04 22:32

    It depends on kind of flash and/or the cpu. NOR flash is usually mapped into memory so you can jump directly into it. NAND flash must be read (which depends on SOC) into local memory (SRAM, DRAM (--> needs extra initialization!)).

    EDIT:

    SPI can not be mapped to RAM either. You have to program the SPI controller of the SOC and the SPI flash. The protocol to be used for the SPI flash is usually described in its manual; it is very likely that a common protocol so you can probably reuse an existing driver.

提交回复
热议问题