Skip to content

Repository files navigation

Raspberry PI CM4 - Write FPGA ROM file to Flash memeory of IS25LP256 through Artix7

Access and write SPI Flash Memory IS25LP256 for Artix7 from RaspberryPi 4B or CM4

Based on the below code.

Software requirement

  • WiringPi Library
    git clone https://github.com/WiringPi/WiringPi
    cd WiringPi
    ./build
    

Please note that libgpiod library is used in this code, but any other GPIO control code can be applicable. What is required is only control GPIO 14 signal. When Flash memory should be updated, High of GPIO 14 is everything during the operation.

  • libgpiod Library
    sudo apt-get install libgpiod2
    sudo apt-get install libgpiod-dev
    dpkg -l libgpiod2
    

This project uses the wiringPiSPISetup() function to initialize SPI, and use /dev/spidev0.0. GPIO is handeled by gpiod


Build & Run

git clone https://github.com/bsooho/SPIFlashUpdate
cd SPIFlashUpdate
sudo make
sudo ./main

ISSI IS25LP256 Flash memory information

Device # of Bytes Address range # of 4K-Sectors # of 32K-Blocks # of 64K-Blocks JEDEC ID
IS25LP256 32M 0x1FFFFFF 8192 1024 512 9D-60-19
  • Normal 80MHz clock operation
  • Upto 166MHz clock operation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages