K9F1G08U0E NAND Test in Raspberry Pi (https://www.waveshare.com/wiki/NandFlash_Board_(A)).
For convenience development, I am using the wiringPi library.
Pin Settings
- WiringPi GPIO 0 ~ 8 for I/O Pins (0(NAND) to 0(Pi), 8 to 8)
- WiringPi GPIO 21 ~ 27 for Command Pins(CE, RE, ALE ...)
This program executes the memory sanitizer. Therefore, you must install libasan6
.
sudo apt install -y libasan6
Two WiringPi modules are derived from one RaspberyPi 3. Note that Wiring GPIO numbers can be different from the BCM number.
This library supports creating the form of a library by using the following command.
sudo make clean
sudo make install
If you want to create the debuggable library, please you the USE_DEBUG
flag as follows:
sudo make clean
sudo make USE_DEBUG=1 install
- All code files contain licensing information.